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

Search This thread

najoor

Senior Member
Mar 11, 2014
711
908
Los Angeles
** 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 **​
** These scripts are written for Kitkat. Do not use on Lollipop. **​
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/details?id=jackpal.androidterm&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.
 

Attachments

  • bloat-v1.zip
    2.2 KB · Views: 338
  • bloat-v2.zip
    2.5 KB · Views: 160
  • bloat-v3.zip
    3.2 KB · Views: 214
  • bloat-v4.zip
    4.9 KB · Views: 276
  • bloat-ATT-v4.zip
    5.4 KB · Views: 584
  • bloat-v5.zip
    4.9 KB · Views: 992
Last edited:

najoor

Senior Member
Mar 11, 2014
711
908
Los Angeles
Change log

V5:

Typos fixed.

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

V4:

Option to disable all Google services except Youtube, search, map, and TTS
Option to disable/enable Power on sound

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

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
 
Last edited:

iNiREALiZED

Senior Member
Apr 15, 2012
73
21
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

Senior Member
Mar 11, 2014
711
908
Los Angeles
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.
 
  • Like
Reactions: gerard0986

atag90

Member
Aug 11, 2014
12
3
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
 

najoor

Senior Member
Mar 11, 2014
711
908
Los Angeles
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://xdaforums.com/showpost.php?p=55029414&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://xdaforums.com/galaxy-tab-pro-12-10-8. or try these scripts as they are and see if it works for you.
 
Last edited:

Pixel Power

Senior Member
Aug 28, 2014
64
11
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:-

View attachment sysdump.txt

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

Pixel
 

stockerrodney

New member
Oct 6, 2013
3
0
Debloat method

I used this method but i accidentally uninstalled all google services, and google play store was apart of that, is that normal? And if it is are there ways to get it back?
 
Last edited:

stockerrodney

New member
Oct 6, 2013
3
0
I used this method but i accidentally uninstalled all google services, and google play store was apart of that, is that normal? And if it is are there ways to get it back?

Yes, that is part of bloat removal. To get Google bloat back run the enbloat.sh script and hit y when it prompts you about restoring Google bloat.

If i do the enbloat method will i have to reinstall knox ? Or will i still be able to keep it off?
 

najoor

Senior Member
Mar 11, 2014
711
908
Los Angeles
When you use the enbloat.sh you only restore the stuff you choose. You don't have to restore everything. In your case you leave knox and other things out and only answer yes when it asks you if you want Google bloat to be restored.

The script is very user friendly. Just run it and follow the instruction. And just to give you peace of mind, these scripts do not delete anything from your system permanently so don't worry about breaking your system.
 

najoor

Senior Member
Mar 11, 2014
711
908
Los Angeles
The debloat worked fine but the Scrapbook app in Air Command is now showing error "no application found to handle this actions".

Please advise.
Removing apps is what a debloating script does. If you want your app back just run the enbloat script. All the instruction you need is provided in the original post.
 
Removing apps is what a debloating script does. If you want your app back just run the enbloat script. All the instruction you need is provided in the original post.

Appreciated. I wanted to debloat but did not expect the scrapbook app to be debloated. Is there any way that I can retrieve this one app, without the rest of the garbage that will return if I "enbloat".

I recall finding the app the last time and renaming from .bak to .apk and it worked.

Can you tell me where to find the apk.
 

najoor

Senior Member
Mar 11, 2014
711
908
Los Angeles
Appreciated. I wanted to debloat but did not expect the scrapbook app to be debloated. Is there any way that I can retrieve this one app, without the rest of the garbage that will return if I "enbloat".

I recall finding the app the last time and renaming from .bak to .apk and it worked.

Can you tell me where to find the apk.

The app is either in /system/app or /system/priv-app. Rename app.apk.bac and app.odex.bac if it exists to app.apk and app.odex and reboot. I don't remember exactly which app is the one you need.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    ** 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 **​
    ** These scripts are written for Kitkat. Do not use on Lollipop. **​
    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/details?id=jackpal.androidterm&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.
    4
    Change log

    V5:

    Typos fixed.

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

    V4:

    Option to disable all Google services except Youtube, search, map, and TTS
    Option to disable/enable Power on sound

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

    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
    2
    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://xdaforums.com/showpost.php?p=55029414&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://xdaforums.com/galaxy-tab-pro-12-10-8. or try these scripts as they are and see if it works for you.
    1
    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.
    1
    Hope to see a version for the SM-P907 soon.