Skip to content

gorunjinian/android-debloater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Android Safe Debloater

A Windows batch script that removes bloatware from Android devices via ADB while keeping all critical system services intact.

What It Removes

  • Third-party bloatware - Facebook, Netflix, LinkedIn, WPS Office
  • Google services & apps - Play Services, Play Store, Gmail, YouTube, Chrome, Maps, Photos, Drive, and more
  • Mi/MIUI apps (Xaomi phones) - Mi Music, Mi Weather, Mi Notes, Mi Browser components, GetApps Store, etc.
  • MIUI ads & analytics - MSA (system ads), MIUI Analytics, Joyose tracking
  • Misc bloat - Android Easter Egg, Daydreams

What It Keeps

  • MIUI/Xiaomi system services and frameworks
  • Security Center and account services
  • Core system components required for stability

Note: Google Play Services is removed.

Prerequisites

  • ADB installed and available in your system PATH (download)
  • USB Debugging enabled on your Android device (Settings > Developer Options > USB Debugging)
  • Device connected to your PC via USB

Usage

  1. Connect your device via USB and confirm the USB debugging prompt on the phone.
  2. Open a terminal and verify the connection:
    adb devices
    
    You should see your device listed.
  3. Run the script:
    debloat-android-safe.bat
    
  4. Follow the on-screen prompts. The script will show [OK] for each successfully removed package.
  5. Reboot your device after the script completes.

How It Works

The script uses adb shell pm uninstall -k --user 0 <package> for each app. This:

  • Uninstalls the app for the current user only (user 0)
  • Keeps the app data (-k flag) so a factory reset can restore everything
  • Does not modify the system partition

Restoring Removed Apps

Since packages are only uninstalled for user 0, a factory reset will restore all removed apps. To restore a single app without resetting:

adb shell cmd package install-existing <package.name>

Disclaimer

Use at your own risk. While this script avoids removing critical system components, results may vary across devices and Android versions. Always check the uninstalled packages.

About

A simple Windows batch script that removes bloatware from Android devices via ADB

Resources

Stars

Watchers

Forks

Contributors