yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Devione:
HI there, thanks for your quick reply. Yes i'm utilising the Pro version of SDMaid.

I guess it's not so much about gaining back usable space, it's just the OCD in myself realising system apps can no longer be "removed".

Thanks though for your reply, I guess i'll just have to adapt to this.
[Android Apps and Games] DB126:
Exactly. And seriously, who's going to take the risk resizing partitions on Android - save the OCD crowd with far too much unstructured time. Just disable and move on. Maybe get to know your kids a little better (at least their gender)
[Android Apps and Games] hyborian:
Debloater is definitely great, it can delete or make available for deletion apps in /system/product including priv ones, which SD Maid cannot do in Android 10, and wont be fixed unless an error report is made (which I am lazy to do).

I have the majority of my bloat apps frozen only though, which is just as good, except that some apps persistently come back, like Google Maps, YouTube, my ROM's Browser, and others. No problem for me as I have a Tasker task that takes care of freezing them back automatically.

However, sometimes a new ROM update comes with a system partition without any space left for other things like custom boot animations, editing of system files, etc. This is where I do some system app deletions, with Debloater, to clear just enough space.

Of course, you can use adb, it will remove the app from the drawer, but still leave it's copy in /system/product, although already unusable.
[Android Apps and Games] KOLIOSIS:
I haven't actually rooted a phone since early last year (OnePlus 7 Pro), so, I'm asking out of curiosity :

If one uses the uninstall command vs disable via ADB, will the copy in /system/product still remain?

If this is exactly what the Debloater script does, my apologies for asking what may be obvious to others here....
[Android Apps and Games] hyborian:
Debloater module deletes all (see attached). SD Maid cannot delete google apps like maps in any way at all, even rooted. Adb uninstall command deletes the google app from everywhere except from product. This is fine, as the "deleted" app disappears from the drawer. Maybe i need to update my adb ( i was using Minimal ADB), i dont know, will look into that.

You said disable, you mean freeze ? Of course, the apps will still be there, but frozen.

.
[Android Apps and Games] KOLIOSIS:
No, I meant uninstall (delete), as there are two different ADB commands.

Uninstall:

https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/amp/

Disable:

https://www.xda-developers.com/disable-system-app-bloatware-android/amp/

However, after a further look, it does appear that a copy does indeed stay behind, whether one uses the disable, or, uninstall command.

Again, my apologies for re-hashing this topic, likely common knowledge to most that are following this thread.
[Android Apps and Games] jcmm11:
One more before I comment - I haven't actually used debloater but my comments are based on how both current versions of Android and Magisk work.

In all likelihood debloater isn't physically removing the app (especially since /system and family are currently more or less unmodifiable) It's simply making it unavailable by overlaying the apps folder in system/product/vendor with an empty folder using Magisk.

If you look in /sbin/.magisk/mirror you'll find the actual layout (as opposed to the functional/apparent layout in /system) and you'll see that the app is actually still there.

Freezing/disabling (which are the same thing) have the same effect on a practical level - although I'm not sure why those apps come back for you unless you somehow update the app, which would (I think) unfreeze it. I have some apps frozen (Android Auto, Chrome, Calculator,

Play Movies, Google Pay + among others) but none have ever come back on the own. I also have some "removed" via overlay, those are ones I'm likely to never want to activate.
[Android Apps and Games] maddog3030:
Me too

tried uninstalling and reinstalling both the app and the pro package app still cannot delete

lineage-17.1-20200501-nightly-shamu-signed

Used to all work just fine I don't know exactly when it all went South
[Android Apps and Games] hyborian:
Just curious, why do you say /system is unmodifiable ? No problem for me modifying stuff in /system in Android 10 - boot animation, sysconfig dir, xbin dir, etc

Yes, debloater does something like that. But, if the system app still shows in the drawer after running it, the app can then be uninstalled normally

Try to freeze maps or youtube, they will rise from the dead all the time, even without updates. In Xiaomi phones, Gallery etc come back
[Android Apps and Games] sherindroid:
Please Fix the Run Now ~ ##.

It's not properly aligned.
[Android Apps and Games] Dark3n:
Thanks https://github.com/d4rken/sdmaid-public/issues/3560
[Android Apps and Games] wawanRedblack:
Sd maid wipe dalvik cache or not?
[Android Apps and Games] KaMyKaSii:
Of course not
[Android Apps and Games] SBrisbane:
SD Maid Pro

Thanks for alot for this app!

I'm using SD pro now. Continue updating this amazing app
[Android Apps and Games] Dark3n:
Wiping dalvik cache is something that should only be done from recovery as you are otherwise causing issues with apps that are at that moment using it.

SD Maid scans dalvik and tries to determine unused files, and then suggest those for deletion. It's not as sure to catch everything as just wiping it all, but it can be safely done while booted.
[Android Apps and Games] jcmm11:
[MENTION=608746]Dark3n[/MENTION]

Question about libraries. Specifically trichrome libraries.

They're associated with chrome versions - Everytime Chrome is updated a new trichrome library is added (not replaced). I have Chrome (frozen), Chrome beta, and Canary all installed. Especially Canary means a lot of versions.

Since there appears to be no way to delete libraries via SDMaid (or via the system) I went and manually deleted them (except for the versions corresponding to the current Chrome versions) from app, data, and user_de. Recovered about 15G of space and everything is working just fine. The problem (annoyance really) is that SDMaid still shows all the versions as installed, just that the removed versions are showing as "stopped".

So 2 questions:

1 - do you know what I have to edit (I assume it's probably an xml file(s)) to clear that up?

2 - any chance that SDMaid can be modified to remove versions not associated with the installed Chrome versions. Previously Corpse Finder was doing overkill on the trichrome libraries. Now I think it's underkill.

If the version check is too tricky just a way to manually delete a library would be helpful.
[Android Apps and Games] Dark3n:
Re 1

The information about the installed libraries comes from

https://developer.android.com/reference/android/content/pm/PackageManager#getSharedLibraries(int)

I currently don't know exactly how they are referenced by the system.

Likely packages.list/packages.xml etc.

edit:

walleye:/data/system # grep -R trichrome .

says yes, they are.

Before starting to edit any of those though (which is a headache to do reliably), I'd look into whether any of the system tools (e.g. pm) can remove these cleanly.

I assume they are added this way somehow, so there is probably a way to remove them too.

Re 2

Maybe, if someone does the research, I currently don't have enough time. Step 1 would be determining how to cleanly delete them, and then in step 2, how to determine which ones to keep.

edit:

walleye:/data/system # pm uninstall com.google.android.trichromelibrary_373018658
Failure [DELETE_FAILED_INTERNAL_ERROR]
1|walleye:/data/system # pm uninstall com.google.android.trichromelibrary_394507938
Success

So apparently there is a difference between them. How, why, who, when :confused:

I have time to write a bit of code, give some feedback, but I don't have time to start removing libraries, potentially bricking a device, reflashing etc.

So if anyone wants to do the research, let's enable them (you?), let's start with a set of tickets on Github where research can be collected:

1: Make one about determining additional information, this allows us to display more details in AppControl. Because we'll probably want to remove the oldest ones, currently the "sort by install date" does not work for libraries. We'll need the paths for deletion too.

2: A ticket about deletion via the packagemanager. Then we could add an uninstall option to AppControl to remove them manually.

3: About the CorpseFinder. If we have more information, and can uninstall them, then we can think about automating removal. Determine when it is appropriate to remove specific versions.

TL;DR Someone has to do the research :D.
[Android Apps and Games] rsngfrce:
Quite a few apps will create folders in the standard internal storage, sometimes empty and sometimes containing items. When these apps are deleted, these folders do not get deleted and Corpsefinder does not delete them either. Is there any way this functionality could be added, or is there a reason it is not? Conceivably, the folders could contain something that you want to keep, but that would be why you don't blindly delete things.
[Android Apps and Games] Dark3n:
The reason is that it's impossible to automate detection in every instance with a "safe enough" hitrate. So detection on the root of public storage is a mix of manual and automatic detection. The explorer tool will show a "?" icon for each folder/file that is unknown. Click the "?" to submit a ticket via Github and I'll make the unknown item known :).

I had some ideas about aggregating folder data across devices and using some kind of machine learning to do this automatically, but it would still be somewhat unreliable, could be "gamed", and generally wouldn't be nice for privacy.
[Android Apps and Games] rsngfrce:
Thanks for your reply and explanation! I did not know about the Explorer tool showing a ?, that could be useful to know.
[Android Apps and Games] sherindroid:
[MENTION=608746]Dark3n[/MENTION] it will be good if you update in-app sqlite3 binary.
[Android Apps and Games] Shadow337:
My best and most important tool in my android

Thank You for this
[Android Apps and Games] MisterLon:
Yeah, it's the best but without root you get more and more less. Would be nice to pimp permissions via adb to get more out of the maid as a rootless user if it's possible.
[Android Apps and Games] CZ Eddie:
"BootManager" was an Xposed module which allowed you to prevent apps from starting on bootup.

It gave you a list of all installed apps. And you single-clicked each app that you want to prevent from auto-starting on bootup.

This ensured no running background processes from these apps unless you manually opened one of the apps on purpose.

Unfortunately, I have not been able to get this similar feature in SD Maid to work in quite some time.

In SD Maid, it is the option to disable the receivers for an app. With some apps having multiple receivers, requiring you to disable each one individually.

But it no longer works for me. My current phone is Google Pixel 3XL running AOSP Android 10 and Magisk (not beta).

As an example, I disabled all receivers for "Speedcheck" and yet it still runs after a reboot.

Is disabling receivers in SD Maid working for anyone else in Android 10?
[Android Apps and Games] Dark3n:
A receiver processes intents, the intent "ON_BOOT" is one of those. You can disable receivers, but there is nothing that prevents the app owning these receivers from enabling them again once it has been launched. So if you open an app for which you disabled a receiver, it's possible that that app checks for this and reenables the receiver. It's not possible to prevent that via SD Maid.

That said, the benefit of disabling those receivers is negligible in most cases, see:

https://github.com/d4rken/sdmaid-public/wiki/AppControl#receiver-manager-autostart
[Android Apps and Games] hyborian:
It should work, but as darken mentioned, some apps can re-enable their receivers. You can try another app that blocks using IFW method (Intent Firewall).
[Android Apps and Games] grafen60:
Very nice
[Android Apps and Games] vyp54:
I was using SD Maid since like Android 3.x. Great tool. Now jumped from My Oneplus 3 with custom ROM of Android 8 to a Sony Xperia 5 II with stock Android 10. I rooted via Magisk yesterday and stayed up all night and couldn't figure out why when I remove system apps they tend to come back in full upon reboot (meanwhile, until you reboot you get persistent notifications that the app isn't responding).

Scrolled just 1 page back to see that in Android 10 you cannot remove system apps?? What gives? I got spoiled by using my Oneplus for 4 years without any Google services. Is this just a problem of SD Maid or you cannot uninstall/remove system apps in Andoird 10 in any way? I really don't need Facebook and Google crap. :/

EDIT: Ok, so none of the apps that uninstall system apps work. Even tried to uninstall them from adb (pm package uninstall) but SD Maid shows that they are only stopped and still present in the system. I allso tried with super user (su -c pm package uninstall), granted root and got [DELETE_FAILED_INTERNAL_ERROR].
[Android Apps and Games] rsngfrce:
My current phone isn't rooted, but does this help?

https://xdaforums.com/showpost.php?p=80331999&postcount=1648
[Android Apps and Games] vyp54:
It helps me understand. Thanks for this.

TWRP method is a no go for me since TWRP isn't available for my device. I'll look into NoLimits Magisk module and report back. :good:
[Android Apps and Games] hyborian:
What about Magisk module debloater ?

You can also freeze them, and some will come back anyway. But if you use App Manager, they don't come back - https://github.com/MuntashirAkon/AppManager. You can also use this app to try to delete system apps.
[Android Apps and Games] vyp54:
I've read somewhere that Android 10 treats all system partitions as read only so I think no app will work and it doesn't matter if they have root or not.
[Android Apps and Games] hyborian:
I can do what I want in system partition with root, Android 10 phones, even on my Android 11 phone.

Change boot animations, change cpu frequencies, i/o schedulers, etc. without using any kernel manager (I use Tasker), copy termux binaries into /system/bin/, delete them if I want to, and so on.

.
[Android Apps and Games] vyp54:
Then I am doing something wrong. Phone has bootloader unlocked, root via Magisk. What would you suggest if SD Maid doesn't uninstall/remove system apps? Once I remove them i get the x app is not responding popup and upon reboot they are back. :eek:
[Android Apps and Games] Oswald Boelcke:
As you've root with Magisk, did you ever try the Magisk module Debloater? I assume you're familiar with the use of terminal.
[Android Apps and Games] vyp54:
This module did the trick. Managed to pull out all the Google crap. Every new Android version makes this a more exhausting procedure. Thanks for the suggestion, the module is very user friendly despite having no GUI (terminal). :good:
[Android Apps and Games] jcmm11:
So I finally got around to playing with this. The following script works:

#!/system/bin/sh
cd /data/local
rm -f packages.list
cp /data/system/packages.list .

