This repository contains a script designed to debloat your Xiaomi device that supports multiple users. The script removes unwanted pre-installed applications, helping to optimize your device's performance and free up storage space.
- Multi-User Support: The script can uninstall packages for all users on the device.
- Customizable Package List: Easily modify the list of packages to uninstall based on your preferences.
- A Xiaomi device with USB debugging and USB debugging (Security settings) enabled.
This is necessary if you want the script to clear the bloatware data prior to uninstalling it. - ADB (Android Debug Bridge) installed on your computer.
- Basic knowledge of using the command line.
-
Clone the Repository:
git clone https://github.com/ycomiti/MIUI-Debloat-Script.git cd MIUI-Debloat-Script
-
Make the Script Executable:
chmod +x debloat.sh
-
Run the Script:
./debloat.sh
-
Follow the Prompts:
- The script will prompt you to enter the device ID. You can find this by running
adb devices
. - Ensure your device is connected and recognized by ADB.
- The script will prompt you to enter the device ID. You can find this by running
The script contains a predefined list of packages to uninstall. Here are some of the packages included:
com.miui.analytics
com.miui.cleaner
com.google.android.apps.maps
com.android.chrome
com.facebook.system
You can customize the packages
array in the script to add or remove packages as needed.
- Backup Your Data: Before running the script, it's recommended to back up your data, as uninstalling certain packages may affect your device's functionality.
- Risk of Bricking: This script has the potential to cause your device to become unresponsive or "brick" it if critical system applications are removed. Use it at your own risk, and ensure you understand the implications of removing system applications.
- Use at Your Own Risk: This script is provided as-is. Ensure you understand the risks involved in modifying system applications.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for details.
Contributions are welcome! If you have suggestions for improvements or additional features, feel free to open an issue or submit a pull request.