yashsingh1/xdaforums huggingface dataset:
[Magisk] HippoMan:
As far as I know, newer versions of Android don't permit "normal" deletion of system apps, at least not via the use of file managers ... not even root-enabled file managers. And not even via shell commands that are run under "su -".

Perhaps there are a few special utilities that can perform such deletions under newer Android versions, but in general, I'm pretty sure that this will not work with these later Android versions.
[Magisk] zgfg:
This is not System app - this Debloater is only for System apps - please read the OP post #1

Off the record - Data is not read only and with root,you can delete folders there as you wish (hence also that folder)
[Magisk] C4RP3 N0CT3M:
For some reason this module is no longer working with Magisk (Alpha in my case). I had everything working but wanted to change one thing, and now all of a sudden it's not reading the config file. Checking the log modified date it seems as though it hasn't run for about 2-3days, but the apps didn't come back until I tried to change something.
[Magisk] ipdev:
It is an issue with Alpha (26302).

I do not use Alpha but, someone gave me a head's up about it.

Apparently, they are trying to hide internal mount points. 🙃️

Modules that look for /storage/emulated/0/ can not find the directory.

So any module that sources a file from internal storage (aka "sdcard") will fail loading the file.

Cheers. :cowboy:
[Magisk] C4RP3 N0CT3M:
I went ahead and just modified the customize.sh and it's working, although I'm sure that's not the preferred way lol. Thanks for the reply.
[Magisk] frudda:
I had my config file got corrupted few times so i made backup of the text, removed the file flashed in magisk so it generate new file added text back and got it working.
[Magisk] C4RP3 N0CT3M:
That's not what's happening with mine. It won't even generate a new cfg upon deleting the old one. I believe it's Magisk Alpha not being able to access the SDcard like mentioned earlier.
[Magisk] zgfg:
Please test the attached v1.5.4a version - is it ok on your latest Alpha
[Magisk] C4RP3 N0CT3M:
Will do when I can. I'm currently having a similar issue with RVX (Magisk version) where it won't load after a reboot.
[Magisk] zgfg:
Here you just download and reinstall module😁

No need to reboot.

Just check if

/Download/SystemlessDebloater.log

was properly created

Then check in:

/data/adb/modules_update/SystemlessDebloater/mountList.sh

does it contain list of your apps to be debloated

If yes, reboot

If no, delete folder:

/data/adb/modules_update/SystemlessDebloater

and single file:

update

from:

/data/adb/modules/SystemlessDebloater

And continue using your previous Systemless Debloater setup as if you didn't test this build

PS: Btw,, change was trivial, single line

Spoiler content hidden.
[Magisk] C4RP3 N0CT3M:
Didn't work unfortunately.
[Magisk] HippoMan:
I just started using SystemlesDebloater. Prior to this, I froze a number of system apps using TitaniumBackup.

I didn't unfreeze any of these apps before using SystemlessDebloater to debloat a few of them.

After completion of the debloating process, the apps that I marked for debloating indeed are showing up in SystemlessDebloater.log as having been successfully debloated.

However, when I look for these debloated apps in TitaniumBackup, they still appear there, and they are still flagged as frozen.

Does this mean that they perhaps did not get fully debloated due to the fact that they were previously frozen?

If so, should I first unfreeze all apps that I intend to debloat?

PS: I'm using A13 and Delta 26.3.
[Magisk] HippoMan:
In the instructions within the OP, a Package Manager app from the Play Store is recommended for finding out app names and package names.

There are at least 4 apps named "Package Manager" offered in the Play Store. Which one is being referred to in the OP?
[Magisk] zgfg:
Can you attach for reference your own adapted customize.sh - imo, you edited yourself and it worked for you on your Alpha. Thanks
[Magisk] HippoMan:
Actually, it seems like SystemlessDebloater didn't work properly for me, at all.

As I mentioned above, I'm running A13 with Delta 26.3. Also, both the Gmail and Chrome apps had earlier been successfully frozen via TitaniumBackup.

Here's what I did:

(1) I went into TitaniumBackup and unfroze Gmail.

(2) I went into /storage/emulated/0/Download/SystemlessDebloater.cfg and un-commented "Gmail2".

(3) I re-installed SystemlessDebloater via Magisk.

(4) I rebooted.

(5) After reboot, I went into /storage/emulated/0/Download/SystemlessDebloater.log, and it shows the following:

Input DebloatList="
Gmail2
"

Final DebloatList="
Gmail2"

Previously REPLACEd Stock apps:

Debloating:
found: /product/app/Gmail2/Gmail2.apk

DebloatedList="
Gmail2
"

MountList="
/product/app/Gmail2/Gmail2.apk
"

(6) The Gmail app is still active, and I can run it.

(7) I repeated all the above steps with Chrome, and after reboot, even though Chrome is shown in all of the appropriate places in /storage/emulated/0/Download/SystemlessDebloater.log, the Chrome app is still active.

(8) I also looked into this file: /data/adb/modules/SystemlessDebloater/mountList.sh . It shows the following:

MountList="
/product/app/Chrome/Chrome.apk
/product/app/Gmail2/Gmail2.apk
"

Did I miss something that I need to do in order for this debloating to work properly?

PS: When I now freeze Gmail and Chrome in TitaniumBackup, the apps disappear, as expected.
[Magisk] zgfg:
Make sure that you don't have updates of those apps. Updates install to Data, module debloates from System partition and you still have your apps running from Data. Instructions are in the post #1 and on GitHub, you must make sure to uninstall updates for the apps before debloating them - then PM app will only find the remaining stock/official version on the System partitions (or the app will be fully uninstalled, if it didn't even come as system app). Module then debloates only 'pure" system apps (for Data apps you don't need models or whatever)

You asked about Package Manager app. I use the following but the others should work similarly - the point is, to see the path where the app is installed, particularly the partition (eg, if the app is User app,not System, installed to the Data

Package Manager - Apps on Google Play

Powerful Tool to Know About Your Device's Application Information And App Backup

play.google.com

But everything that the app shows can be obtained also by running pm command

I don't use Titanium. If/when I freeze, I freeze by pm command or by Airfrozen (cannot find it now on Playstore) and it freezes just by pm command (so I sometimes freeze by Airfrozen and unfreeze by pm in Terminal or vice versa)
[Magisk] C4RP3 N0CT3M:
I just added my list to the debloat section. I still didn't get the log file though. It also still didn't generate a config, but my apps don't load, so it appears to be working.
[Magisk] HippoMan:
Thank you for explaining about uninstalling updates. I indeed read about that in the OP, but I misunderstood what that meant, and I also never understood about updates going into /data as opposed to one of the system partitions.

So how do I actually uninstall updates to Google apps such as Chrome and Gmail? Do I simply go to Play Store and manually do an "uninstall" for them, before running SystemlessDebloater?

If that's the case, is there some way to automate this uninstall process via some sort of command like "pm"? If so, could such a procedure be incorporated into a future version of SystemlessDebloater, perhaps?

As for freezing/unfreezing, I know that this can be done via "pm" commands. But I like using TitaniumBackup, because it provides a convenient alphabetical app list where frozen apps are shown in a different color. And since I already use TitaniumBackup for app backups, I don't need to install another app just to manage freezing.

And thank you for the pointer to the Package Manager app.
[Magisk] m0han:
As in the screenshots, I should think.
[Magisk] HippoMan:
This screen never pops up for me.

How do I get this screen?
[Magisk] m0han:
Device settings » Apps. Go to the three dot menu on the top right, select 'Show system apps' and you get all the apps listed. Then go to Chrome / Gmail and tap on that. Again go to the three dot menu on the top right; you should see 'Uninstall updates'. This is what I know; there may be other ways too.
[Magisk] HippoMan:
Never mind this message. It was incorrect. Please delete.
[Magisk] HippoMan:
Aha! ...

pm uninstall-system-updates [PACKAGENAME]

Removes updates to the given system application and falls back to its
/system version. Does nothing if the given package is not a system app.
If no package is specified, removes updates to all system applications.

I can write a shell script which reads the list of app names from SystemlessDebloater.cfg, gets the package name of each app, and then generates and runs (as root) these "pm uninstall-system-updates" commands.

I will do this in my not-very-ample-at-all spare time, and then I'll post my results here.
[Magisk] Uluru25:
I guess this FOSS app is doing the job.

edit: sorry I forgot to send this post, but meanwhile your question has been answered.
[Magisk] HippoMan:
At first, I thought that my rooted A13 Delta 26.3 device didn't display the 3-dot menu at all when selecting Settings=>Apps. However, that was a mistake. It turns out that after going to Settings=>Apps, I then had to subsequently select See all 349 apps before I got a full app list along with the 3-dot menu.

Then, I was able to successfully follow these instructions and get rid of the app updates for the system apps.

And after that, SystemlessDebloater indeed hid those apps successfully.
[Magisk] m0han:
I think it differs from OS to OS. Screenshot shows how it is on OxygenOS.
[Magisk] DaRdamnDoG:
There are some apps in /apex partition that could not be "detected", as the APK and the folder have different names.

These are some apps I'd like to debloat and failed. Any solutions? Thanks.

Example:

/apex/com.android.apex.cts.shim/app/CtsShim@MASTER/CtsShim.apk=com.android.cts.ctsshim

/apex/com.android.healthfitness/app/HealthConnectBackupRestore@UKQ1.230804.001/HealthConnectBackupRestore.apk=com.android.health.connect.backuprestore

/apex/com.android.healthfitness/priv-app/HealthConnectController@UKQ1.230804.001/HealthConnectController.apk=com.android.healthconnect.controller
[Magisk] zgfg:
Go to the module's folder:

/data/adb/modules/SystemlessDebloater

and edit the mountList.sh (all, eg by use of MiXPlorer, or cooy to Downloads by another root explorer, edit there or on the PC (it's textual file)

You can edit by Notepad but make sure that Windows do not rename to

mountList.sh.txt

Inside, you will find something like (full paths to the apps to be debloated)

MountList="
/product/app/Email/Email.apk
/product/app/Joyose/Joyose.apk
/product/app/MiGameService/MiGameService.apk
"

Add manually into the list your apps, like:

MountList="
/product/app/Email/Email.apk
/product/app/Joyose/Joyose.apk
/product/app/MiGameService/MiGameService.apk

/apex/com.android.apex.cts.shim/app/CtsShim@MASTER/CtsShim.apk
"

Save/overwrite your

/data/adb/modules/SystemlessDebloater/mountList.sh

and reboot

Every time when you update/reinstall the module, you will have to manually extend the mountList.sh - but that is the final list of apps that module debloats

customize.sh script that executes while (re)installing the module and its input = your SystemlessDebloater.cfg just serve to find the apps and to create that list

On every rebooti, while initializing the module, module reads that mountList.sh and mounts dummy.apk over all apk files from that list

Hence, if you extend the list with the correct full paths for your apps, they will be debloated as well
[Magisk] MM360:
I just tried it on Android 12 but it doesn't have any effect. I tried removing Chrome by uninstalling updates, clearing cache and adding the name to SystemlessDebloater.cfg but nothing happened. Is this project no longer active? Any alternatives?
[Magisk] Primokorn:
Did you reboot?

Provide logs if you want help. I use this module on A14 and it works fine.

(if something doesn't work for you, it means that the project is dead? :D)
[Magisk] m0han:
The dev is one of the more active members on XDA. Just wait for his response/help.
[Magisk] zgfg:
Have you inspected your log file (in Download folder, alongside with your CFG) to see if it found the browser as you gave it its name in your CFG

You can also search for the browser or so in the LOG file to find what browser apps are really preinstalled with your SYSTEM and then to correct the name in the CFG file

How to help yourself with the LOG file is explained in details it the OP posts on the page #1, and later in some other posts/answers

You could also manually manage your mountlist.sh, as is explained in just the post right before yours - post #294

---

It should perfectly work on your Android 12, you just need to provide the correct input in the CFG file
[Magisk] MM360:
Thank you, but I just realized I was making an even dumber mistake: using the package name. Now the problem is I can't find a terminal command to get the app names, package manager doesn't seem to have an option for it. What do you use?

Not always, but sometimes yes. Better ask immediately rather than spend days trying to run something that's no longer developed.
[Magisk] MM360:
Sorry man, it was all my fault, I was using the package name. I apologize for wasting your time.
[Magisk] zgfg:
NP, good that it works
[Magisk] jiraianam:
Anyone have solution for make it work on Apatch
[Magisk] Iridule:
Not sure if this is deleting them but it did rename them to their package name in Lineage 20
[Magisk] zgfg:
It doesn't rename anything

Strictly speaking it does not delete either but mount over the particular app a dummy APK file that is not an app - hence it will appear to you that it was 'deleted'

Please read OP posts/instructions to see how to read the log file and to see what was found and debloated and what was not found

Searching in the log you can also see how to search through the all your stock apps (in log) and how to fix the cfg file to find amd debloate what you want

However, if you have eg two apps that handle messages and you debloate one, then likely (depending on the ROM, etc) the other will take over and you will maybe see (I still don't understand what you meant by r'renaming' and what you have and don't have in your LOS and what you wanted to debloate - you didn't provide any details) that something was renamed (???)
[Magisk] Iridule:
I added the apps manually but it still didn't mount over them all such as Aperture it appears despite what log says.
[Magisk] zgfg:
Then attack your cfg and log to see.

Go also to

/data/adb/modules/SystemlessDebloater

Find there mountList.sh and service.log and attach them too

Btw, every time you change CDG file you must reinstall the module and reboot to take in effect. So make sure you did that and send the four files as above
[Magisk] Iridule:
Okay, I think these are what you need. I made sure to reboot
[Magisk] zgfg:
Reading your SystemlessDebloater.log (text file, read on the phone or PC):

You asked to debloat

Input DebloatList="

Aperture

Jelly

DeskClock

Eleven

Etar

ExactCalculator

Gallery2

Jelly

Recorder

"

All 8 were found and prepared for debloating (no Not found or so), you can read their pre-insralled /product paths and their package names:

Debloating:

found: /product/app/Aperture/Aperture.apk (org.lineageos.aperture)

found: /product/app/DeskClock/DeskClock.apk (com.android.deskclock)

found: /product/priv-app/Eleven/Eleven.apk (org.lineageos.eleven)

found: /product/app/Etar/Etar.apk (org.lineageos.etar)

found: /product/app/ExactCalculator/ExactCalculator.apk (com.android.calculator2)

found: /product/app/Gallery2/Gallery2.apk (com.android.gallery3d)

found: /product/app/Jelly/Jelly.apk (org.lineageos.jelly)

found: /product/app/Recorder/Recorder.apk (org.lineageos.recorder)

Hence mountList.sh was created, listing paths for all 8 files to be debloated (sh is also a text file):

MountList="

/product/app/Aperture/Aperture.apk

/product/app/DeskClock/DeskClock.apk

/product/app/Etar/Etar.apk

/product/app/ExactCalculator/ExactCalculator.apk

/product/app/Gallery2/Gallery2.apk

/product/app/Jelly/Jelly.apk

/product/app/Recorder/Recorder.apk

/product/priv-app/Eleven/Eleven.apk

"

Finally, service.log (again, text file) shows for each of them how its apk was mounted over by the dummy.apk file, eg, for DeskClock:

+ mount -o bind ./dummy.apk /product/app/DeskClock/DeskClock.apk

And then ls in the same log shows how that DeskClock.apk now has 0 bytes, being empty file (as a result of successfully mounted by the dumm.apk of 0 bytes file):

+ ls -l /product/app/DeskClock/DeskClock.apk

-rw-rw-rw- 1 root root 0 Jun 16

No problem here.

Also, your SystemlessDebloater.log shows that you have Android 13 and Magisk Canary 27007, so all standard configuration as many users (incl. myself)

---

But from your screenshot it says that you still see DeskClock app (com.android.deskclock) of 568 Kb

However, your SystemlessDebloater.log also shows that you have an DeskClock app as a user (Data) app:

/data/app/~~JqiZdbKXhQ8K2Ont741AWg==/com.google.android.deskclock-j5jPSdVrMUldEbLj5npBsw==/base.apk=com.google.android.deskclock

Please follow the OP requirements to uninstall Data app versions (not-preinstalled by the ROM but apps that you either installed manually or PlayStore or any other Store or ROM mechanism upgraded for you in the background) for apps you want to debloat

That should be now your DeskClock app (586 KB) as shown on your earlier screenshot

So please long click to DeskClock icon, and in the Settings that should open (look and feel are dependent on your ROM, I can only tell how that settings work on my phone) take Uninstall (updates)
[Magisk] Iridule:
@zgfg thank you. Got it.
[Magisk] syn122:
Hey, I'm following up on the PixelFlasher thread.

Device info:

Pixel 7 Pro

Derpfest ROM and Kernel (May firmware)

I'm trying to uninstall the stock phone services app "com.android.phone" so I can reinstall an older version I found on apkmirror which would allow me to roll back to the May firmware.

I believe(?) the uninstall was accomplished when I tried removing it via ADB. The app list used to say "Phone" and now it says "Phone Services" (size 89.6 kB) and a line underneath it: "Not installed for this user." I tried using ADB to reinstall an older version of the app but got an error: "This is a persistent app and cannot be updated". The option to disable and force stop the system app is greyed out and can't be clicked. Every other option under app info is also greyed out except for Permissions, which I can still modify.

Now I'm trying to use system debloater but using ctrl+F in notepad I can't find Phone Services under the name search term "Phone". There are a couple rro files and something called PhoneSky which I'm not familiar with.

As of now, I haven't modified the .log file or tried debloating because I can't find the app I want to remove.

This folder doesn't exist on my device: /data/adb/modules/SystemlessDebloater
[Magisk] zgfg:
By searching through the log for com.android.phone I see only:

/product/overlay/TeleServiceOverlay.apk=com.android.phone.overlay.pixel

/product/overlay/TeleService__derp_cheetah__auto_generated_rro_product.apk=com.android.phone.auto_generated_rro_product__

/vendor/overlay/TeleService__derp_cheetah__auto_generated_rro_vendor.apk=com.android.phone.auto_generated_rro_vendor__

Log does not show display disabled com.android.phone

Please re-enable by adb your com.android.phone and then reinstall Debloate module to create the new log - and attach

If you used:

adb shell pm disable-user com.android.phone

re-enable by:

adb shell pm enable com.android.phone
[Magisk] syn122:
I ended up getting random restarts unrelated to this issue so I did a clean flash. Everything works fine now, sorry for wasting your time
[Magisk] b927539:
Hi guys. I'm faced with very strange thing. After update from Magisk 25 to Delta 27001, customize.sh t can't find specified apps in stock app list, but they present in list. Also tried with uninstall and install this module, but no luck.
[Magisk] zgfg:
In the post #1 there are Installation instructions, it describes how the module will first time create SystemlessDebloaterList.sh file with an empty DebloatList

In the post #3 you have my DebloatList= example for MIUI, you just need to copy/paste that list into the file instead of the empty list there

I didn't think it would be too complicated, but ok, my SystemlessDebloaterList.sh is attached but you need to rename its txt extension into sh (XDA does not allow attaching sh files)

It's a textual file and it can be edited by a text editor like with MiXPlorer
[Magisk] SUMMERBREEZE:
Thank you, you are a star :good:
[Magisk] zgfg:
Thanks - can you please share which device you debloated, firmware, Android and if you could upload your SystemlessDebloater.log
[Magisk] SUMMERBREEZE:
Mi9t

Xiaomi.eu 12.0.4 stable

Android 10
[Magisk] zgfg:
Updated SystemlessDebloater module, v1.36:

https://mega.nz/file/08tjyILZ#Qd2piiAOPXB9J9HPP4SIXf-6PHEJdgDZ2n7ULiNrKvI

Changes:

- Trimming DebloatList of duplicates before printing to SystemlessDebloater.log and searching for system installation paths

- Alphabetically sorting REPLACE list paths

- DebloatedList added to SystemlessDebloater.log, trimmed of duplicates and sorted alphabetically, containing only apps found for debloating; it can be renamed to DebloatList and copied back to SystemlessDebloaterList.sh for a cleaned-up input

Also, DebloatList in post #3 is revised:

- Removed MiWallpaper (if debloated, Settings / Wallpaper could not be opened)

- Added few more apps and services from MIUI 12, A10 stock for debloating

Added also DebloatList I'm using now for Xiaomi.eu weekly
[Magisk] dron39:
Will it work for Samsung Note 20 Ultra?
[Magisk] zgfg:
I don't have your phone, but if Magisk supports your phone it should work.

You can see that it worked for A10 and A11, A/B SAR - btw, you didn't mention what is your Android version, SAR type, etc, things that are more important for Magisk than the name of the phone

Post #1 provides a detailed explanation how to install and troubleshot, hence you can try ?
[Magisk] ssojyeti2:
For some reason the module doesn't show up in the list of my installed modules after I add it, but it does remove several apps like notes and weather

Edit: just realized I installed an old version of this module, 1.2. Installed new version and it works great
[Magisk] zgfg:
Just please which phone, firmware and Android version.

If not a problem you could upload its log from Download

Thanks
[Magisk] ipdev:
It works across device platform and rom.

arm/arm64, SAR/Non-SAR, Slot/Non-Slot.

You just need to create/edit the SystemlessDebloaterList.sh file to remove/disable the pre-installed app(s).

I have tested this module on Google Nexus/Pixel, OnePlus, and Xiaomi devices.

Stock and custom roms from Android 9 to 11.

I will test on lower Android versions when I have time but, it should not make a difference.

For those on LineageOS 17.1 these are the names that correspond to the pre-installed apps.

# Browser = Jelly

# Calculator = ExactCalculator

# Calendar = Etar

# Email = Email

# Clock = DeskClock

# Music = Eleven

Cheers all. :cowboy:
[Magisk] zgfg:
New version v1.37:

https://mega.nz/file/88chwS5Z#XvGvw3GYtFzvU8LJnoAFzxAu4QhGaRDUuOABJBcjzog

Change log:

Added logging of package names for debloated apps, like:

/system/app/EasterEgg (com.android.egg) - debloat

Package name will not be logged, like:

/system/product/priv-app/Velvet - debloat

if debloater cannot find/match package name with the app name:

- app not found on the /system (hence not debloated)

- app already debloated (hence no more active corresponding package)

- /system app found and debloated but app was already updated to /data (hence corresponding package refers to the app installation on /data)
[Magisk] hateeyes:
could somebody be able to debloat youtube?, appear in the log that the app cant be found.