can_ver=$(grep com.chrome.canary packages.list |rev |cut -F 1|rev)
beta_ver=$(grep com.chrome.beta packages.list |rev |cut -F 1|rev)
stock_ver=$(grep com.android.chrome packages.list |rev |cut -F 1|rev)

rm -f canary beta stock
grep trichromelibrary.canary packages.list|cut -F 1|sort>canary
grep trichromelibrary.beta packages.list|cut -F 1|sort>beta
grep trichromelibrary_ packages.list|cut -F 1|sort>stock

rm -f stock_final beta_final canary_final
echo stock $stock_ver
grep -v $stock_ver stock >stock_final

echo beta $beta_ver
grep -v $beta_ver beta >beta_final

echo canary $can_ver
grep -v $can_ver canary >canary_final

while read line
do
echo "pm uninstall $line"
pm uninstall $line
[ $? -ne 0 ]&&echo ERROR $line
done<stock_final

while read line
do
echo "pm uninstall $line"
pm uninstall $line
[ $? -ne 0 ]&&echo ERROR $line
done<beta_final

while read line
do
echo "pm uninstall $line"
pm uninstall $line
[ $? -ne 0 ]&&echo ERROR $line
done<canary_final

Threw 2 errors, both on the stock version.

1) wouldn't let me remove the one in system/product

(This was "internal error")

2) wouldn't let me remove the latest version (I think it was the latest) "used shared library". Stock is frozen on my phone so that's why the latest doesn't match my current version.

I also had to pull from packages.xml for the ones I had manually deleted, but it all worked in the end.

If you want a github ticket just tell me how you'd like it and I'll write it up sometime in the next few days.

Edit: updated version of the above script. (I have this setup to run as a cronjob twice a month)

#!/system/bin/sh
cd /data/local
rm -f packages.list trichrome.old.log
mv -f trichrome.log trichrome.old.log >/dev/null 2>/dev/null
cp /data/system/packages.list .

can_ver=$(grep com.chrome.canary packages.list |rev |cut -F 1|rev)
beta_ver=$(grep com.chrome.beta packages.list |rev |cut -F 1|rev)
stock_ver=$(grep com.android.chrome packages.list |rev |cut -F 1|rev)
can_cnt=0
beta_cnt=0
stock_cnt=0

rm -f stock_final beta_final canary_final
grep trichromelibrary.canary packages.list|cut -F 1|sort|grep -v $can_ver >canary_final
grep trichromelibrary.beta packages.list|cut -F 1|sort|grep -v $beta_ver >beta_final
grep trichromelibrary_ packages.list|cut -F 1|sort|grep -v $stock_ver >stock_final

while read line
do
pm uninstall $line >/dev/null 2>>trichrome.log
[ $? -eq 0 ]&&((stock_cnt+=1))||echo "error - "$line >>trichrome.log
done<stock_final

while read line
do
pm uninstall $line >/dev/null 2>>trichrome.log
[ $? -eq 0 ]&&((beta_cnt+=1))||echo "error - "$line >>trichrome.log
done<beta_final

while read line
do
pm uninstall $line >/dev/null 2>>trichrome.log
[ $? -eq 0 ]&&((can_cnt+=1))||echo "error - "$line >>trichrome.log
done<canary_final

echo >>trichrome.log
echo "Successfully removed:">>trichrome.log
echo "Stock "$stock_cnt >>trichrome.log
echo "Beta "$beta_cnt >>trichrome.log
echo "Canary "$can_cnt >>trichrome.log

rm -f stock_final beta_final canary_final packages.list
exit
[Android Apps and Games] Freddyfre:
Does not clean cache on oppo Reno2 with Android 10 why? see image

pro version

THX

https://imgur.com/EWemkYS
[Android Apps and Games] kadyt:
I am using the pro version and in the AppControl section, some system apps that I have frozen appear as both frozen and running, how is this possible?
[Android Apps and Games] Oregszun:
Guys, I have just found about 6000(!) Crashlytics related files under data of numerous apps. Don't you want to include that in your app?
[Android Apps and Games] Freddyfre:
@ Dark3n

THX for new changelog v.5.0.5:

Improved: Compatibility with colorOS ROMs (API28, Italian). (y)(y)(y)
[Android Apps and Games] kozmikdeli:
it shows 10.0.0.159 but i have 10.0.0.182

??
[Android Apps and Games] dipseeet:
best (cleaning) app ever :)

using it since version 2.something ^^

