All Projects → 0x192 → Bash-Android-Debloater

0x192 / Bash-Android-Debloater

Licence: GPL-3.0 license
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.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Bash-Android-Debloater

oosDebloater
Debloater for (O/H2)OS
Stars: ✭ 19 (-42.42%)
Mutual labels:  adb, battery-life, debloater
Wechat Jump Game
😊 Nodejs 微信《跳一跳》辅助
Stars: ✭ 216 (+554.55%)
Mutual labels:  adb
Android Otp Extractor
Extracts OTP tokens from rooted Android devices
Stars: ✭ 147 (+345.45%)
Mutual labels:  adb
Fgo Py
全自动FGO脚本.启动脚本,上床睡觉,养肝护发,满加成圣诞了解一下?绝赞持续更新中
Stars: ✭ 167 (+406.06%)
Mutual labels:  adb
Adbsploit
A python based tool for exploiting and managing Android devices via ADB
Stars: ✭ 147 (+345.45%)
Mutual labels:  adb
Xiaomiadbfastboottools
A simple tool for managing Xiaomi devices on desktop using ADB and Fastboot
Stars: ✭ 2,810 (+8415.15%)
Mutual labels:  adb
Wadb
A simple switch for adb (Android Debug Bridge) over network.
Stars: ✭ 143 (+333.33%)
Mutual labels:  adb
Ya Webadb
ADB in your browser
Stars: ✭ 228 (+590.91%)
Mutual labels:  adb
Replaykit
[DEPRECATED] Command line tools for recording, replaying and mirroring touchscreen events for Android
Stars: ✭ 211 (+539.39%)
Mutual labels:  adb
Sadb
(safe adb) More convenient to operate adb for multiple connected devices
Stars: ✭ 165 (+400%)
Mutual labels:  adb
Mobile Toolkit
📱 Shell scripts for Android and iOS device management
Stars: ✭ 161 (+387.88%)
Mutual labels:  adb
Scrcpy Gui
👻 A simple & beautiful GUI application for scrcpy. QQ群:734330215
Stars: ✭ 2,402 (+7178.79%)
Mutual labels:  adb
Adb Join Wifi
Helper app to allow joining a wifi AP directly from ADB
Stars: ✭ 183 (+454.55%)
Mutual labels:  adb
Adb shell
A Python implementation of ADB with shell and FileSync functionality.
Stars: ✭ 148 (+348.48%)
Mutual labels:  adb
Adb Toolkit
ADB-Toolkit V2 for easy ADB tricks with many perks in all one. ENJOY!
Stars: ✭ 217 (+557.58%)
Mutual labels:  adb
Adblib
Java ADB library
Stars: ✭ 145 (+339.39%)
Mutual labels:  adb
Dingdingautoplaycard
钉钉自动上下班打卡辅助,基于Python,adb,实现,打卡后自动发送邮件提醒。flask搭建web页面自动生成配置
Stars: ✭ 162 (+390.91%)
Mutual labels:  adb
Adb For Test
通过adb命令实现简单的点击、滑动、长按等效果,可通过比例定位元素、通过元素定位(需要Android版本高于4.0),用于Android Test,拥有monkeyrunner的绝大部分功能
Stars: ✭ 176 (+433.33%)
Mutual labels:  adb
Cxtouch
View and manage Android devices from PC client based java swing, supporting Windows, Linux and MacOS
Stars: ✭ 229 (+593.94%)
Mutual labels:  adb
Wechat jump game
微信《跳一跳》Python 辅助
Stars: ✭ 13,880 (+41960.61%)
Mutual labels:  adb

This project is no longer maintained!

The 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.
===> The new Universal Android Debloat

Universal Android Debloater

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
  • Installation of alternative open-source apps replacing stock apps (list in the WIKI section) (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

  • Archos
  • Asus
  • Blackberry
  • Gionee
  • LG
  • Google
  • HTC
  • Huawei
  • Motorola
  • Nokia
  • OnePlus
  • Oppo
  • Samsung
  • Sony
  • TCL
  • Wiko
  • Xiaomi
  • ZTE

Mobile carriers debloat lists

Country Carriers
France Orange, SFR, Free, Bouyges/Sosh
USA T-Mobile, Verizon, Sprint, AT&T
Germany Telekom

How to use it

  • Read the FAQ!
  • Do a proper backup of your data! You can never be too careful!
  • Enable Developer Options on your smartphone.
  • Turn on USB Debugging from the developper panel.
  • 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)

LINUX
  • Install Android platform tools and qpdf on your PC :

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

MAC OS
  • Install Homebrew
  • Install Android platform tools and qpdf

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

Windows can't natively run bash script. Choose a workaround:

Method 1: Live Linux USB

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.

Method 2: WSL (W10 only)

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
  • Check the version of ADB on Linux & Windows
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/

$ 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.

How to contribute

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.

==> How to contribute

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].