{"id":19168631,"url":"https://github.com/0x192/bash-android-debloater","last_synced_at":"2025-10-26T23:33:44.378Z","repository":{"id":104099870,"uuid":"310372638","full_name":"0x192/Bash-Android-Debloater","owner":"0x192","description":"Bash script using ADB to debloat non-rooted smartphones. Improve your privacy, the security and battery life of your device. THIS REPO IS ONLY A MIRROR.","archived":false,"fork":false,"pushed_at":"2021-10-07T20:41:32.000Z","size":882,"stargazers_count":52,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-19T23:32:00.490Z","etag":null,"topics":["adb","android","battery-life","debloater","privacy"],"latest_commit_sha":null,"homepage":"https://gitlab.com/W1nst0n/universal-android-debloater","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x192.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-05T17:33:20.000Z","updated_at":"2025-03-24T23:46:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"acf01647-74cd-4080-92b8-8662fbf8547f","html_url":"https://github.com/0x192/Bash-Android-Debloater","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x192%2FBash-Android-Debloater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x192%2FBash-Android-Debloater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x192%2FBash-Android-Debloater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x192%2FBash-Android-Debloater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x192","download_url":"https://codeload.github.com/0x192/Bash-Android-Debloater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252897658,"owners_count":21821486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","android","battery-life","debloater","privacy"],"created_at":"2024-11-09T09:43:17.867Z","updated_at":"2025-10-26T23:33:44.271Z","avatar_url":"https://github.com/0x192.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This project is no longer maintained!\nThe whole project has been rewritten in Rust. The Universal Android Debloat is now a real software with a cross-platform GUI. It is still in a early stage of developpement but most features are there. Please do not open new merge requests and issues on this repo.\u003cbr\u003e\n===\u003e [The new Universal Android Debloat](https://github.com/0x192/universal-android-debloater)\n\n# Universal Android Debloater\n\n**DISCLAIMER**: Use this script at your own risk. I am not responsible for anything that could happen to your phone.\n\n## Summary\nI try to maintain a universal tool which removes bloatwares on any Android phones by using ADB.\n\nThe 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](https://en.wikipedia.org/wiki/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.\n\nThis 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!\n\nIf 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.\n\nIn any case, you can NOT brick your device with this script! That's the main thing, right?\n\n## Features \n* [X] Quick search among all the packages of an android device\n* [X] Uninstallation of system/user packages (manually or with the debloat lists)\n* [X] Reinstallation of system packages (manually or with the debloat lists)\n* [X] ADB backup/restore (not really reliable, see the [FAQ](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/FAQ))\n* [X] Device brand detection and auto-selection of the appropriate manufacturer debloat list\n* [X] Logging:`debloated_packages.txt`, `remaining_packages.txt`, `deleted_apks.txt` (for root users)\n* [X] Root support\n* [ ] Installation of alternative open-source apps replacing stock apps (list in the WIKI section) (WIP)\n\nNB : The non-root method is NOT a real uninstallation for system apps (see the [FAQ](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/FAQ))\n\n## Universal debloat lists \n* [X] GFAM (Google/Facebook/Amazon/Microsoft)\n* [X] AOSP\n* [X] Manufacturers (OEM)\n* [X] Mobile carriers\n* [X] Qualcomm / Mediatek / Miscellaneous\n\n## Manufacturers debloat lists\n* [ ] Archos\n* [X] Asus\n* [ ] Blackberry\n* [ ] Gionee\n* [X] LG\n* [X] Google\n* [ ] HTC\n* [X] Huawei\n* [X] Motorola\n* [X] Nokia\n* [X] OnePlus\n* [X] Oppo  \n* [X] Samsung\n* [X] Sony\n* [ ] TCL\n* [ ] Wiko\n* [X] Xiaomi\n* [ ] ZTE\n\n## Mobile carriers debloat lists\n|   Country       | Carriers                          |\n|-----------------|-----------------------------------|\n| France          | Orange, SFR, Free, Bouyges/Sosh   |\n| USA             | T-Mobile, Verizon, Sprint, AT\u0026T   |  \n| Germany         | Telekom                           |\n\n\n## How to use it \n- **Read the [FAQ](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/FAQ)!**\n- **Do a proper backup of your data! You can never be too careful!**\n- Enable *Developer Options* on your smartphone.\n- Turn on *USB Debugging* from the developper panel.\n- From the settings, disconnect from any OEM accounts (when you delete OEM account package it could lock you on the lockscreen because the phone can't associate your identity anymore)\n\u003cp\u003e\n\u003cdetails\u003e\n\u003csummary\u003eLINUX\u003c/summary\u003e\n\n- Install *Android platform tools* and *qpdf* on your PC :\n\nDebian Base:\n```bash\n$ sudo apt install android-sdk-platform-tools qpdf zip\n```\nArch-Linux Base:\n```bash\n$ sudo pacman -S android-tools qpdf zip\n```\nRed Hat Base:\n```bash\n$ sudo yum install android-tools qpdf zip\n```\n\u003c/details\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n\u003cdetails\u003e\n\u003csummary\u003eMAC OS\u003c/summary\u003e\n\n- Install [Homebrew](https://brew.sh/)\n- Install *Android platform tools* and *qpdf*\n\nYou will also need to upgrade bash because Apple ships a very old bash version (3.2.57) due to licencing issues.\n\n```bash\n$ brew install android-platform-tools qpdf bash\n```\n\u003c/details\u003e\n\u003c/p\u003e\n\n\u003cp\u003e\n\u003cdetails\u003e\n\u003csummary\u003eWINDOWS\u003c/summary\u003e\n\nWindows can't natively run bash script. Choose a workaround:\n\n## Method 1: Live Linux USB\nCreate 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](https://itsfoss.com/install-linux-mint/)\n\n**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.\n\n## Method 2: WSL (W10 only)\nThis method consists of installing WSL, a compatibility layer for running Linux binary executables natively on Windows 10.\n\nFor 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.\n\n- Download [android platform tools](https://dl.google.com/android/repository/platform-tools-latest-windows.zip) and unzip it somewhere. [Add the folder to your PATH](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/).\n- [Install USB drivers of your device](https://developer.android.com/studio/run/oem-usb#Drivers)\n- Check your device is detected:\n```batch\n\u003e adb devices\n```\n\n- Install [WSL2 (Windows Subsystem for Linux)](https://itsfoss.com/install-bash-on-windows/) in order to be able to run bash scripts.\n- Install *Android platform tools* and *qpdf* from the Debian/Ubuntu shell\n```bash\n$ sudo apt update \u0026\u0026 sudo apt upgrade\n$ sudo apt install android-sdk-platform-tools qpdf zip\n```\n- Check the version of ADB on Linux \u0026 Windows\n```bash\nadb version\n```\nYou need the same version otherwise it will not work. It's very likely your Ubuntu/Debian ADB version is older than the Windows one. \nDownload the lastest linux platform tools from Google and replace your adb binaries with the new ones :\n```bash\n$ wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip\n$ unzip platform-tools-latest-linux.zip\n$ sudo cp platform-tools/adb /usr/bin/adb\n$ sudo chmod 755 /usr/bin/adb\n$ adb version\n```\nKill the WSL adb server:\n```bash\n$ adb kill-server\n```\nAnd start the ADB server on Windows: \n```batch\n\u003e adb kill-server\n\u003e adb start-server\n\u003e adb devices\n```\nNote: You can access your Windows files under `/mnt/c/`\n\n\u003c/details\u003e\n\u003c/p\u003e\n\n\n- Download [the lastest release of Android Universal Debloater](https://gitlab.com/W1nst0n/universal-android-debloater/-/releases).\n- Browse through the debloat lists to be sure the default selection suits you.\n- Run `debloat_script.sh` from a Unix terminal.\n```bash\n$ bash debloat_script.sh\n```\n\n**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 \u0026 closed-source) apps.\n\n**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.\n\n## How to contribute\n\nHey-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.\n\n==\u003e [How to contribute](https://gitlab.com/W1nst0n/universal-android-debloater/-/wikis/home#how-to-contribute)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x192%2Fbash-android-debloater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x192%2Fbash-android-debloater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x192%2Fbash-android-debloater/lists"}