yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Dark3n:
So the update (v4.7.2) is out now.

The actual update was 4.7.0, but it had a bug.

Then there was 4.7.1 which was supposed to fix 4.7.0, but I didn't understand the bug yet so my bugfix didn't work, at least that's what the bugtracker told me when I woke up.

But the few hours of sleep helped and when I understood the issue the fix was trivial. I've added a few tests to prevent this mistake in the future and 4.7.2 was born :).

There are quite a few core changed related to setting up and using binaries (e.g. toybox/busybox).

There are more details here: https://xdaforums.com/showpost.php?p=71871495&postcount=2838

But the gist of it is that SD Maid can now mix and use applets from multiple binaries.

This allows SD Maid to better support different ROMs and work around security restrictions (e.g. applets only working from specific locations).

What else is interesting?

Custom filters now support max/min file age (last modification). Based on ticket #333, the idea is that this would allow for a filter that deletes old WhatsApp backups. Maybe some crafty users can build a filter for that and if it works well we integrate it as a default option.

SD Maid can't always be sure about an apps size, this is now visible in AppControl. So instead of "5MB" you will see "5MB >" because SD Maid thinks there is more, but doesn't know exactly (possibly due to permission issues).

SD Maid should now also run fairly well on Android O, at least without root (how do i root my Pixel on Android O?).

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog
[Android Apps and Games] Oswald Boelcke:
Above reported issue of v4.7.1 beta solved with recent v4.7.2

@Dark3n, thanks for the very fast fix.
[Android Apps and Games] voroxda:
fc's with 4.7.1 and 4.7.2 in the function systemcleaner (see at appended system log)
[Android Apps and Games] Dark3n:
[MENTION=5908151]voroxda[/MENTION] Is that the whole stacktrace? I'm missing the "Exception" type.
[Android Apps and Games] voroxda:
I have to apologize, but I am not so familiar with uploading logs. My fault was to establish a filter condition ("darken") to avoid other unneeded log entries. Seems not to be a good idea. :(

Now the unfiltered log. Hope that's is ok? :D
[Android Apps and Games] voroxda:
The last log was on >error< level (may be also some information are filtered ??), this log is on >debug< level
[Android Apps and Games] Dark3n:
That log was OK. Is it reproducible?

SD Maid tries to report an error and crashes because bug tracking is not initialised.

If you have bug tracking turned off this would make sense, do you?

So I probably need to check that bug tracking init correctly even if it's disabled.

E/AndroidRuntime(12605): FATAL EXCEPTION: eu.thedarken.sdm.tools.shell.a.a
E/AndroidRuntime(12605): Process: eu.thedarken.sdm, PID: 12605
E/AndroidRuntime(12605): java.lang.IllegalStateException: You must call Bugsnag.init before any other Bugsnag methods
E/AndroidRuntime(12605):	at com.bugsnag.android.Bugsnag.getClient(Bugsnag.java:528)
E/AndroidRuntime(12605):	at com.bugsnag.android.Bugsnag.notify(Bugsnag.java:291)
E/AndroidRuntime(12605):	at eu.thedarken.sdm.tools.f.a(BugWrap.java:20)
E/AndroidRuntime(12605):	at eu.thedarken.sdm.tools.binaries.sdmbox.applets.StatApplet$Factory$Instance.a(StatApplet.java:188)
E/AndroidRuntime(12605):	at eu.thedarken.sdm.tools.io.shell.g.a(ShellReadTask.java:44)
E/AndroidRuntime(12605):	at eu.thedarken.sdm.tools.io.shell.h.a(Unknown Source)
E/AndroidRuntime(12605):	at eu.thedarken.sdm.tools.shell.a$1.a(Command.java:52)
E/AndroidRuntime(12605):	at eu.thedarken.sdm.tools.shell.a.c.run(Unknown Source)
E/AndroidRuntime(12605):	at android.os.Handler.handleCallback(Handler.java:751)
E/AndroidRuntime(12605):	at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(12605):	at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime(12605):	at android.os.HandlerThread.run(HandlerThread.java:61)
[Android Apps and Games] voroxda:
Not knowingly I have disabled bug tracking.

In the app >L Speed< I have activated the option debug log deactivate (see below).

I deactivated the option and reboot the device, but the fc still persists.

May be you can tell me the command, how I can enable bug tracking manually?

Thanks for your help in advance.
[Android Apps and Games] Dark3n:
Those are probably some kernel related options, this has nothing to do with in-app bug tracking.

SD Maids bugtracking options are under Settings>General Settings>Bug reporting.

If you have it turned off there, then I understand the bug, otherwise... wtf :)
[Android Apps and Games] voroxda:
Sorry, it seems, that you are wrong? If I deselect the checkmark under

