[MM / N / O] [UB] [COMBINED] System/OEM Debloat Script - v1.8 (03/Dec/2017)

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,010
18,602
263
São Paulo - SP
Requeriments:
- Xperia X Performance (X, XZ...)
- Sony Stock MM or N firmware
- Custom kernel with disabled DM-Verity (mandatory, due /system partition modifications)


Install:
TRY IT OUT AT YOUR OWN RISK!!!
1. Download and install always the latest version (attached)

Option 1: TWRP Recovery:
- Enter TWRP recovery and flash it (script will wipe cache and dalvik-cache)
- Reboot
- Done!

Option 2: PC (Windows) and Root:
- Unpack and run debloat.bat (script will wipe cache and dalvik-cache)
- Done!


Notes:
- Before flash/run the debloat script, you can see its "unwanted apps list " at \files\debloat_list.sh
- debloat_list.sh: Lines starting with ### will be ignored (their respective apps will not be "removed")
- Debloat script do not remove apps, instead it moves "unwanted apps" folders to a new location, which is not in the system's install path, and it is: /system/_debloat_backup/...
- To free up internal storage (+- 2.5 gb), you can mount system as rw and delete that folder above. It's up to you!
- Deodexed firmwares: First boot may take a while, just wait!!
- Updated bloatwares: They'll need to be uninstalled manually (Settings > Apps > "Choosen One" > Uninstall)!


Special thanks:
- Moly ( @FcukBloat < that name! :p )


Enjoy it!
 

Attachments

Last edited:

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,010
18,602
263
São Paulo - SP
Changelog

v1.8 - 03/Dec/2017
- Updated debloat list, based on stock Oreao 8.0.0 fw (41.3.A.0.401)


v1.7 - 24/Jul/2017
- Updated debloat list, based on stock Nougat 7.1.1 fw (41.2.A.7.35)
- What's New removed
- Added to Notes: Updated bloatwares: They'll need to be uninstalled manually (Settings > Apps > "Choosen One" > Uninstall)!


v1.6 - 29/Jun/2017
- Do not remove SmartCleaner (Memory/Ram Statistics Settings app) - thanks @dillalade


v1.5 - 10/Jun/2017
- Updated debloat list, based on stock Nougat 7.1.1 fw (41.2.A.7.8)
- RcaHandler removed


v1.4 - 25/Apr/2017
- Updated debloat list, based on stock Nougat 7.1.1 fw (41.2.A.2.199)
- Do not remove qcrilmsgtunnel - thanks @Hendikins
- Do not remove DocumentsUI (Downloads app)


v1.3 - 03/Feb/2017
- Updated debloat list, based on stock Nougat 7.0 fw (39.2.A.0.417)


v1.2 - 20/Jan/2017
- Updated debloat list, based on stock Nougat 7.0 fw (39.2.A.0.386)


v1.1 - 04/Jan/2017
- Do not remove Swiftkey keyboard (required for pin password)


v1.0 - 28/Dec/2016
- Initial release
 
Last edited:

deboopi2

Senior Member
Nov 12, 2011
499
36
0
MECHELEN
I tried it n nougat and it does not seem to work.
I changed the debloat script so less apps are getting moved but the result it is that some apps such as Facebook are not moved at all and some others seem to be moved if you look in the backup folder but those apps can still be launched and they seem to work fine.
What can be going on?
 

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,010
18,602
263
São Paulo - SP
I tried it n nougat and it does not seem to work.
I changed the debloat script so less apps are getting moved but the result it is that some apps such as Facebook are not moved at all and some others seem to be moved if you look in the backup folder but those apps can still be launched and they seem to work fine.
What can be going on?
It did work! These crapywares are installed during first boot as regular apps, that's why they keep installed and running even after the debloat script.
To get rid of em all, try to uninstall them, or better yet, enter /data/app/ and delete their respective folders, then reboot.
 
  • Like
Reactions: Nimadroid

nonato

Member
May 7, 2009
22
22
0
You can always restore to previous state with your backup!
Also, "removed" apps can be found at the /system/_debloat_backup/ folder.
yup easy enough to get it back. i couldn't narrow down which app/combination of apps kills the phone call out. surprisingly calls in, sms, mms, 3g/4g internet all still works though.

I noticed the Dual Sim setting gets greyed out after running the debloat. so it must have something to do with that.
 

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,010
18,602
263
São Paulo - SP
@serajr
Thanks good work
I have a question, what is 'device-monitor' and 'CrashMonitor' ?
Especially, that device-monitor apk more battery drain.
devicemonitor - is related to the debugging and usage stats service, which collects anonymous data and sends them to sony to improve the updates... Useless imo!!
crashmonitor - maybe same kind of crap (to be confirmed).
 
Last edited: