I found a way to change the log level of awplayer. The only thing is that there are no header files for it and the awplayer sets the log level to 3 on its own.
I looked in the binary and it looks like the log level is 5 by default. Something in libcdx_common changes the log level to 3 and that is where the debugging messages start. I changed the libcdx_common binary to not call the log_set_level function. This means the log level wont be changed at the start anymore. This disables the DEBUG and the INFO prints of awplayer. The warnings are still going through (errors probably as well (not tested)). This removes some of the messages when the program starts.
So I think they accidentally left in the log_set_level() call and just shipped it.
To remove the logs you need to change the libcdx_common.so in /usr/lib to the one in the attachment.
If you want to change the log level you can create a declaration:
Code:
void log_set_level(uint32_t);
The log level is stored in this variable:
Code:
extern uint32_t GLOBAL_LOG_LEVEL;
You should be able to read from it. Not sure if writing works as it looks like the set_log_level function does more than just changing the value.
And you need to link against "-lcdx_base"
modified libcdx_common.so:
https://github.com/itzandroidtab/device/..._common.so
I removed some more prints especially the ">>>> something <<<<" messages.
As these prints are hardcoded and there is no check for a debug level. I changed the subroutines to return directly instead of printing something. I forked the device repo of lindenis and changed all the binary's there:
https://github.com/itzandroidtab/device/