ohne witz beste app (:
[Android Apps and Games] Emillie._.:
Is anybody know how to recover deleted files,images/photos?

My photos/images got deleted by SD maid

So when i use it i accidentally clicked something in SD maid that delete all of my images and photos

-My photos is gone

-whatsapp images is gone too

-photos , images is gone

Are they deleted permanently?

i tried recover apps in my phone , but all of that apps dint work..

Is there anyway to recover it??
[Android Apps and Games] rsngfrce:
There are various recovery apps on the Play Store you could try, but I have never found them to work. Unfortunately, the only method that I understand would work would be to have a professional data recovery company work on it. If the files are urgent to you, try to save as little new as possible, as your deleted files could be overwritten. Good luck, I have had similar issues (not with SD Maid) in the past.
[Android Apps and Games] Emillie._.:
wow thankyou very much ^^

If you dont mind

may I have a good application useful for recovering my photos ??

(I don't mind even if the application has to be on a computer / laptop)
[Android Apps and Games] rsngfrce:
Unfortunately, as I say, I have never found a recovery app that works well, but if you want to try one, I found DiskDigger to be the best.
[Android Apps and Games] Emillie._.:
Oh ok thankyou very much ^^, if im not bothering you , you said you have a similiar issue as me but not from sd maid, is your photos or something gone??
[Android Apps and Games] Emillie._.:
Ip
[Android Apps and Games] Emillie._.:
I tried diskdigger but its not working ,

I will try some app that have to be in computer

What do you think?

Is that gonna work?👀

Maybe some of computer/laptop recover app might be work
[Android Apps and Games] rsngfrce:
Yes, that is the DiskDigger that I mentioned. As I say, it seems to work better than other similar apps, but still doesn't seem very good at recovering deleted photos.

This link has good info on recovering deleted photos: 3 Ways to Recover Deleted Photos on Any Android Device

If your photos were stored on an SD card oh, you can attach that to a computer and use software to search for the deleted photos. If your photos were on internal storage, unfortunately your phone must be rooted in order to search the internal storage.

I have deleted videos and photos with my file explorer that I did not mean to delete. My file explorer has a trash bin that would hold deleted items for a while in case I've deleted them by accident, but I turn it off because it uses too much space for the amount of things I tend to delete.
[Android Apps and Games] Emillie._.:
Oh my thankyou very much^^

you are really helping me :DD

i will try it

if its working ... thankyou so much!!
[Android Apps and Games] rsngfrce:
The app Storage Organizer was free in the Play Store today, so I downloaded it. It has some functions similar to SD Maid, but is inferior in many ways. One very nice function it has that SD Maid does not is the ability to scan for corrupt image, audio, video and APK files. Is there any chance a similar functionality could be added to SD Maid Pro?
[Android Apps and Games] wesleyjrz:
I tried to uninstall multiple apps with "AppControl" menu in the app. However, when app finished uninstalling, the apps I selected is broken :-( I cannot uninstall them, just disable and when I try to open it just crashes. (I'm starting to learn English, forgive my mistakes).
[Android Apps and Games] rsngfrce:
Is it a work phone or something like that? I just wonder since it says your administrator will not allow the app to be installed. What kind of phone do you have?
[Android Apps and Games] -CALIBAN666-:
I think its a Miui with MTK.
[Android Apps and Games] rsngfrce:
Did Dropbox come installed on your phone? If so, it is very likely you cannot uninstall it, only disable it. Refer to the following link:

Android delete preloaded app
[Android Apps and Games] wesleyjrz:
It's my personal phone, but the apps I uninstalled got this problem. However I already installed another Custom ROM.
[Android Apps and Games] rsngfrce:
Actually, I got confused and thought I was replying to you in my last post:

If you are rooted with a custom rom though, I wouldn't THINK that should happen. You might want to ask in the thread for that custom ROM or ask the dev of that ROM.

Did you grant SD Maid root access? I forget if it asks because my current phone isn't rooted. If it doesn't request root access, it may be that you need to use an app that does request root to uninstall a system app.
[Android Apps and Games] wesleyjrz:
Yes, I granted root access, but don't worry, I already changed ROM.
[Android Apps and Games] Emillie._.:
Its already late :( , so my tablet si bootloping and i brought it to service center , they said will delete all data in mmy tablet :D , i think storage organizer will not work.. , because all data already deleted ;(:cry:
[Android Apps and Games] rsngfrce:
I'm sorry to hear that! Unfortunately it appears the dev, Dark3n, isn't monitoring this thread any more, since he hasn't posted since December. That is too bad, because he was always extremely responsive in the past.