yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mike B.:
In that case, if you can't isolate which component needs to be retained, start to selectively exclude various areas from the SD Maid cleaner until you narrow it down to the specific elements. Ideally it would be nice if you could compare the "before Pebble" and "after Pebble" contents of /cache, /data, or whatever areas you ask SD Maid to clean.
[Android Apps and Games] munky-head:
I'd gladly do that, perhaps you could point me to what am I looking for?

I consider myself a power user, but this territory is still uncharted to me. So far, I've allowed SD Maid to run freely...
[Android Apps and Games] Vagelis1608:
You can check what SD Maid found in each tab by clicking the (i) button before cleaning.

Sent from my D620r [Stock 4.4.2 , -V- Kernel]
[Android Apps and Games] Dark3n:
[MENTION=4849551]Vagelis1608[/MENTION] maybe we could make all items within a tool searchable such that you don't have to look through each details window :)...
[Android Apps and Games] Vagelis1608:
Nice idea.

It always annoyed me results aren't searchable.

You could also have them in a unified display.

You should do it. :D

Sent from my D620r [Stock 4.4.2 , -V- Kernel]
[Android Apps and Games] Dark3n:
Casual beta v3.1.3.4 (371).

New translations (thanks!) and updated the databases according to what was reported (thanks too!).

For those on Android M, I've added some experimental fixes. The storage should now be detected correctly and the AppCleaner should fully work on unrooted devices again. I'll exchange these bandaids for a proper solution in SD Maid v4 when Android Macadamia Nut Cookie is more stable, it's quite buggy atm (duh, it's a dev preview).

As Android M is experimental in itself and the fixes only affect those on Android M, I'd call this a release canidate and it will most likely go into staged rollout on the weekend at the latest.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelogbeta﻿

And before everyone asks again, yes I've started on SD Maid v4 and it's redesign, no ETA, all good things in time :).﻿
[Android Apps and Games] killoid:
[MENTION=608746]Dark3n[/MENTION] i am having a strange problem. if i move it to my sdcard, then even after granting su prompt, it repeatedly prompts me to grant su after every reboot when i try to do some operations. but if i keep it in internel memory, then everything is fine. my device is galaxy y duos, stock rooted gingerbread 2.3.6 rom.
[Android Apps and Games] Dark3n:
Hm didn't hear that one yet. There is nothing in SD Maid itself that changes behavior depending on it's install location.
[Android Apps and Games] eluspo:
Noob question. How do i exclude an app from being cleaned in the App Cleaner?
[Android Apps and Games] Vagelis1608:
From the Exclude menu (the pin icon in tab view) you can set an exclude for that app only for App Cleaner or for all functions (of your choice).

Sent from my D620r [Stock 4.4.2 , -V- Kernel]
[Android Apps and Games] eluspo:
Can you help me do it, seems like its going to be a directory. I wanna exclude google photos.
[Android Apps and Games] Vagelis1608:
It doesn't have to be a directory.

Excluding the package name will definitely do the trick, not sure about the app's name.

Sent from my D620r [Stock 4.4.2 , -V- Kernel]
[Android Apps and Games] Ultramanoid:
That would be : com.google.android.apps.photos
[Android Apps and Games] eluspo:
Will try it, thank you!

---------- Post added at 10:29 PM ---------- Previous post was at 09:54 PM ----------

Seems like its still deleting the thumbnail file of my saved pictures (uploaded pictures) in google photos. Im not even sure whats the directory of those thumbnails. I have a lot of uploaded photos, i want it to load right away everytime i open google photos.
[Android Apps and Games] Dark3n:
[MENTION=4704871]eluspo[/MENTION] the easiest way is to long press an entry, then select exclude in the selection menu. Creating an exclude manually through the manager works too ofc.

[MENTION=4849551]Vagelis1608[/MENTION] correct, all features support exclusion by path, appcontrol and appcleaner additionally support exclusion via packagename. For other tools this is simply not possible as the there is no direct relation (systemcleaner, duplicates) or no app to compare against (corpsefinder).

Excludes on unrooted devices are really complicated when using the appcleaner tool.

On unrooted devices, using "Clean all" in the appcleaner does not respect excludes as SD Maid will utilize a system function to empty private cache folders, because it lacks the permission to do it otherwise.

Now there is a trick that is actually the complete functionality of most "cleaner apps" out there: It is possible to use reflection to call a system method that allows you to ask for more storage. It's intended to ask for more free space before installations and such. By asking for something like 500GB (something higher than your storage), this function will empty all default cache folders. This is essentially also what happens when you press the "cache" entry in the system storage display on 4.3+ (hm or 4.4+?) devices.

This function obviously doesn't know about SD Maids excludes. As this system function also targets the normal public cache (.../sdcard/Android/data/.../cache/...) and we can't prevent it from doing so, excludes will also not work there (despite SD Maid not requiring this trick for that). So when using clean all in the appcleaner on unrooted devices, the excludes only affect files that SD Maid found but the system didn't. This usually are folders on the sdcard root, wrongly labeled folders under Android/data/ and correctly labeled folders with cache files placed outside of /cache/.

Now when you don't use "Clean all", but manually select one or multiple entries, SD Maid can use it's own functions to delete the files and thus respect the excludes, but then obviously won't be able to empty the private cache folders as it lacks the permission.

While skimming through the source code on Android M, i saw something that might let us fix this on M+, but time will tell.
[Android Apps and Games] eluspo:
You can't long press an entry in the app cleaner. I was able to exclude the google photos app, but it seems that whenever i clear app cleaner eventhough it's not showing, my thumbnails stilk gets deleted.
[Android Apps and Games] eageour:
Very useful tool!
[Android Apps and Games] atomomega:
[MENTION=608746]Dark3n[/MENTION]

I just noticed that you appear now as a Top Developer in the Play Store.

Sorry if I'm late to the party but CONGRATULATIONS!!!
[Android Apps and Games] Ikkuh84:
Will uninstalling this app restore the app changes I made with this app, for example if it should boot or not?
[Android Apps and Games] Dark3n:
[MENTION=4704871]eluspo[/MENTION] but you can long press item in the appcleaner (Except on Android M). If you are unrooted, please read my explanation. (also don't do full quotes)

[MENTION=3152709]Ikkuh84[/MENTION] No.
[Android Apps and Games] EarthquakeJake:
For some reason the corpse finder doesn't seem to find unneeded asec files. I made sure it's selected asec files for deletion and made sure root privileges are granted but nothing. Am I missing something? Rooted Galaxy S4 verizon 4.4.2 Hyperdrive ROM 19
[Android Apps and Games] Dark3n:
Can you show me some examples?
[Android Apps and Games] EarthquakeJake:
Surely. Here's some screen shots. Google plus and pop-up video are two apps that have been uninstalled for some time. There are others as well. I can search through and find them all if you need. Thank you
[Android Apps and Games] Dark3n:
The asec filter currently only targets /data/app-asec where the encrypted app containers reside if stored on internal memory. /mnt/secure/asec contains encrypted containers that are stored on the sdcard.

So you didn't miss anything, this seems to be an oversight on my part :(. Lack of sdcard in my Nexus5... I don't think it will be too difficult to fix, but i don't want to make any major changes to SD Maid v3 anymore. So this will have to wait till v4.... (No ETA but I'm working on it).

Could you kindly make a ticket for this here: http://sdmaid.darken.eu/issues ?

Please include your screenshots and if you have the time, "pathdumps".

If you turn on SD Maids experimental features or set it into debug mode, the Explorer has an extra menu entry called "Pathdump".

If you could run that on the following folders and include the text files in the ticket, this will be all i need to add the functionality.

/data/app-asec

/mnt/asec

/mnt/secure/asec

Additionally any other folder you know or find that contains "*.asec" files.
[Android Apps and Games] EarthquakeJake:
I did the path dumps like you asked but the files ended up being empty (0 bytes). Did I do something wrong?
[Android Apps and Games] Dark3n:
Not necessarily, might just be an issue with the pathdump function which is quite experimental.

Create a ticket and describe the issue as accurately as possible. Put a link to these posts in it and i think i should be able to figure the rest out when it's time to work on it.

If you can otherwise generate a list of those pathes contents, that would help me, but it's not mandatory for me to be able to work on this.
[Android Apps and Games] EarthquakeJake:
Will do and thanks for the dedication
[Android Apps and Games] hackerpower:
Why do i get these entries after i uninstalled the apps (camara fv5, beautifulwidgets) completly?

