yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] 2_i:
I tried SD Maid's System Cleaner before, but it did not help - it did not remove the corpses. In settings/apps I see the grayed out corpses and if I remove an app there it can be thereafter reinstalled so while it is still a bit tedious, it can be done within a finite time. Thanks!

I did indeed use the Lucky Patcher. At this point it was gone together with most other apps but I brought it back to life. When removing odex files, it would work on that for a while and then cause a reboot. I repeated this a couple of times and cleaned the dalvik cache but all that on its own did not help - the apps in question could not be reinstalled. However, the overall issue maybe indeed tied to the Lucky Patcher. Since it keeps its hands off some apps, that would explain why some of them could be reinstalled without problems.

For the record, I also tried Clean Master, but it just ended removing useful files - no problem there in the end as I have a backup.
[Android Apps and Games] Dark3n:
The SystemCleaner can't find corpses because it has no notion of "installed/uninstalled" or even apps, it doesn't know what an app is, it just knows files and folders, it scans everything and matches against static filters, meaning unaffected by your device setup.

You could also see if the apps are listed as "NOAPK" in AppControl, if so, you could search for "NOAPK" or "NO_APK" (not sure), which will filter only for that, then you can select all entries and do a mass uninstall/delete.

But the correct tool for this job would be the CorpseFinder.
[Android Apps and Games] 2_i:
The tweaked version of SD Maid concluded successfully within minutes, finding 278 corpses. Upon their removal I am able to proceed with reinstallations :)
[Android Apps and Games] KOLANICH:
Dark3n, would you like setup an fdroid repo on your servers? I know that fdroid is mostly for opensource, but as I understand nothing limits you to use it for proprietary sw.
[Android Apps and Games] Dark3n:
To offer SD Maid on F-Droid or what do you mean?

Deploying SD Maid via another market is currently too much overhead for my liking.
[Android Apps and Games] sagar2330:
great work

Great work frnd.....keep it up
[Android Apps and Games] KOLANICH:
[MENTION=608746]Dark3n[/MENTION], F-Droid is not just a market. You can setup your own market. You just need a folder in your site, an apk, an xml file with metadata and .htaccess file to open the xml as default file in that folder.

After you have setup it, you publish an url, users input this url into fdroid client and your app appears in the client.
[Android Apps and Games] Mike B.:
Out of curiosity, what would be the advantage for the users and/or Dark3n of going through F-Droid instead of or in addition to the current options (Play Store + Dark3n server)? It seems like a lot of work and maintenance for no clear gains. I have never found a reason to grab the F-Droid client and I see a number of F-Droid users getting confused because of signature conflicts on various apps but perhaps I'm missing an obvious benefit?
[Android Apps and Games] gbueno6:
Hi fellas!

I've got an small question for [MENTION=608746]Dark3n[/MENTION]: I have toggleled every autostart option of Google Play Services (just like I did in kitkat) in my moto g GPE 5.0.1 but I see, every time I exit and re-enter the app that 4 of them are still "on" while the other options are "off". Is there anything wrong? (Screenshots attached)

Have a great day and thank you for this great app!

A proud owner of SDMaid Pro
[Android Apps and Games] Dark3n:
That's a pretty sneaky bug you caught there, that could have gone ages without being detected, thanks!

The wrong component (one that is not listed) is getting disabled, which is why you don't see a change.

To prevent unknown sideeffects, please toggle each entry that shows this behavior, once to the OFF state, then to the ON state again.

This way the component we wrongly disabled, will be enabled again.

For the curious, the details:

It only happens on Lollipop and only affects entries that end with "$[Component]"

This is what we want to do:

pm disable com.google.android.gms/com.google.android.gms.config.ConfigFetchService$PackageReceiver

It goes [app package name]/[full package path to outer class]$[Inner class]

The "$" means the broadcast receiver that starts on boot, is an inner class.

If you put that into the shell as root, we get this:

Component {com.google.android.gms/com.google.android.gms.config.ConfigFetchService} new state: disabled

Notice the last missing $PackageReceiver, that's because $anything is interpreted as a variable by the shell which then tries to expand this variable. Because there is no variable name defined, it is replaced with "nothing".

But that should not be an issue because all commands in SD Maid that use external input, such as packagenames, app names, filenames etc. are sanitized by escaping any special characters.

So the command we run actually looks more like this:

pm disable com\.google\.android\.gms\/com\.google\.android\.gms\.config\.ConfigFetchService\$PackageReceiver

And this works on <5.0, because we are directly executing that.

On 5.0 though we are using context switching, so the command looks similar to this:

su --context u:r:system_app:s0 -c "pm enable com\.google\.android\.gms\/com\.google\.android\.gms\.config\.ConfigFetchService\$PackageReceiver"

Which means we open another shell with a different context that then runs the command.

What i did not take into account is that each shell consumes the escape literals.

So we tell shell-A "do \$stuff", what shell-A then sees as final command is "do $stuff".

If we would pass this to a shell-B, that shells sees $stuff as variable and expands it to nothing, so what shell-B actually executes as command is just "do ".

What's the solution? We replace the outer double quotes that wrap the command with single quotes, the single quotes preserve the literal characters.

This means that the input the second shell receives still contains all escape characters like it was before <5.0 where we directly executed the command.

The final command then looks like this:

su --context u:r:system_app:s0 -c 'pm enable com\.google\.android\.gms\/com\.google\.android\.gms\.config\.ConfigFetchService\$PackageReceiver'

TLDR

' vs "

:(
[Android Apps and Games] Dark3n:
I think i will push a beta for this as this can potentially break apps depending on what the component is that gets wrongly disabled.

Because SD Maid only shows Autostart components (i.e. on boot receivers), and the outter class most likely is not an on boot receiver, you can't actually fix this within SD Maid if this has caused problems.

I've looked at a few other apps that can toggle components and this one would do the trick, i.e. renable the wrongly disabled component, though it seems to be affected by a reverse issue as it doesn't actually show the nested receivers that caused the issue in the first place.

This leads me to the conclusion, that SD Maid should have an experimental/advanced section that shows all app components not just on boot receivers.
[Android Apps and Games] gbueno6:
I'm more than happy to help! I've been playing with it since kitkat but, considering I had a severe battery drain caused by Play Services, I decided to disable every autostart (just like I do with almost every app) option and then I saw that problem.

I wish I could help you more! If I can do anything for you, just tell me and I will for sure!

Have a nice day!

PD: I did what you asked me to avoid potential issues and it worked! (I couldn't check for updates, for example). Please, let me know if I can help.
[Android Apps and Games] Mike B.:
Oh I enjoyed that confession! Those of us who have been dealing with Unix and its descendants since way before POSIX have all at one time or another weak quoted (") when we should have strong quoted ('). I suspect that countless debugging hours have been spent tracking down that nasty little difference over the years. Don't fret, you're in good company! ;) ;)
[Android Apps and Games] Dark3n:
SD Maid v3.1.1.4 (356) and I wish you all happy holidays.

Noteable changes:

This fixes the previously mentioned autostart issue on Lollipop. If you think you may be affected by this, see here on how to fix this.

You can fix it with SD Maid v3.1.1.3 or a 3rd party app if you already updated (but you can also reinstall the old version to use it to fix this).

TLDR: Turn buggy entry off and on again in v3.1.1.3, then update.

This version also includes the speed improvements in the CorpseFinder I implemented for user [MENTION=5276700]2_i[/MENTION] .

Full changelog:

http://sdmaid.darken.eu/changelogbeta

Direct download:

http://sdmaid.darken.eu/download

I'm always happy about more beta testers, such that we can spot these issues early on.

Check out http://sdmaid.darken.eu/beta to sign up for automatic beta updates.

It's unbelievable how these little things cost hours upon hours of debugging time.

I'm glad some people can relate. I'm always unsure how many people read these huge blocks of text with technical details.
[Android Apps and Games] Spaulding89:
Thanks and Merry Christmas [MENTION=608746]Dark3n[/MENTION]

Sent from my lollipopped Bacon with loaded AK Kernel
[Android Apps and Games] gbueno6:
Hi [MENTION=608746]Dark3n[/MENTION]!

Disabling play services autostart is working again! I haven't found any bug yet.

Thank you for your help and work! Have a nice day!

Enviado desde mi XT1032 mediante Tapatalk
[Android Apps and Games] Dark3n:
v3.1.1.4 is now going into production.
[Android Apps and Games] spupuz:
are you planning a material design refresh? :D
[Android Apps and Games] CM17X:
Hi [MENTION=608746]Dark3n[/MENTION]

Sorry if I miss something but how can I get the latest version instead go to the Play Store? I have SD Maid Pro and I see you've released update 356 at Dec 24, but Play Store stills at 355.

Thanks for your help.
[Android Apps and Games] Dark3n:
Sometime next year, no ETA. I'm currently busy with other stuff and i want ROMs to "settle" first, such that i can take all changes into account. It will be most likely a SD Maid v4, with more than just new looks.

A direct download link is in my previous post. The app is still in staged rollout, there was someone who complained about SD Maid removing notification sounds, i had hoped that person would contact me with details before I increase the rollout.
[Android Apps and Games] Alexey71:
@Dark3n

Hi. Bug. not removed system applications. I sent you the PM logs

Video http://youtu.be/irrRk2PO1PU
[Android Apps and Games] Dark3n:
Thanks. It fails because SD Maid fails to remount /system to a writeable state. What Android version and Superuser app are you using?
[Android Apps and Games] Alexey71:
cm11 official and su stock cm11 http://download.cyanogenmod.org/?device=mondrianwifi

Other functions sd maid, working
[Android Apps and Games] Dark3n:
Could you try SuperSu and see if it works with that?
[Android Apps and Games] Alexey71:
SuperSU work. Can you fix for cm11? Each time put SuperSu after updating is not very good ...
[Android Apps and Games] Dark3n:
[MENTION=4896512]Alexey71[/MENTION] I currently don't know what's going wrong, normaly i would guess that this is SELinux related, but AFAIK CyanogenMod ships with SELinux turned off or in permissive mode. I have some time issues atm, but i think i can flash a CM11 rom on a device of mine next week and look into this in detail. If anything new comes up until then, please let me know.

PSA: 2015 started with some drama, which i don't want to hide from you.

CM Security is accusing SD Maids Unlocker of being malware which is of course not true.

It doesn't keep people from sending me mails and bad ratings though :rolleyes:.

I have adressed this on Google Plus and have gotten a public response from Annie Lin (CM Security), who promises to look into it.
[Android Apps and Games] Celestial Fury:
That's funny. I have the unlocker but CM has never flagged it in any scan as anything. CM was installed after SD Maid.
[Android Apps and Games] Dark3n:
It's only the specific version of v3.1.0.1. If you are not in the beta community you might have not gotten it, because it never went above 20% rollout.

It's currently been replaced with v3.1.0.2 which is the exact same app only different version code, but it's weirdly not being flagged.

If you wish to confirm it yourself, i can mail you the files.
[Android Apps and Games] Celestial Fury:
Sure thing. Will send PM.

---------- Post added 2nd January 2015 at 12:25 AM ---------- Previous post was 1st January 2015 at 11:47 PM ----------

The results:

My previous unlocker version 3.1.0.0 scanned by CM Security 2.3.1.1072 was not flagged. 3.1.0.1 & 3.1.0.2 that you sent also not flagged.

I could not install com.cleanmaster.security.apk you sent. It said X Application not installed . Different signature? What version?
[Android Apps and Games] Alexey71:
Incidentally i install CM12, too does not work removal:)

I tried SELinux permissive mode, did not help
[Android Apps and Games] Dark3n:
The CM Security apk is from from Google Play from this night. The screenshots are from a stock factory-reset Nexus9.

The CM Security version is v2.1.0(20101988), but i think it's not important what version the apk itself is, rather what version the used "virus definitions" are.

It would probably be a definition between:

20140820A (stock definition of the apk) and 20141224A (latest via update check).

That is assuming that the Nexus9 gets the same definitions as the a Nexus4 emulator.

(I currently don't have the N9 with me to try to reproduce it on it).

I could no longer reproduce it myself, so this is good news, meaning they hopefully fixed it now.

It is still worrying that it happened in the first place and I'm still very much interested in an explanation, how they came to their conclusions.

[MENTION=4896512]Alexey71[/MENTION] :( then you will have to wait till i get time to setup a test device, sorry.
[Android Apps and Games] Dark3n:
Either the "Virus Definition Update" can happen both invisibly in the background when starting CM Security or there is additional network communication going on that affects the results but is outside of the "Virus Definitions" scope. I did not run the database update. I first installed CM Security and then the unlocker which upon finishing it's install, was flagged.

It would be interesting to check out what sort of communication is going on, by monitoring network traffic on a fresh install of CM Security (e.g. emulator + wireshark).

edit: The virus definitions are updated silently in the background, upon completion it sometimes shows you a toast message about it.
[Android Apps and Games] Dark3n:
I have no explanation from CM Security yet, but the mistake seems to be rectified now as i got no more negative reports and can no longer reproduce it.

Unfortunately this "mistake" had a noticeable effect as the Unlocker uninstalls increased by 200% over new year.
[Android Apps and Games] Spaulding89:
This is really harmful business (I hope this word is right I used Google translation :D) (@Dark3n I mean Geschäftsschädigend)

Sent from my lollipopped Bacon with loaded AK Kernel
[Android Apps and Games] Mike B.:
Please don't feel too bad. Those %$#@ "security" checks constantly trigger false positives for no valid reason at all on most platforms. IMHO the "antivirus/antimalware" racket is a despicable exploitation of inexperienced users who put their trust in the wrong places. Uninstalling anything that gets tagged is an unfortunate reflex, mostly found in people who routinely run known "insecure" environments such as that flaky OS from Redmond that shall remain unnamed. In the Android universe, there are no clear good reasons to run those "security" apps at all as long as users exercise basic common sense about what they download from where and keep recent backups.

If I had a current app on the Play Store, I'd simply take a proactive approach and add a warning such as:

"Some 'security' applications may occasionally trigger a false positive alert about this and similar applications. Those can typically be ignored and will often go away shortly. If you have any concern about this issue, feel free to contact the developer or search Google for additional insight"​

A little paragraph discussing the matter in a FAQ wouldn't hurt either. Ideally users will eventually see that there are many more false positives than actual useful warnings. How about enhancing SD Maid with an option to automatically delete all "security" and "antivirus" apps it finds? ;)
[Android Apps and Games] LinearEquation:
This got exposed on Reddit too. CleanMaster devs know what they did. They are pathetic and their app is crapware, which is why I don't use their apps. The result was a resounding disgust towards CM.
[Android Apps and Games] EarthquakeJake:
I've been using this app since I first got an android, LOVE IT!

Now I just have one dumb question; what is the lighting bolt button do in app control?

I've searched the help page and searched this thread and can't find an answer.
[Android Apps and Games] anandnitin25:
sd maid

i really like deleting files from uninstalled apps.It makes system more faster than before.
[Android Apps and Games] Dark3n:
Kill the app.

You can long press items in the actionbar to display a description.
[Android Apps and Games] andyjg247:
Been using this for a while and wanted to day thanks. I know I can just press the thumb and that writing it takes space in a dev thread but it doesn't feel the same so apologies for these errors. Cheers
[Android Apps and Games] aeroman:
hey guys i'm using the latest stable Play & Pro Version and want report following...

I have uninstalled with TB a lot of unuseful system apps.

has seen now, which is whole odex files still in system /apps or priv.

SD Maid is installed on my Note 4. the integrated corpses more finder,

does not find the odex files. although this function (Odex-Rests) is activated already in the attitudes?!

Best Regards
[Android Apps and Games] Mike B.:
I don't think the corpse finder is intended to look in /system/app or /system/priv-app. The check mark in the CorpseFinder options only refers to the Dalvik cache. Note that TiB also has a quick option to delete unnecessary .odex files from the Dalvik cache.
[Android Apps and Games] Sick1:
Any possibility to get Pro without Google? Meaning a Paypal donation etc?

Really like this app! Got CleanMaster before and this is way more lightweight and "clear" to me!!
[Android Apps and Games] aeroman:
it must be this, pity covered only to the Dalvik.

system-far it would have been by far more interesting. :)

TB can't help more, the unnecessary odex files are in system/app and system/priv

or a few under system/framework and system/libs to find other rests. ;)

Regards
[Android Apps and Games] Mike B.:
For this type of thing, I suggest using Root Explorer, but make sure you don't delete something you might need later. Having a good current Nandroid backup would be wise.
[Android Apps and Games] aeroman:
which requires a lot of time. :)

would be nice if SD Maid Pro would develop into an all-round tool

would clean scan and system-wide and perhaps debloat (tool) including. ;) :good:

Regards
[Android Apps and Games] Mike B.:
This is not the place to discuss other apps, but Root Explore can delete all *.odex files very quickly with a simple filter. Personally I'd prefer for SD Maid to stick to what it does well and not try to be everything for everyone. Most "all-around" tools are not very good at any of the many things they try to do. I don't even use many of the current SD Maid functions. I suspect [MENTION=608746]Dark3n[/MENTION] already has enough headaches as it is.
[Android Apps and Games] aeroman:
since i use Solid Explorer i missed my good & old Root Explorer :)

I can well imagine, perhaps a possible feature for the coming future. :cool:

otherwise useful & nice tool. :good:

Regards
[Android Apps and Games] atomomega:
No! Please keep this amazing app doing what it does right now. No additional features that later become obtrusive and unnecessary.

SD Maid in it's current state is really useful and practical. For other functions there are other tools.
[Android Apps and Games] 0bu:
[MENTION=608746]Dark3n[/MENTION] Hi, just stopped by, after quite some, time to say thanks and congratulate to yet another fine update for your amazing app, just to keep you motivated ;) cant imagine my devices without SD Maid. Have na good day mate and thank you.
[Android Apps and Games] Browser666:
Isn't it a idea to add permissions?
[Android Apps and Games] Cyclu:
[MENTION=608746]Dark3n[/MENTION] Hi! I would ask a small cosmetic improvement can you please make the items "Service" "Receivers" etc in colour to better visibility.
[Android Apps and Games] Dark3n:
[MENTION=1592495]Cyclu[/MENTION] The window will be completely remade with the material UI, you will most likely have to wait till then, changing the colors does not really fit well within the code that currently creates this.
[Android Apps and Games] Forsaked:
Looks like SD Maid clears the Font Cache in Android 5.0, every reboot after usage of SD Maid ends up with the Standard Font instead the Custom one.

Or did i miss something in the Settings?
[Android Apps and Games] Dark3n:
There is no specific setting for that.

What tool causes this? The AppCleaner?

What device (root?), what ROM?

If can find out the specific pathes we can add an default exclude for that.
[Android Apps and Games] Forsaked:
It happens when I use fast access with the corpse, system, app and database cleaner.

I use a HTC M8 with root on ARHD 34.0 (LP 5.01).
[Android Apps and Games] Dark3n:
You will have to narrow it down or give me a way to reproduce it on a Nexus5.
[Android Apps and Games] Forsaked:
Is there a way to log what gets cleaned / removed?
[Android Apps and Games] Dark3n:
You can do a debug run (See advanced settings), every file touched will be logged into a file on your sdcard then.

Or you view the details through longpress in the full UIs of the tools.
[Android Apps and Games] Alexey71:
Not fix? http://xdaforums.com/showpost.php?p=57858239&postcount=1928
[Android Apps and Games] Dark3n:
Sorry, it seems i overlooked this. I've checked out the logs now and it seems to fail because SD Maid fails to remount /system as writeable.

What Android version, device and SuperUser app are you using?

I assume you tried the latest beta and it still fails?
[Android Apps and Games] Forsaked:
I try to run the app in debug mode with debug level 3 but i cant find the log files after cleaning!
[Android Apps and Games] Dark3n:
Just press debug run, the logs will be in the root of your sdcard.
[Android Apps and Games] Forsaked:
There are actually no logs created on the internal or external sd card, SD Maid got root access.

Im just curious about it, should i log it with logcat?
[Android Apps and Games] Dark3n:
If you press debug run, does SD Maid restart?

If it does, but there are no logs on the sdcard, make a logcat please.
[Android Apps and Games] Alexey71:
cm11+cm11 su - not work:(

cm11+supersu 2.45 - work

cm12+cm12 su - not work

cm12+supersu 2.45 - work

Stock samsung tw+supersu 2.45 - work
[Android Apps and Games] Forsaked:
Yes, it restarts, logcat is attached!
[Android Apps and Games] Dark3n:
Something is weird on your device.

The logcat contains some output lines, but normally those lines don't go alone.

Reinstall SD Maid, try the debug run again.

If there are still no log files on your sdcard, go into advanced settings set debug level to 2.

Make sure you completely kill SD Maid, then first start a logcat recording (to file), then reproduce the issue you want to show.

edit: Also do it with the latest beta.

Looks like it's related to CMs su binary and/or app.

Will have to flash CM to a device :(.
[Android Apps and Games] Alexey71:
Ok thx, i used supersu). supersu probably bypass the security selinux
[Android Apps and Games] Forsaked:
- unistalling SD Maid = check

- signing up for BETA = check

- installing BETA = check

- logging works = check

Actually fun fact i dont need to make a log, since i switched to the BETA my problem with fonts get cleared is gone! :D