[Xiaomi Mi 5s Themes, Apps, and Mods] Zappo:
UnBloatMi - Xiaomi MIUI Bloatware Remover

I have been searching for a script to remove Bloatware from my Xiaomi Mi5s, and found a couple of different ones that do part of the job.

None were exactly what I was looking for, so I wrote a script of my own.

Although I tested the script on my MI5s only, it should be very usable for any Xiaomi device running MIUI 7 or 8.

In UnBloatMi I have combined multiple lists of MIUI 7 and 8 apps that should be safe to remove.

It also contains a couple that are less safe to remove, but the script will ask for confirmation before removing those.

Which is a big difference from other scripts; you get to choose what to remove and what to restore!

Backup location:

If you edit the script, you can change the backup location to use (by default "/sdcard/UnBloatMi")

You can of course also add more apps to remove to the list in the script. (instructions are in the comments)

It's not needed to remove files from the list, as it will not process files that are not on your device, and you can choose not to remove any app.

To Customize the Script:

Unzip the zip and edit the file under: META-INF\com\google\android\update-binary

This script is written in shell language (sh), so editing is somewhat different from "normal" EDIFY scripts that use the "updater-script" file.

I used part of the excellent template by osm0sis to create UnBloatMi

Install Custom Apps/Files:

You can also have the script install Custom files to /system folder. (So you can add another HomeLauncher, for example)

To have the script install Custom files, just add them to the Zip in "/system/app/" folder:

/system/app/YourCustomApp1/YourCustomApp1.apk

/system/app/YourCustomApp2/YourCustomApp2.apk

The script will automatically install them for you.

To use the Script:

You need to have TWRP Recovery installed.

BACKUP YOUR DEVICE BEFORE RUNNING THIS SCRIPT!!! (I recommend using TWRP Backup)

(even though the script allows you to restore your changes, something can always go wrong - press wrong button for example)

- Move the ZIP file to your SDCard, and install using TWRP Recovery

Basically, you can just follow the instructions on the screen, by pressing Volume buttons.

- The first run, you'll be asked what apps to remove. Backups are automatically made.

You can confirm each app, or choose to only confirm the more risky apps.

- If you run the script again (after testing your installation), it will detect the backups from the previous run.

You can then choose to restore the backup files, or delete them from your device.

- You can now also create a default UnBloat list, that can be used to UnBloat after flashing a (new) ROM.

It is created by checking for installed apps. If an app is not found on the device, it's added to the list.

[IMG="Restore Confirmation"]http://avanosch.nl/projects/UnBloatMi-Restore.jpg[/IMG]

Feel free to edit and change the script.

If you make any improvements, please let me know so I can add them to the script.

This includes reporting what apps caused problems when removed, or comments about apps.

You can find the script in: /META-INF/com/google/android/update-binary (or on GitHub by clicking the "Source Code" link below)

Instructions can be found in the comments of that file.

--UPDATE--

Added Step by Step Restore: You can now choose which apps to restore, so it is easier to troubleshoot your installation.

--UPDATE v0.2--

Added warning to SecurityCenter App (so it has to be confirmed). It caused bootloop on my device when removed.

--UPDATE v0.3--

Bugfixes, Added Apps, changed and added some app comments. Changed download link (GitHub download creates a folder too many)

--UPDATE v0.4--

Changed/Added menu's - Allows you to do more actions at once

Added apps and comments.

Added ability to save a default UnBloat list. This can be used to UnBloat after flashing a ROM.

Download

Source Code