Settings>General Settings>advanced settings> experimental features

the fc, which was described, does not occur no longer.

Unfortunately you set it programmatically again.

And let me say a personal opinion. My individual setting regarding log tracking never never should raise a fc in your app.
[Android Apps and Games] Dark3n:
I think the crash happens because specific issues are only (but explicitly) tracked in BETA builds. I'm usually not calling "Bug.notify".

I also didn't explicitly test what happens when bug tracking is disabled, but we explicitly try to track something.

It does make sense though that it then crashes like your stacktrace showed.

> Settings>General Settings>advanced settings> experimental features

> the fc, which was described, does not occur no longer.

This has no effect on bugtracking, but it's possible that the file causing the error is only found with an experimental feature.

I meant the checkbox under Settings > General Settings > Bug reporting though. Is that checked or unchecked?

> Unfortunately you set it programmatically again.

Beta builds automatically enable experimental features as it's the betas purpose to test those. I could rename the text "Enable beta features".

> And let me say a personal opinion. My individual setting regarding log tracking never never should raise a fc in your app.

I don't understand what you mean.

Preferably an app should never crash, but sometimes it does, that's just the way it is.

It's not like I can choose where to make mistakes...
[Android Apps and Games] voroxda:
The fc will raised, if Settings>General Settings>advanced settings> experimental features checkmark is checked.

Any customizing changes under Settings > General Settings > Bug reporting has no effect on the generation of the force close of your app.
[Android Apps and Games] Dark3n:
[MENTION=5908151]voroxda[/MENTION] I've made some changes for the next update.

Please let me know if the issue persists after it.

If you have time (and want to), there is an extra thing I would like to test.

* Long press the settings menu of SD Maid

* In the debug menu, tap to copy and send me your install id.

* Do a fresh install of SD Maid

* Make sure bug reporting in SD Maid is enabled

* Make sure SD Maid has internet access

* Crash SD Maid with the FC

* Open SD Maid again

* Send me the install id again

The install ID is a random id generated on first launch to enable me to find a specific users reports if they give me the id.
[Android Apps and Games] voroxda:
Of cause I will help to find out the root cause.

---------- Post added at 01:09 PM ---------- Previous post was at 01:06 PM ----------

install-id

8148f535-39e6-4a6c-a758-939e6d403fbf
[Android Apps and Games] voroxda:
Deinstall SD Maid 4.7.2

Reinstall app from Google play Store

Start function >Systemcleaner<

- no fc was raised :confused: -

New install-id

124a3627-f072-4035-8e32-8e448d52c7cf

Debug log is appended

I hope that will help you ??
[Android Apps and Games] Dark3n:
[MENTION=5908151]voroxda[/MENTION] The logfile is a pure logcat, for SD Maid to be visible in that you need to set the debug level to "2". Or use the internal log recording mechanism described here.

But if it's not crashing anymore, I don't think a log will do much good.

I found the crash reports from your device via the uuid though.

Well not crash reports, they are "warning" reports.

In some beta builds, like this one, SD Maids logs failures to parse file data, basically only when I'm trying to look into an issue. It's too spammy and too much data otherwise. So if it was related to this, this will likely be gone anyways when it's a production build as these types of issues won't be reported automatically.

The stacktrace you posted was from SD Maid trying to report such a warning, but bugtracking not being initialized.

Some more details if anyone is interested:

SD Maids bane are file names containing a line feed (i.e. LF, \n, i.e $'\015'). Trying to read an arbitrary amount of shell output, SD Maid has to know when one output ends and the next one begins. If a filename contains a new line character, this gets tough. If such a file is encountered, SD Maid skips it.

Previously there were also issues with CR (\r) and CRLF (\r\n) in file names but those are no longer an issue since v4.7.0.

Making sure my changes worked correctly was the reason for logging all of this (and how i was able to fix the issues with v4.7.1 and then v4.7.2).

Sadly no solution for line feeds (LFs) yet. According to the warning reports, files most likely affected by this are cache files with randomly generated names. While SD Maid would then skip these, the impact is quite low as SD Maid can just delete the parent directory.

This has basically always been a bug, it's just not something one would notice usually. I fear to correctly handle the last case with and without root it will require some custom NDK binaries... but that's for another time.

If anyone wants to play around with such files from hell type "touch bad$'\015'file" into a console :D

On another note:

Anyone want to help test a filter to delete old WhatsApp backups?

--> https://github.com/d4rken/sdmaid-public/issues/904
[Android Apps and Games] Dark3n:
v4.7.3 is out.

We've got some improved file handling for symbolic links without targets (happens when accessing storage from other OS's) and files/dirs with weird meta data (part other OS's, part weird mounting scripts). Before SD Maid ignore these files, no they will be processed as good as possible. I doubt this affects more than a handful of users, but SD Maid is all about going that extra mile.

There is now a system cleaner filter for old WhatsApp backups, thanks to everyone who helped test it.

This or a v4.7.4 will likely go into production. I'm thinking about making some changes to the setup process, UI wise such as making the sdcard setup step skipable without requring the user to try it once. I think it puts a lot of user soff being seemingly forced to do this.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog
[Android Apps and Games] Oswald Boelcke:
Running v4.7.3 for two days now. Great job - well done!:good:

No issues at all.
[Android Apps and Games] koekoek91:
[MENTION=608746]Dark3n[/MENTION]

Thanks for the great app.

Im currently running v4.7.3 too and found no issues so far. I use it mostly for the app control :)

Thanks again :good:
[Android Apps and Games] MrGansburg:
Dark3n,

Great app, and all was working fine until a recent update from Xiaomi to MIUI 8.2 Global. MIUI apps that I had previously frozen now no longer stay frozen and go back to their unfrozen state after a reboot. Two specific ones I know it to be happening to are the MIUI Calendar and Weather apps.

Any advice and guidance greatly appreciated.
[Android Apps and Games] KaMyKaSii:
[MENTION=608746]Dark3n[/MENTION] will more precise age arrive on Searcher?
[Android Apps and Games] Dark3n:
[MENTION=1350798]MrGansburg[/MENTION] Can you get me a logcat of the device reboot? It's possible that the MIUI ROM just renables those apps.

[MENTION=6450691]KaMyKaSii[/MENTION] Yes, but I can't say when :(.
[Android Apps and Games] Dark3n:
Notes on v4.7.4:

The previously added old WhatsApp backup filter has been removed from the SystemCleaner and added to the AppCleaner. The SystemCleaner is app agnostic while the AppCleaner only works with files where the owner is known. Whereever possible we want deletion to be done via AppCleaner because it is the more effective and accurate tool. E.g. it can apply exclusions based on packagenames and correctly marks files a expendable for the rest of SD Maid. If you really want the deletion to happen through the SystemCleaner (maybe because you don't have SD Maid Pro), then you can still create your own filter again or import the one from v4.7.3 which is still on GitHub.

There have also been improvements to the other WhatsApp filters as well as the hidden caches filter.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelog

http://sdmaid.darken.eu/issues﻿
[Android Apps and Games] Dark3n:
The SystemCleaner currently counts files as "items", changing this to amount of non empty filters doesn't really make sense, does it?

The AppCleaner shows non-empty apps as "items", should we change it to count files instead of apps?
[Android Apps and Games] Oswald Boelcke:
I'm very happy with the current situation.
[Android Apps and Games] KaMyKaSii:
Hello, Dark3n. Should SD Maid follow symlinks made inside some app data folder? Because I have Termux, a terminal emulator app. And in it I installed kbox4, which is a kind of minimal Linux distribution. It turns out that in this folder there are symlinks to my internal memory and even to the root filesystem. So the SD Maid gets stuck in that. Is there any reason to don't ignore symlink inside app data folder or is it so unusual that it has not been considered?
[Android Apps and Games] Dark3n:
Some tools follow symlinks some don't.

It's obviously not chosen randomly, but based on how natural symlinks (depending on Android versions) are created there, how some root apps create unnatural (unusual?) symlinks (apps2sd type of apps etc) and some safety concerns.

From the top of my head, from quickaccessible tools:

- CorpseFinder doesn't follow symlinks

- SystemCleaner follows symlinks

- AppCleaner doesn't follow symlinks

- Duplicates doesn't follow symlinks

- Databases follows symlinks by default, but can be turned off.

For details I'd have to check the code and my comments again, we've accumulated quite a lot of complex handling of "edge cases" over the years :).

Are you sure SD Maid is stuck? Could it not just be taken very long?

Afaik POSIX find (which is SD Maids base tools for file ops) detects and throws errors on circular symlinks.

I think I had someone email me about this, not sure what the outcome was.

If you want me to look into this please make a ticket with the usual.
[Android Apps and Games] KaMyKaSii:
I tested it on AppCleaner and SD Maid got stuck on Termux. Same thing in Apps Control, I tried to calculate the size of Termux and after a long time I gave up and forced stop SD Maid. As you said, it's probably taking a long time, but it's not something I can sit and wait for, since SD Maid would scan all partitions on my device believing it to be the app data. Anyway, I deleted the folder /data/data/com.termux/kbox4 and everything went back to normal. Thanks
[Android Apps and Games] Ranching:
"Remove app but keep its data" doesn't exist anymore? I need to keep a game data but uninstall an app itself in order to replace it with a newer version.
[Android Apps and Games] Oswald Boelcke:
Certainly, it still exists. Please see the bottom of screenshot #3. I hope you've enable the experimental features (see screenshot #6).
[Android Apps and Games] Ranching:
I missed #6. Thanks.

---------- Post added at 05:26 PM ---------- Previous post was at 05:21 PM ----------

It doesn't work though. It still says there's a conflict.
[Android Apps and Games] Oswald Boelcke:
Suggesting to enable "error reporting" to enable a log going out to @Dark3n.

If possible provide some informative screenshots.

Report bugs following this instruction to allow for proper analysis and follow-on action/ticket tracking!
[Android Apps and Games] Ranching:
The option worked per se, but it didn't help when installing a different version of the app in question.
[Android Apps and Games] Oswald Boelcke:
Then isn't possibly not an issue with SD Maid but with the app in question - whatever that is.
[Android Apps and Games] Ranching:
I'm not the only one though, a quote from this post:

"And I don't understand why appcontrol has the item remove app but keep data, imo it is useless, I tried do this then install the same apk but with different signature because I changed its icon, unfortunately the installation failed."
[Android Apps and Games] Oswald Boelcke:
@Dark3n himself provided the answer just two posts below the one you've link. Isn't that sufficient answer - if you read it but I assume you did?
[Android Apps and Games] Ranching:
I must be blind. I used search so I guess I didn't care to read other posts. Thanks, I'll need to find another way then.
[Android Apps and Games] Dark3n:
How is SD Maid v4.7.4 performing on rooted Android O devices?

Can anybody confirm any of these tickets?

https://github.com/d4rken/sdmaid-public/issues?q=is:issue+is:open+label:"Android+O"
[Android Apps and Games] peterlee928:
just to confirm this point:

1) assume that an app has 1 broadcast receiver with multiple intents (keeping this example unrealistically simplistic for illustrative purposes)

2) assume that one of the intents in said broadcast receiver is the boot_completed intent

3) then there is no way to disable only the boot_completed intent without disabling all the other intents in said broadcast receiver

i apologize if i used incorrect vernacular and/or if this is a basic b*tch of a question. i believe i am correct but would like to double check before i inadvertently mess something up.

much thanks in advance :)
[Android Apps and Games] MrWasdennnoch:
Exactly. You can't just pick the one you'd like to disable if the app chose to combine multiple intents into one receiver.
[Android Apps and Games] peterlee928:
much thanks for the confirmation :)

and much thanks to [MENTION=608746]Dark3n[/MENTION] for this app. using it for years and still the best around. :)
[Android Apps and Games] theobjr:
I was wondering whether you could make an option in the sd maid app that will let you select all of the receivers when you are in the process of freezing an app. Some apps have a whole lot of receivers and it takes a while to disable all of them.
[Android Apps and Games] Dark3n:
When you are freezing an app all receivers are automatically disabled. Disabling components (activies,services,receivers) is a subset of disabling the whole app.
[Android Apps and Games] theobjr:
Okay, thanks. I was wondering why select all wasn't an option.
[Android Apps and Games] Dark3n:
To discourage people from blindly disabling all receivers and because I was lazy.
[Android Apps and Games] theobjr:
Just to be sure-when you freeze an app without toggling the receivers it doesn't autostart when you reboot the phone?
[Android Apps and Games] peterlee928:
correct. the app itself is disabled when you freeze an app. as such, it will not autostart when you reboot the phone.
[Android Apps and Games] Oswald Boelcke:
Beta v4.7.5(40705) installed. No issues currently. Great job, thanks very much.:good:
[Android Apps and Games] novas78:
I agree with you. Everything works fine :good:
[Android Apps and Games] Itachi2016:
adding two action in scheduler would make the program better in my opinion. for example we could make one scheduler for cleaning everything once a month and another one for rebooting system once a week.
[Android Apps and Games] zerolam:
Sorry for asking a stupid question about the function, receiver manager.

If I disable all the items in receiver manager of a app, does it mean the app will not run on startup?

Is this preventing apps to run on startup?

Thank you
[Android Apps and Games] Dor71:
Great app, thank you.
[Android Apps and Games] MrWasdennnoch:
Senior member, 370 thanks and creating a thanks post instead of using the button? :rolleyes:

Edit: Recognized Developer, 4700 thanks and creating a complaint post about a thanks post instead of simply reporting it :silly:
[Android Apps and Games] koekoek91:
What's wrong with a " thank you this is a great app" post? I don't see the point of the complaint to be perfectly honest.
[Android Apps and Games] Oswald Boelcke:
In my personal opinion because it's just "spamming" the thread without offering something substantial for app development or bug fixing.

Gratefully, @Dor71 had pushed the thanks button in the OP.
[Android Apps and Games] koekoek91:
I agree that to thank a person for his/her work the thanks button should be used.

I just thought the respond from [MENTION=7083389]MrWasdennnoch[/MENTION], to report a user for simply saying ''great app thanks'' was rather harsh.

But maybe its just me... ;)
[Android Apps and Games] MrWasdennnoch:
In the XDA labs thread we have to regularly report thanks posts from new users who seem to create them solely to get 10 posts. Yes, it was a bit harsh in this situation due to my previous experience but also ment as a joke ;)
[Android Apps and Games] koekoek91:
I know about the rule for new members, but he isn't even a new member.

I guess I didn't get the joke then, I apologize.

Anyway... no worries ;)
[Android Apps and Games] warface9991:
When i optimize database it skips most of the apps how can I fix this or this isn't an issue at all?
[Android Apps and Games] Vagelis1608:
I believe it uses SQLite VACUUM, or something.

That means that it only touches databases that have empty pages, and removes those empty pages.
[Android Apps and Games] KaMyKaSii:
Force these apps to stop and try again. I think SDMaid should ask the user if he want to kill the processes before taking the decision of skipping the databases of running processes
[Android Apps and Games] Dark3n:
https://github.com/d4rken/sdmaid-public/wiki/Databases#skip-running-apps
[Android Apps and Games] warface9991:
So if i have rooted device i should untick the skip running apps?
[Android Apps and Games] Oswald Boelcke:
I've exactly that unticked i.e. that currently running apps are closed by SD Maid.
[Android Apps and Games] theobjr:
I am using the latest beta version and it seems that cleanup is a bit more faster than non beta versions. I know that the ability to disable or enable app receivers is present, but I was wondering if you could add that ability for app services as well. I have "better battery saver" xposed module that does both, but I would rather use SD maid for both of these purposes (as well as the many other things SD maid can do).
[Android Apps and Games] Dark3n:
v4.7.6 shouldn't be any faster than v4.7.5 :).

It's a reasonable feature idea, most of the logic is already there as it's the same for receivers. If you make a ticket on github, I'll look into it for a future update.
[Android Apps and Games] user2k10:
Deleted
[Android Apps and Games] Oswald Boelcke:
No difference in "speed" between v4.7.5 and v4.7.6 recognisable on my device (Samsung GT-i9305) with RR-N-v5.8.4
[Android Apps and Games] patrickdrd:
how can I make sd maid clean a custom folder (e.g. viber images)?
[Android Apps and Games] Oswald Boelcke:
Check the SD Maid's wiki. Link is as usual available in the OP.
[Android Apps and Games] patrickdrd:
sorry, I can't find it. I searched the settings and I couldn't find there either

edit: forget it, I installed ccleaner for that
[Android Apps and Games] Ænimal:
Bad idea jeans
[Android Apps and Games] theejay0625:
Can anyone post a download link for the latest SD Maid Pro? Thank you!
[Android Apps and Games] KOLIOSIS:
Do you not have access to the Google Play Store?
[Android Apps and Games] Oswald Boelcke:
Please allow me to quote the OP - the part of every thread that's a MUST to be read:

Unless it's clearly understood the unlocker for the Pro-version must be purchased!
[Android Apps and Games] Fahrilubis:
Dude what going on if i disabled all reciever manager include other? Thx
[Android Apps and Games] Oswald Boelcke:
@Dark3n: v4.8.0-BETA running perfectly on Samsung i9305 with RR-N-v5.8.4 and Magisk v14.

Thanks very much for the continously great job.
[Android Apps and Games] novas78:
I agree with you bro, beta 4.8.0 works great. Tested on OP3 with Carbon ROM-5.1, blu_spark kernel r182 and Magisk V14.