Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,934 Members 51,587 Now Online
XDA Developers Android and Mobile Development Forum

[SM-P905][SM-P907A] Debloating bloatware after rooting + Power On sound removal

Tip us?
 
najoor
Old
(Last edited by najoor; 11th September 2014 at 02:44 AM.)
#1  
Senior Member - OP
Thanks Meter 129
Posts: 130
Join Date: Mar 2014
Location: Los Angeles
Default [SM-P905][SM-P907A] Debloating bloatware after rooting + Power On sound removal

** 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 **


What is new (9/7/2014)

Version 4 provides more Samsung bloat removal, Google bloat removal, and as a bonus it can disable the power on sound.

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

The international version (P905) is tested with baseband P905XXUANA7, build P905XXUANC3 .
The ATT version (P907A) is tested with build KOT49H.P907AUCU1AND7 (thanks to @gerard0986 for testing the script)
Makes sure you download the version that is suitable for your tablet. It may work to varying extents for other models and firmwares.You try and tell me

If you are using models other than P905 or P907A, 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

Note that while running the debloat script you may get force-closing popups. This is normal; after all you are disabling these applications!

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, 77 views)
File Type: zip bloat-v2.zip - [Click for QR Code] (2.5 KB, 65 views)
File Type: zip bloat-v3.zip - [Click for QR Code] (3.2 KB, 111 views)
File Type: zip bloat-v4.zip - [Click for QR Code] (4.9 KB, 30 views)
File Type: zip bloat-ATT-v4.zip - [Click for QR Code] (5.4 KB, 8 views)
The Following 2 Users Say Thank You to najoor For This Useful Post: [ Click to Expand ]
 
najoor
Old
(Last edited by najoor; 10th September 2014 at 08:28 AM.)
#2  
Senior Member - OP
Thanks Meter 129
Posts: 130
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 of V1:
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 3 Users Say Thank You to najoor For This Useful Post: [ Click to Expand ]
 
Rockytop00
Old
#3  
Junior Member
Thanks Meter 2
Posts: 13
Join Date: Aug 2014
Would this work for the T-900 version too?
 
iNiREALiZED
Old
#4  
Member
Thanks Meter 12
Posts: 36
Join Date: Apr 2012
What do I need to get the info required to get a script made for the sm-p907a model? I read above post but the list of things required were above my head lol.

Sent from my SAMSUNG-SM-P907A using XDA Free mobile app
 
najoor
Old
#5  
Senior Member - OP
Thanks Meter 129
Posts: 130
Join Date: Mar 2014
Location: Los Angeles
Quote:
Originally Posted by iNiREALiZED View Post
What do I need to get the info required to get a script made for the sm-p907a model? I read above post but the list of things required were above my head lol.

Sent from my SAMSUNG-SM-P907A using XDA Free mobile app
1- What is your firmware version?

2- Open the terminal emulator and type the following commands in there:

su
cd /system
ls -R -l > /sdcard/sysdump.txt

Then pm the file sysdump.txt which is saved on your sdcard to me.
The Following User Says Thank You to najoor For This Useful Post: [ Click to Expand ]
 
atag90
Old
#6  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Aug 2014
Default thank you

Thank you najoor for the neat script, it executed successfully on my sm-p905 (UANE1 rom) & removed the useless software, it saves a lot of time removing them manually.
Nice work
 
gerard0986
Old
#7  
Member
Thanks Meter 7
Posts: 83
Join Date: Dec 2007
Location: Victorville
Hope to see a version for the SM-P907 soon.
The Following User Says Thank You to gerard0986 For This Useful Post: [ Click to Expand ]
 
najoor
Old
(Last edited by najoor; 17th September 2014 at 06:58 AM.)
#8  
Senior Member - OP
Thanks Meter 129
Posts: 130
Join Date: Mar 2014
Location: Los Angeles
Quote:
Originally Posted by Rockytop00 View Post
Would this work for the T-900 version too?
I think the only existing models are SM-P900, SM-P905, SM-P907A and SM-P905V. I don't know what T-900 is.

If you are referring to model P900 (wifi only) this code may partially work but a lot of files are different between the two models so the outcome is a partial debloat. If you want, you can make a system dump file as I suggested in this post http://forum.xda-developers.com/show...14&postcount=5 and send it to me so I can make a custom code for you.

Edit: It appears that T900 is the Tab pro model which is a different device. This thread is for Note pro 12.2 and since I do not own a Tab Pro I cannot answer this question. Perhaps help can be found in the XDA's Tab Pro forum at http://forum.xda-developers.com/galaxy-tab-pro-12-10-8. or try these scripts as they are and see if it works for you.
The Following 2 Users Say Thank You to najoor For This Useful Post: [ Click to Expand ]
 
Pixel Power
Old
#9  
Junior Member
Thanks Meter 0
Posts: 14
Join Date: Aug 2014
Hey najoor, Im hoping that you can help me debloat my galaxy tab pro 12.2 sm-t900. I just bought it today and am shocked at the amount of bloatware thats included lol.

Basically I want everything removing that I can install through googleplay, leave the default browser.

Here is the log that you mentioned to the other guy also:-

sysdump.txt

Ill try to pm it also, really hope you can help out.

Pixel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes