|
1 week ago | |
---|---|---|
lists | 1 week ago | |
CHANGELOG.md | 1 month ago | |
LICENSE | 10 months ago | |
README.md | 1 month ago | |
debloat_script.sh | 2 weeks ago |
DISCLAIMER: Use this script at your own risk. I am not responsible for anything that could happen to your phone.
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?
NB : The non-root method is NOT a real uninstallation for system apps (see the FAQ)
Country | Carriers |
---|---|
France | Orange, SFR, Free, Bouyges/Sosh |
USA | T-Mobile, Verizon, Sprint, AT&T |
Germany | Telekom |
Debian Base:
$ sudo apt install android-sdk-platform-tools qpdf zip
Arch-Linux Base:
$ sudo pacman -S android-tools qpdf zip
Red Hat Base:
$ sudo yum install android-tools qpdf zip
You will also need to upgrade bash because Apple ships a very old bash version (3.2.57) due to licencing issues.
$ brew install android-platform-tools qpdf bash
Windows can't natively run bash script. Choose a workaround:
Create a Linux Live USB. Boot your computer on it and follow the instructions of the LINUX
section. If you are a new to Linux, this will be a good opportunity to discover this wonderful OS. I recommend Linux Mint: Instructions
Note: Just in case, I recall that you don't need to install Linux on your computer. You can do whatever your want direclty on the Live USB.
This method consists of installing WSL, a compatibility layer for running Linux binary executables natively on Windows 10.
For now, there is no USB support in the WSL. This means you need to install both Windows and Linux platform-tools and force the use of Windows adb server.
> adb devices
$ sudo apt update && sudo apt upgrade
$ sudo apt install android-sdk-platform-tools qpdf zip
adb version
You need the same version otherwise it will not work. It's very likely your Ubuntu/Debian ADB version is older than the Windows one. Download the lastest linux platform tools from Google and replace your adb binaries with the new ones :
$ wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
$ unzip platform-tools-latest-linux.zip
$ sudo cp platform-tools/adb /usr/bin/adb
$ sudo chmod 755 /usr/bin/adb
$ adb version
Kill the WSL adb server:
$ adb kill-server
And start the ADB server on Windows:
> adb kill-server
> adb start-server
> adb devices
Note: You can access your Windows files under /mnt/c/
debloat_script.sh
from a Unix terminal.$ bash debloat_script.sh
NOTE: Chinese phones users may need to use the AOSP list for removing some stock apps because those chinese manufacturers (especially Xiaomi and Huawei) have been using the name of AOSP packages for their own (modified & closed-source) apps.
IMPORTANT NOTE: You will have to run this script whenever your OEM push an update to your phone as some uninstalled system apps could be reinstalled.
Hey-hey-hey! Don't go away so fast! This is a community project. That means I need you! I'm sure you want to make this project better anyway.