APKEditor icon indicating copy to clipboard operation
APKEditor copied to clipboard

Too much logs captured

Open HassanMirza01 opened this issue 9 months ago • 11 comments

This doesn't seems a bug but it spam alot of resource extraction if logged, i do log apps to check if all went fine and it looks fine on terminal but it has thousands of lines if we capture log, is there a way to avoid it? no verbose switch used either

Image

HassanMirza01 avatar Apr 15 '25 15:04 HassanMirza01

You can take advantage of the pipes or commands like sed, awk, xargs ect...

VictorH028 avatar Apr 17 '25 03:04 VictorH028

You can take advantage of the pipes or commands like sed, awk, xargs ect...

alright, i thought may be there is some builtin way, btw, why this tool dont adapt new entries itself? like this one

"ERROR:
Undefined entry name: <integer name="config_screenBrightnessDim"/>13</integer>"

i added it in integers.xml, apktool used to pick it up automatically but not here

HassanMirza01 avatar Apr 17 '25 10:04 HassanMirza01

Looks like running on non-console environment, if it were standard console those "spam" line supposed to be printed on same line (i.e printing with carriage return character '\r' instead of new line '\n'). There is unfinished work at ConsoleUtil.java to detect console. This is an issue and I am marking as bug.

About your second unrelated question: please search issues or use separate ticket.

REAndroid avatar Apr 18 '25 17:04 REAndroid

Looks like running on non-console environment, if it were standard console those "spam" line supposed to be printed on same line (i.e printing with carriage return character '\r' instead of new line '\n'). There is unfinished work at ConsoleUtil.java to detect console. This is an issue and I am marking as bug.

About your second unrelated question: please search issues or use separate ticket.

well, it shows all files getting processed fine on console but if i append all lines to a file, it just spam alot thousand of lines (depend on resources files) to appending file, which should not be the case,

for 2nd question, i will open another issue <3

HassanMirza01 avatar Apr 18 '25 19:04 HassanMirza01

Confirm the latest commit:https://github.com/REAndroid/APKEditor/commit/d501eb390c517e8373931cf1819662f963bbcb19 fixes this issue

REAndroid avatar Apr 27 '25 17:04 REAndroid

Not fixed! it still throwing long list of files in logs

Image

HassanMirza01 avatar May 05 '25 16:05 HassanMirza01

i do log apps to check if all went fine and it looks fine on terminal but it has thousands of lines if we capture log

I didn't notice this info, how you are capturing the logs ?

REAndroid avatar May 05 '25 18:05 REAndroid

Hm no easy way to detect std stream redirected to pipe, we have to add some switch for this

REAndroid avatar May 05 '25 18:05 REAndroid

Hm no easy way to detect std stream redirected to pipe, we have to add some switch for this

well, i can restrict it by adding some filter to that pipe, not a major issue though, but the other one which i opened is really a major one, can add switch for that?

HassanMirza01 avatar May 05 '25 18:05 HassanMirza01