[Samsung Galaxy S7 Edge Guides, News, & Discussion] 123keelos:
When I look up an online guide on how to debloat my Android device, most of them said to use Titanium Backup or another app related to debloat. Unfortunately, when I uninstalled apps in TiBu, it would reinstall on the next reboot (Maybe a system restriction). When I did an All-In-One uninstallation of the apps in Titanium Backup, my device was stuck on the boot logo forcing me to reflash firmware (I did not have any backups :p). Fortunately, I found another way to do it, it was to flash a debloat script.

First of all download, Titanium Backup, even if it does not work when uninstalling, it will give us details when editing updater-script

Secondly, go to DEVELOPER OPTIONS and ENABLE OEM Unlock and USB Debugging. This is so less errors would occur. Keep then ENABLED after finished flashing the scripts

Scripts I used:

Just some scripts I used to debloat my device. Backing up is a MUST! I learned my lesson the harsh way :angel:

Debloater 4.2 Terminal - I used Option R

Nougat Debloat Script - I edited updater-script on my computer so it does not uninstall apps I need. After I edited, I rezipped the file and flashed it on my phone

Heavy Debloater - Made a file on my pc called "clean.sh". Edited the text so it does not remove apps I need. Rezipped. Sent to my phone. Flashed. Wipe davlik cache/cache

After using all these 3 tools, all my uneeded system apps were removed and I was not stuck on the boot screen.

How to Edit updater-script

1. First of all I used Notepad++ on my computer cause it is easier to manage

2. Extract the updater-script from "META-INF/com/google/android" to desktop.

3. Right-Click and select edit with Notepad++ (or a text editing tool).

4. I removed this part in the text because I want to wipe the dalvik and cache manually.

5. Remove the lines you NEED. For example, when I WANT YOUTUBE INSTALLED ON MY PHONE, I will remove the line...

If I want to get rid of a system file, I keep the line there. For example, I DO NOT WANT TO KEEP WEBMANUAL, I will keep the line...

5. Rezip (or replace) the original updater-script with the new one you just edited.

6. Send the zip file to your phone (Email, Mediafire, Google Drive, etc)

7. Boot into recovery

8. Install/Flash ZIP

9. Wipe dalvik and cache

10. Reboot. It will take a bit longer than usual to reboot so you will have to wait

11. If anything fails restore backup.

----

Sometimes, the script does not include apps I want to remove. So what I did was add the code for the designated app on the updater-script manually. This is where Titanium Backup comes into play.

1. Open Titanium Backup

2. Select an app you want to uninstall in the Backup/Restore section

3. Click on the designated app

4. You will see 4 buttons BACKUP!, FREEZE!, UNINSTALL! and below uninstall is WIPE DATA. Beside the WIPE DATA, it shows yellow text. Click on that

5. You will see a window called Current Version Info

6. Look at the APK Path

7. Go back to updater-script and add...

run_program("/sbin/rm", "-rf", "*APK PATH OF THE APP*");

8. As you can see if you select Adapt Sound (just an example) you will see /system/priv-app/Hearingdro_V52_N. So in the updater-script you will add...

run_program("/sbin/rm", "-rf", "system/priv-app/Hearingdro_V52_N*");

(NO SLASH IN FRONT OF SYSTEM)

9. Do this for the other apps you want to uninstall.