I can still export the apk, where are they?
[Android Apps and Games] Dark3n:
Did you refresh the list after uninstalling?

What does the details window show?
[Android Apps and Games] LEENO:
i buyed this great app,

i have feature request:

add in tasker the plugin "enable/disable autostarts component" for the apps selected, so with one click on the tasker profile i can save battery
[Android Apps and Games] Ikkuh84:
This is the only option I miss.
[Android Apps and Games] hackerpower:
Of course, i tried uninstalling with sd maid and with titanium also. Please see attached SS.
[Android Apps and Games] Dark3n:
This remains after device reboots too?

Can you still find the apk file in e.g., /data/app ?

For further investigation please record a logcat with SD Maid in DebugMode 2 (advanced settings).

One logcat of SD Maid generating it's app list and if it's reproducable, one log of an uninstall that results in this.

If the same thing happens when doing it with TiBu i would guess there is something wrong with your ROM though.

Has the app being uninstalled, been a system app before?
[Android Apps and Games] hackerpower:
No i can't find the apk, but the folder is there, i delete it and after the reboot there it is again. Yes all system apps, i guess that they are part of the kernel or something. Probably chinese rom bug.

Edit: Log file attached :highfive:
[Android Apps and Games] Dark3n:
What I'm not seeing in the log is the removal of the .apk file.

While for non-system apps, .apk file removal is implicit in the uninstall process for system apps we have to do that in an extra step.

I checked the code again and it would only be missing if SD Maid failed to find it's path.

Can you show me the details window (SD Maid) of another system app that is still installed?

Do the apps still work and just loose their settings?

Also try looking for the path of the apk file on /data/app and /system/app
[Android Apps and Games] rsngfrce:
I don't know if anyone else has mentioned this, as I haven't been following this thread for a while and this is a very MINOR bug but, unless it is specific to my phone, there is a problem with the maid animation pre-deleting (I have the pro version). She drinks her coffee in a double-shot manner, as opposed to the 'normal' animation. This has survived multiple updates and I'm pretty positive wasn't always like this... ;)
[Android Apps and Games] hackerpower:
Solved!

It were apps in the system/vendor/operator/app and in vendor/operator/app

SDmaid was working perfectly and detected them.
[Android Apps and Games] Dark3n:
[MENTION=4640611]rsngfrce[/MENTION] If something doesn't get fixed in the next update, assume that I'm not aware of it.

You can check http://sdmaid.darken.eu/issues for known stuff.

I'm really thankful if even minor details are reported, even if they are not critical, if they are not on file, they will never get fixed :(.

Can you show me a video of the animation going wrong?

[MENTION=5106992]hackerpower[/MENTION] I don't understand, please elaborate.

So now SD Maid detected them? How did you come to that conclusion?
[Android Apps and Games] hackerpower:
SD Maid detected those apps as shown in the SS i posted earlier, because the apks were still in those folders vendor/operator... even after uninstalling them.

Apps in those folders get reinstalled in case of a factory reset or system restore.
[Android Apps and Games] rsngfrce:
I'll have to figure out how to get one, but I will do so. Thanks!

(Update: I'm on Android 4.4.4, so I don't have the easier screen record capability yet and both apps I've tried didn't work.)
[Android Apps and Games] arf8:
Where are all the exclusions located? If one wanted to remove an item from exclusion previously how would you find it?

Thanks
[Android Apps and Games] rsngfrce:
That's a GOOD question! I used to be able to find them, but the last time I looked (corpses specifically), I couldn't seem to find them myself.

(Still working on a video... :))
[Android Apps and Games] Dark3n:
I don't get why it's so hard to find, it's right besides the button for the settings. This seems to be asked quite often.

Is there something I'm not aware of?

Anyways v4 will move it to the navigation drawer.
[Android Apps and Games] arf8:
Thanks, I never guessed a pin button is the exclusion button. Great app, especially the Search function which is probably the best of its kind that uses wildcards and finds folders too.
[Android Apps and Games] Dark3n:
New version out.

SD Maid now has a file search function which works with both rooted and unrooted devices.
[Android Apps and Games] Dark3n:
I'm currently thinking about the next feature, i'm leaning towards a file manager like root explorer...

Or are there any requests?
[Android Apps and Games] Dark3n:
v0.8.9.1 is out.

It includes a few bug and performance fixes and an option to globally exclude custom directories or files from all functions except the searcher.
[Android Apps and Games] garywojdan81:
Just bought the pro version & the addition of a fully functional file manager would be great.
[Android Apps and Games] jimbobtexas:
Tablet support?

GUI menus are all smashed up...can't read or use them.:(
[Android Apps and Games] Dark3n:
Could you provide me with a screenshot?
[Android Apps and Games] Dark3n:
v0.9 is out and includes a full fledged filemanager!
[Android Apps and Games] james60007:
upgraded to 0.9....ran the file manager and it said 'sdcard not found' at the initial run...
[Android Apps and Games] azzzz:
Sd maid deleted my prons in my hidden folder...:"(

But it is a great apps nonetheless. Time to find new prons...:D
[Android Apps and Games] Dark3n:
It should only display that short, while loading the directory on first launch.

Can you elaborate further?

So the maid cleaned away your porn stash ;D

Ok, where was it hidden, what filename and what function of sd maid deleted it?
[Android Apps and Games] ricky babalu:
@Dark3n - I did not see this mentioned. Is it possible to include a "Undo last Cleaning" button in case you delete something by mistake?
[Android Apps and Games] james60007:
Sorry, I didn't realize that was by design. So all good. (I bought pro vserion.)
[Android Apps and Games] barqers:
Love this program! Just started trying it out about 15m ago :P
[Android Apps and Games] Truckin'Ain't4Sissies:
Droid INCREDIBLE users running CM7: I emailed the OP in regards to not being able to see the External SD.

Thank You Dark3n for the prompt email reply, if you'd like I can test the app after you get the small bug fixed.
[Android Apps and Games] jcbofkc:
Works great on my stock/rooted G2x. Found three corpses and deleted them. Cleaned out some stuff left from the T-Mobile bloat I uninstalled.
[Android Apps and Games] Dark3n:
I just pushed 0.9.3 to the market.

Did some bug fixing.

Also tried to increase performance and fix problems with the user interface freezing on slower android devices.

I also improved the root check, sd maid should start in limited mode more reliable on non rooted devices.

External SD should display correctly for the droid incredible now.
[Android Apps and Games] anoneemooz:
Not to sound picky or anything since this is a very useful tool and I appreciate you making this very much (I bought the app ;P )...

But I wish this came with a better looking/simple icon and a more polished UI.

Sorry LOL but yeah, I did buy the app anyhow so I hope I don't come off like a picky arse lol
[Android Apps and Games] beetroot:
I love that you have added a file explorer. Would you consider adding the option to set colours, font size and sort order? I find blue on black too hard to see, but need some differentation instead of all grey. It would be nice to have folders show first, then files (alphabetically).

Also, would you consider adding some sort of history erasing and a one button type app cache cleaning? I realise there are many apps that do this already but it would be nice to have an all-in-one cleaner app.
[Android Apps and Games] Dan_Aykroyd:
Hi!

I've just found out your app and I'm glad I did! I'm still trying to get the hang of it all, so I have a question to ask. When running the Corpse finder in my Samsung Galaxy S I9000, it misses a lot of apps I uninstalled from my phone, for example, here's a package name:

com.sec.android.app.minidiary

It has this name in the dbdata/databases directory, the app is uninstalled (no traces of it), and it still doesn't show as a Corpse. That happens with all the applications I uninstalled (Memo, AllShare, etc.). The only thing that it shows is "drm" and "youtube", and those two are actually installed! :D

Please, let me know what's going on. I'm really interested in buying your app if it can go through every folder in dbdata/databases and show me those that don't have a corresponding app installed.

Thanks man, keep up the good work!

EDIT: the same folder resides in the data/data dir too
[Android Apps and Games] Dark3n:
DRM and Youtube get recreated on every reboot.

If you have debug output in settings turned on, you can run the corpse finder and take a look at the log it will tell you why it excluded items.

It wil look something like this:

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched com.aurorasoftworks.quadrant.ui.standard and com.aurorasoftworks.quadrant.ui.standard

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched com.google.android.feedback and com.google.android.feedback

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched com.dropbox.android and com.dropbox.android

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched lv.n3o.lcddensity and lv.n3o.lcddensity

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched org.mozilla.firefox and org.mozilla.firefox

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched com.android.angryGps and com.android.angryGps

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched com.cooliris.media and com.cooliris.media

