A batch script that makes debloating an android phone quicker
Get it Here
https://cloud.chip.icu/s/SaE8Bsfaq9moZ6N
Usecase
If you have a bunch of packages that you'd like to disable/remove in a go from your android device and know their names, this is a useful tool.
Requirements
ADB Tools
Usage
- Download the
script.bat
and the empty list.txt
file from the link above
- Download ADB Tools and either add it to the system PATH or just place the downloaded files in the folder with the ADB Tools
- Populate the list.txt with your package list
EXAMPLE: This would be the contents of the list file.
com.app.my
is.my.app
disable.it.now
- Enable Developer Options on your device and in it, enable USB Debugging, then connect your device to your pc via USB
- Run the script, it will run through the list and DISABLE the packages, and display the list of packages successfully and unsuccessfully disabled
Background
I made this when I was trying to debloat my POCO C31 with MIUI 12.5 and listed all the packages, as I advise you should with your device, with adb shell pm list packages
, and go through each package, searching online for info on each, to know what can and should be removed; preferably make an organised list(s).
It's not going to be a night's work exactly, since the packages vary from device to device and OS version, and no list exists that does not get outdated unless updated within 5 minutes due to the rate at which this stuff changes.
For my device, there are like 300 packages and it took me days to compile them neatly, the result of which is lists.7z
available through the link above. The remove_xyz.txt where xyz is 'miui', 'google', 'facebook', 'random' and 'android', are the ones which I deem safe to remove, and the 'core_xyz' lists are the ones which will likely cause a boot loop if you disable/remove them.
Bonus
I compiled the above-mentioned remove lists, if your device runs MIUI (and/or is my model), you may consider using the premade list mi.txt
and if you run any other OEM ROM, you may consider android.txt
Advanced
If you know what you're doing then you may go further and look through the core_ lists mentioned above, to see other stuff you can disable to make your phone minimal, and also consider modifying the script file by setting it to not just disable, but uninstall. You may do this by looking for the line set base=adb shell pm disable-user --user 0
and replace it with set base=adb shell pm uninstall
Only do this if you know what you're doing.