Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,492 Members 53,158 Now Online
XDA Developers Android and Mobile Development Forum

[SM-P905] [Root] [Debloating] Disabling bloatware after rooting

Tip us?
 
najoor
Old
(Last edited by najoor; 9th July 2014 at 05:09 AM.)
#1  
Senior Member - OP
Thanks Meter 94
Posts: 113
Join Date: Mar 2014
Location: Los Angeles
Default [SM-P905] [Root] [Debloating] Disabling bloatware after rooting

** DISCLAIMER: I AM NOT A DEVELOPER. I DO THIS AS A HOBBY AND SHARE MY FINDINGS IN CASE SOMEONE ELSE FINDS THEM USEFUL. **
** THIS WORKED ON MY DEVICE BUT IT MAY NOT WORK ON YOURS. APPLY AT YOUR OWN RISK **


Background

Samsung has a program running on most of its devices that pushes "Security Updates" onto the device. If you make the mistake of accepting this security update, even after you root your tablet, it will patch the hole and you will never be able to use towelroot or any other know exploit as of June 2014 to root your it again. So this must be immediately disabled after a successful rooting.

Your tablet is also equipped with Knox. One component of Knox is in the bootloader and checks the integrity of the recovery and kernel. If it sees anything has changed at that level it trips the knox flag immediately, which is irreversible. That component can almost never be touched. The second component runs when the OS is up and running and its main task is to monitor the activities of the apps in your system and shut them down if they act "suspiciously". When you are rooted and install SuperSU, this element of Knox keeps detecting the background root activities and shuts them down and gives you warnings. There is therefore a high level of risk there if you let root and knox exist concurrently. So after rooting, this second component of Knox should normally be disabled.

Finally, there are useless junk apps that most of us agree Samsung should have never shipped with the tablet, or even if they are useful we want them gone to get a better battery life.

I will call all of the above (updaters, Knox, and useles junk) bloatware. The scripts attached here can disable or enable the bloatware on your tablet, which comes in handy if you do not have Titanium Backup Pro to freeze or remove bloatware. And since someone will ask at some point, no, it won't trip your Knox!

Please read below and understand what this script disables before you use it. There may be an app on the list that you may actually want to keep.

Requirements:

Rooted Samsung Note Pro 12.2, SM-P905 international model.
Android Terminal Emulator: https://play.google.com/store/apps/d...roidterm&hl=en

I have tried this on P905 with firmware rev P905XXUANA7. It may work to varying extents for other models and firmwares.You try and tell me

If you are using models other than P905, I can make a new script for you if you provide me with a "ls -R -l" dump of your /system, or even better, if you post your firmware somewhere online.

Download link:

Attached below

Instructions:

Generally speaking, you should always have a Nandroid backup before trying anything new. Also have a flashable ROM handy. I am not responsible if you brick your device while using these scripts.

To debloat:
1- Unzip the attachment and copy debloat.sh to your phone at /sdcard
2- Run the terminal emulator and type the following:
su
cd /sdcard
sh debloat.sh
3- Choose what you want to disable, or exit.
4- If you choose not to exit, the code does its thing and reboots your tablet. The bloat is gone now

To restore the bloatware:
1- Unzip the attachment and copy enbloat.sh to your phone at /sdcard
2- Run the terminal emulator and type the following:
su
cd /sdcard
sh enbloat.sh
3- The code will warn you:
Are you sure you want to restore the security/firmware/software updaters, and Knox?
They may immediately patch your system and make the existing root methods impossible to apply.

Then you can choose what to enable, or just exit.
4- If you choose not to exit, the code does its thing and reboots your tablet. The bloat is back now

Limitations:

If you have previously removed bloat using other means this script CANNOT recover it for you. enbloat.sh can only restore what debloat.sh has disabled.

If you have debloated using an older version of this code and you want to try a newer version of it, first use enbloat from the older version to return everything to the original configuration and then use the newer version.

When you are restoring the bloat, it is best to enable "airplane mode" so that your tablet does not try to patch your system with a security update without your knowledge. You can disable the airplane mode after you debloat again.
Attached Files
File Type: zip bloat-v1.zip - [Click for QR Code] (2.2 KB, 34 views)
File Type: zip bloat-v2.zip - [Click for QR Code] (2.5 KB, 37 views)
File Type: zip bloat-v3.zip - [Click for QR Code] (3.2 KB, 24 views)
 
najoor
Old
(Last edited by najoor; 9th July 2014 at 05:23 AM.)
#2  
Senior Member - OP
Thanks Meter 94
Posts: 113
Join Date: Mar 2014
Location: Los Angeles
Default Change log

V3:

The scripts give separate options to enable/disable these groups of bloatware:
1- Updater/knox

Firmware Upgrader
Local FOTA
Security Manager
FOTA Client
Security Update Client
Samsung Push Client
Samsung Software Update
Knox and its related apps
2- Samsung bloat

ANT
Blurb
ELM Agent
Samsung Apps apk and widget
Job Manager
Samsung cloud backup files
Context Provider
S Finder
S Voice
Samsung Account Service
aaIgnite_1.5.15_singtel
weplay_1.3.162
PCWClientS18
3- Other bloatware
Accuweather
Bloomberg
Dropbox
Evernote
Flipboard
NY Times
Remote PC
Travel Service
Twitter
WebEx
Line
Pinboard Scratch book
SNS
eMeeting
=============

V2:

The scripts give options to enable/disable updater/knox and other bloatware separately

Added these to the disable list:
SecurityManagerService
aaIgnite_1.5.15_singtel
weplay_1.3.162

=============

V1:

The script disables the following:

Firmware Upgrader
Local FOTA
FOTA Client
Security Update Client
Samsung Push Client
Samsung Software Update

Knox and related apps

ANT
Blurb
ELM Agent
Remote PC
Samsung Apps apk and widget
Travel Service
Twitter
WebEx
Line
Samsung cloud backup files
PCWClientS18
Scratch book
S Finder
SNS
Samsung Account
eMeeting
The Following User Says Thank You to najoor For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes