• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[SCRIPT] [2021-01-30] [v2.9] Universal Android Debloater

Search This thread

mguk

New member
Nov 30, 2021
3
0
I'm looking at possibly getting a Samsung A52S 5G but I wanted to know does the debloating tool remove all bloatware, so that the operating system software is very close to stock Android? I've read that it is not possible to remove all bloatware on Samsung phones, is this correct, if it is what bloatware cannot be removed?

When Samsung updates the phone to the next version of Android, does the debloating tool need to be run again? Is all the bloatware reinstalled when the phone is updated?

Thanks for your help
 

kurtn

Senior Member
Jan 28, 2017
4,327
1,882
Small town in Bavaria
I'm looking at possibly getting a Samsung A52S 5G but I wanted to know does the debloating tool remove all bloatware, so that the operating system software is very close to stock Android? I've read that it is not possible to remove all bloatware on Samsung phones, is this correct, if it is what bloatware cannot be removed?

When Samsung updates the phone to the next version of Android, does the debloating tool need to be run again? Is all the bloatware reinstalled when the phone is updated?

Thanks for your help
The tool can be customised by editing text files. So you can define what apps get uninstalled. On an older samsung phone rootless debloating survived update.
 

jacatone

New member
Nov 5, 2021
4
0
I don't see this script or how to install it on debian linux? Why is everything in Linux so frigin complicated?
 

kurtn

Senior Member
Jan 28, 2017
4,327
1,882
Small town in Bavaria
I don't see this script or how to install it on debian linux? Why is everything in Linux so frigin complicated?
It is a bash script. Use the command line and cd to the folder you exttracted the files.

Or are you talking about gui version?
 
Last edited:

kr3des

New member
Apr 6, 2016
3
1
i disabled something with this tool and now it takes 2-3 min before my texts send? does any maybe have a clue what could be the cause, thanks
 

kwasior500

Senior Member
Jul 3, 2013
64
17
Sony Xperia Z3v
For factory reset i have to enter pin, for play store i have to login, for download standalone keyboard apk i need keyboard...
idea: i'll download apk with pc
 

kurtn

Senior Member
Jan 28, 2017
4,327
1,882
Small town in Bavaria
Last edited:

TheDoctor46

Senior Member
Jan 28, 2021
752
732
15
Mumbai, India.
Can I debloat a Lenovo tablet using this? I want to turn it into a Microsoft Tab. It is not in the manufacturers list. If not is there any other way for doing this?

Thank you
 

TheDoctor46

Senior Member
Jan 28, 2021
752
732
15
Mumbai, India.
Lenovo sells android and windows tablets. The debloater is for android only.

Debloating will not make windows out of an android OS.
Thanks for your reply.

Yeah, I have android one. It is running stock android 6. I just want to remove all google apps from it to make it fast and secure. Microsoft apps are better for me in terms of both.

I just wanted to know if this script will work on my device properly because Lenovo is not in the manufacturers list.

Model no. if needed : TB3-X70L
 

kurtn

Senior Member
Jan 28, 2017
4,327
1,882
Small town in Bavaria
Thanks for your reply.

Yeah, I have android one. It is running stock android 6. I just want to remove all google apps from it to make it fast and secure. Microsoft apps are better for me in terms of both.

I just wanted to know if this script will work on my device properly because Lenovo is not in the manufacturers list.

Model no. if needed : TB3-X70L
The script will work. A lenovo list would be necessary to debloat lenovo specific apps. Last time i used it, there was a combined list for Google and Microsoft. Maybe you want to edit that .
 
  • Like
Reactions: TheDoctor46

TheDoctor46

Senior Member
Jan 28, 2021
752
732
15
Mumbai, India.
The script will work. A lenovo list would be necessary to debloat lenovo specific apps. Last time i used it, there was a combined list for Google and Microsoft. Maybe you want to edit that .
I would like to ask you something else,
I earlier used the normal ADB command to uninstall system apps like Play movies, play books, etc. Can I uninstall the play services and store the same way ?

Thank you very much !
 

kurtn

Senior Member
Jan 28, 2017
4,327
1,882
Small town in Bavaria
I would like to ask you something else,
I earlier used the normal ADB command to uninstall system apps like Play movies, play books, etc. Can I uninstall the play services and store the same way ?

Thank you very much !
It's up to you. You don't need that script. You can open a terminal and run adb shell. The command for Google play services is "pm uninstall -k --user 0 com.google.android.gms"
 
  • Like
Reactions: TheDoctor46

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Can I debloat a Lenovo tablet using this? I want to turn it into a Microsoft Tab. It is not in the manufacturers list. If not is there any other way for doing this?

    Thank you
    Lenovo sells android and windows tablets. The debloater is for android only.

    Debloating will not make windows out of an android OS.
    1
    Thanks for your reply.

    Yeah, I have android one. It is running stock android 6. I just want to remove all google apps from it to make it fast and secure. Microsoft apps are better for me in terms of both.

    I just wanted to know if this script will work on my device properly because Lenovo is not in the manufacturers list.

    Model no. if needed : TB3-X70L
    The script will work. A lenovo list would be necessary to debloat lenovo specific apps. Last time i used it, there was a combined list for Google and Microsoft. Maybe you want to edit that .
    1
    I would like to ask you something else,
    I earlier used the normal ADB command to uninstall system apps like Play movies, play books, etc. Can I uninstall the play services and store the same way ?

    Thank you very much !
    It's up to you. You don't need that script. You can open a terminal and run adb shell. The command for Google play services is "pm uninstall -k --user 0 com.google.android.gms"
    1
    Thank you that's the tool what i want 😍
    1
    This is not for newbies I cant work this out
  • 55
    Universal Android Debloater

    [Logo to be created]


    Bash script using ADB to debloat rooted and non-rooted smartphones. Improve your privacy and increase your battery life.

    DISCLAIMER : Use this script at your own risk. I am not responsible for anything that could happen to your phone.


    Summary
    I try to maintain a universal tool which removes bloatwares on any Android phones by using ADB.

    The main goal is to improve battery performance and privacy by removing unnecessary and obscure system apps. This can also contribute to improve security by reducing the attack surface. The script has a menu that lets you choose what debloat list you want to use. I strongly encourage you to take a look at the lists because the default selection may not suit you. All packages are as well documented as possible in order to provide a better understanding of what you can delete or not.

    This script should be safe with the default selection. The worse thing which could happen is preventing an essential system process to be loaded during boot causing then an unfortunate bootloop. If you used the non-root solution, after about 5 failed system boots, the phone will automatically reboot in recovery mode and you'll have to perform a FACTORY RESET. So make a backup!


    If you have a rooted device you can also physically delete the apks. Ironically this solution is safer because the script saves the apks before their removal. In case of bootloop you just need to run the script from a recovery with ADB support (e.g TWRP) and restore them.


    In any case, you can NOT brick your device with this script ! That's the main thing, right ? :)

    Features
    • Quick search among all the packages of an android device
    • Uninstallation of system/user packages (manually or with the debloat lists)
    • Reinstallation of system packages (manually or with the debloat lists)
    • ADB backup/restore (not really reliable, see the FAQ)
    • Device brand detection and auto-selection of the appropriate manufacturer debloat list
    • Logging: debloated_packages.txt, remaining_packages.txt, deleted_apks.txt (for root users)
    • Root support (system and systemless with Magisk)
    • Installation of alternative open-source apps replacing stock apps (list in the WIKI section) (Not yet : WIP)

    NB : The non-root method is NOT a real uninstallation for system apps (see the FAQ)

    Universal debloat lists
    • GFAM (Google/Facebook/Amazon/Microsoft)
    • AOSP
    • Manufacturers (OEM)
    • Mobile carriers
    • Qualcomm / Mediatek / Miscellaneous

    Manufacturers debloat lists
    • Asus
    • LG
    • Google
    • Huawei
    • Motorola
    • Nokia
    • OnePlus
    • Oppo
    • Samsung
    • Sony
    • Xiaomi

    Mobile carriers debloat lists
    • French carriers : SFR / Orange / Free / Bouygues / Sosh
    • US carriers : T-mobile / Verizon / AT&T / Sprint
    • German carriers : Telekom

    Download

    How to use

    Acknowledgement
    3
    Hi,

    So I went through with the whole (well documented) debloating instructions and debloated everything there was to debloat until the script said "nothing to debloat :)" on every selectable option. [...] Now the phone wont boot anymore.
    [...] Is this a known issue already? I can be a tester if there are some fixes on the way.

    A new big release (v2.8) is coming soon.

    As for the bootloop, I'm sorry. It seems this only happens (for now) on newer Samsung devices with OneUI 3.0. This is a known issue (see #39). The faulty package seems to be a Google one but hasn't been found yet.

    Only users of those phones can identify it. I can't do anything alone. I would be delighted if you help me on this. Come over to Gitlab. It's easier to track issues. :)

    Any idea why the debloat script won't recognize that I've updated bash to the latest version and set it to default on my MacBook?
    Well... I dunno how I could have failed this but here it is:

    On the 4th line of code, in the if it should be:
    "${BASH_VERSINFO[0]}" < 5 instead of BASH_VERSINFO < 5

    It will be fixed in the next release.
    3
    How to contribute

    Fetch the list of all the system packages of your phone. My script automatically exports this list in a file called remaining_packages.txt after choosing any action in the main menu.

    1. Seek for new packages not present in my debloat lists. You can use this script to check if your list has no duplicate with the current lists in the repository.
    2. Try to document each new packages and create a new issue on Gitlab.

    How to decompile an APK

    - Apktool
    - Jadx (what I use)
    - Bytecode Viewer


    How to report bugs

    Open an issue on Gitlab and precisely explain the issue. Screenshot(s) can help.
    3
    @freeelect & @sapphirexda

    I'm really sorry. I messed up with a variable name. Non-root features in v2.8, v2.8.1 and v2.8.2 are broken.

    I've just released a third (and hopefully last) hotfix fixing this issue.

    3
    Happy new year!

    I wouldn't have thought this release would take me this long! Finally, here is the v2.8:


    The changelog is on Gitlab, as usual. This is the last major update for the bash script. I'm sure a lot of people will be happy to know that I added root support. You can even generate a flashable zip if you want!

    I am now focusing on developing a cross-platform GUI.

    EDIT: I reworked the logic behind the flashable zip generation. There was an issue. It is now much simpler and correctly works. I also added a backup of the apks before the flashable zip generation. It's safer.

    I released an hotfix (v2.8.1) with these changes.