DEBUG/eu.thedarken.sdm(4885): (Android Corpse Finder) matched com.google.android.googlequicksearchbox and com.google.android.googlequicksearchbox

Maybe you excluded them by accident?

Check your excludes in the settings.
[Android Apps and Games] Dark3n:
Which symbol does signify "Exclude" or "Exclusion" to you?

I thought a thumbtack to "keep" it pinned was fairly clever :D.

Maybe in v4 an anchor or somekind of fence?
[Android Apps and Games] arf8:
I wouldn't even put it there, i would add it to the navigation drawer where most people would look. Funny i have explored the app pretty well all for expect that button.
[Android Apps and Games] rsngfrce:
Was it always there? I thought it was in the navigation drawer at some point, but maybe I am imagining it!
[Android Apps and Games] Dark3n:
Here to brighten up your monday, v3.1.3.6(373).

The usual updated databases and translations (thanks guys).

Fixed operations in AppControl on 64bit devices (didn't work at least on the N9) (Ty Mike L).

Improved CorpseFinder results on devices with hidden apps (e.g., KNOX, Emulators). Some devices e.g. Note4 had false positives related to KNOX apps.

http://sdmaid.darken.eu/download

http://sdmaid.darken.eu/changelogbeta﻿
[Android Apps and Games] Dark3n:
The 64bit fix did not work correctly in v3.1.3.6, I've just published v3.1.3.7 which should remedy that.
[Android Apps and Games] S0rcerer7:
Love this app, but recently, when I run the Duplicates, it searches for a couple of minutes, and then the app closes & I'm back at my main screen.

The other tabs all seem to work, but Duplicates is the reason I bought the Pro version..

I'm using a rooted LG G3 if that helps.

(and yes, it did work when I first downloaded it, and I have tried uninstalling and reinstalling to no avail)

Thanks for any insight.
[Android Apps and Games] grabb0r:
I just found out about this app and as someone who amasses hundreds of MB per year in junk files WOW you are my hero sir! I haven't used it yet, but I am sure it will be one of the more useful tools on my phone. I am impressed by not only the functionality itself, but the fact that you haven't abandoned it after so many years of development is superb. So many people seem to lose interest in great software they've designed (ROMs in particular) and clutter the android landscape with unsupported abandonware... or perhaps worse, a trail of dead links and no news. Your diligence is downright amazing - thank you!

I am just about to flash a new ROM and SD Maid is going to be the very first app I install... even before TiBu and restoring my old apps/contacts. I am just curious as to how your program actually identifies junk/orphaned files etc. Does it use a logging method during installations like Revo Uninstaller or does it do something similar in nature to identifying what's installed and querying files to determine if they're connected to an existing app or not? Does it clean out redundant permissions entries for installed apps (which google software in particular can really pile up with forced updates if you're like me and insist on denying location permissions via xprivacy)?

What type of "junk" is SD Maid NOT designed to clean, and why does it avoid that stuff?
[Android Apps and Games] Dark3n:
[MENTION=3802046]S0rcerer7[/MENTION] Record a logcat of the crash, with a stacktrace i would immediatly know where it crashes.

The latter one, some careful knowledge about what is supposed to be where, how it should be named, some reverse querying of installed apps and checking what they have in use, thus what is left over isn't in use and all that is supplemented by a database made from user reports to deal with the odd ones out.

I have thought "RevoUninstaller" concept, I've used an application called "cleansweep" decades ago that could remove installed stuff as long as it was running during installation of that. I plan to look into that at some point again, but it's a more ambitious project.

No, how would you determine what permission is unused? Even if you decompile the app and compare the code with all API methods that require a certain permission, the false positive rate would be huge.

SD Maid is not a privacy cleaner, e.g., Calllog, BrowserHistory, SearchHistory. If it can be done by deleting a single file, then you can teach SD Maid to delete that file, but in general that type of "cleaning" is not something i have interest in.

I personally would also rather call SD Maid a "File Tool" than a "System Cleaning Tool", cause the later one sounds cheap, but it definitely is better in terms of search keywords...