Prerequire
To run it in Windows/MacOS/Linux, make sure you have ADB installed, if you didn't install, please click me to install
Connect to your One UI device before running script
What can this script do?
Debloat system apps to make your system to make your One UI faster, better battery life and improve privacy
⚠️Warning: This script debloat many system apps that can break some features, you can modify this script according to your need before running or reinstall apps using this command
adb shell cmd package install-existing <name of package>
For example, you want to restore Samsung Cloud, run this command:
adb shell cmd install-existing com.samsung.android.scloud
Run the script
Before running script, please download this repo and extract file, then go to folder One-UI-Optimization-Script Then, just run the script according to your OS. For running directly on android, please refer this
Windows
On Windows, right click on adbdebloat.bat and click Run as administator or open Command prompt, head to the folder and run:
MacOS/Linux
Right click on adbdebloat.sh and run or open Terminal in this folder and run
or
Termux
Make sure you granted storage permission for Termux:
- For rooted devices:
cd /../../<your path to script>
Note: If your phone is rooted, you can use this Debloater or Debloater Magisk Module instead of this method
- For non-root devices
To run directly on Android without PC, Android 11+ is required
First, setup Shizuku using Wireless Debugging Now, Follow these step to using this debloater:
Open Shizuku, select Use Shizuku in terminal apps, click export files, choose a folder and ok
Use any text editor to replace PKG with com.termux in rish file
Note: Move termuxdebloat.sh to the same folder
Now open Termux, execute the following commands
For example, you stored it in Internal Storage/Termux. Just run this command
cd /storage/emulated/0/Termux
Run this command and grant Shizuku permission:
Now, run termuxdebloat.sh and let it do everything for you
After update
After update, system may reinstall some apps, just run script again.
Also after update, your device may be slower or drains battery so fast, run this command to optimize it:
adb shell cmd package bg-dexopt-job
On Termux, run this command
- For rooted devices
su -c "cmd package bg-dexopt-job"
- For Termux+Shizuku, run this after sh rish command
cmd package bg-dexopt-job
Enjoy faster experience
Credit
- invinciblevenom for One UI Debloat Script
- KelvinCrag for Optimizer
- Me

