FORUMS

Debloating Script for Lollipop N900TUVUFOB6

305 posts
Thanks Meter: 323
 
By najoor, Senior Member on 19th March 2015, 08:52 PM
Post Reply Subscribe to Thread Email Thread
** 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

This script is written for the sole purpose of reducing the power consumption of Android 5.0 update for T-Mobile Note 3. A lot more can be removed from the system but that will not make a significant contribution to power.

The debloat script does not really remove anything; it only disables the apps. You can always run the enbloat script to revert it.

THIS SCRIPT IS FOR LOLLIPOP ONLY. WILL NOT WORK ON OTHER ANDROID FLAVORS.

What this script does

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


Removes: FOTA, update, and security vehicles.
Because: these vehicles push "Security Updates" onto the device. If you make the mistake of accepting this security update, even after you root your tablet, it can patch the hole and you will never be able to use the same exploit to root again.

Removes: Google apps including Gmail and Google sync apps except for Maps, Youtube, Chrome, and Voice Search.
Because: Google apps do a lot of bookkeeping, locationing, and internet access in the background with very little benefit to the user, while consuming a lot of power. If you use Gmail my suggestion is to use the default Email program since it allows a better management of the sync schedule and consumes less battery (and a few other good things). Note that this can severely limit your access to Play Store so either install all store apps you need before debloating or use sideloading to install them after

Removes: Knox
Because: I am yet to meet a single person who likes this nightmare of an app.

Removes: Tmobile stuff except for Voice mail and hotspot
Because: Tmobile bloat does too much activity in the background. In particular, Lookout scans your device constantly to no obvious advantage.

Removes: Backup/cloud agents
Because: Most advanced users backup their data through other means

Removes: Remote control and tracking mechanisms
Because: If you are reading this you most likely don't want your device to be remotely tracked or controlled by Samsung

Removes: ANT services, health, INDI (v2), secgba (v2), Peel (v2)
Because: They run in the background and use the radio.

Removes: Weather (unified) daemon
Because: Major battery hog

Removes: Chat ON, Gear Manager Stub, Bloomberg
Because: Not particularly useful and can be installed from the market if needed

Removes: Enterprise and VPN tools
Because: Most users don't use them

And since someone will ask at some point, no, this script won't trip your Knox!

Requirements:

Rooted Samsung Note 3 SM-N900T (T-mobile model) on Lollipop N900TUVUFOB6. See this thread.
Android Terminal Emulator: https://play.google.com/store/apps/d...roidterm&hl=en

Download link:

Attached below

Instructions:

Make a backup of your files/system. Also have a flashable Odin ROM handy to recover from possible disasters. 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- It will do its thing and reboot your phone in about 5 seconds.

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- It will do its thing and reboot your phone in about 5 seconds. You have all your bloat 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.

Final Notes

With this script you should be able to get anywhere between 0.25 to 1 percent discharge per hour in standby mode. Your awake time should also be around 1-3%. You will still find that Google Services will wake up and use GPS every time you unlock your phone. To get even better battery performance turn your GPS off when you are not using it

This should be sufficient for 99% of people. After you apply this script, if you still want more try this: Disable Phonesky, google play services, Google framework, and stock YouTube by renaming their apks (not the directory they are in but the apks themselves) to .apk.bac, reboot, and install an older version of youtube that does not need Google Services, such as 5.1.10. Note that this drastic removal of Google services will make assisted GPS very slow in Google Maps. If you don't understand what that means it is best to stick with the debloat script and not mess with your system.

Regardless of whether you end up using this code or not, my suggestion to you is to go to Settings -> General -> Security -> Security Policy Updates -> untick Automatic Updates.

Update

Version 2 removes more background processes. If you have already used version 1 to debloat, I recommend that you use version 1 to restore the bloat and then use version 2 to debloat again.
Attached Files
File Type: zip bloat-v1.zip - [Click for QR Code] (3.5 KB, 308 views)
File Type: zip bloat-v2.zip - [Click for QR Code] (4.1 KB, 188 views)
Last edited by najoor; 10th April 2015 at 08:11 PM.
The Following 6 Users Say Thank You to najoor For This Useful Post: [ View ]
 
 
22nd March 2015, 08:17 PM |#2  
Frank Westlake's Avatar
Senior Member
Thanks Meter: 269
 
More
Thanks for contributing your work!

Frank
Last edited by Frank Westlake; 23rd March 2015 at 06:57 PM.
22nd March 2015, 09:46 PM |#3  
VeNuMuS's Avatar
Recognized Contributor
Flag Los Angeles
Thanks Meter: 2,766
 
Donate to Me
More
Quote:
Originally Posted by 411y0ur8453

See above/

---------- Post added at 09:15 PM ---------- Previous post was at 09:05 PM ----------

Anyways, we don't need a big long debate about it. I am just saying there needs to be a little more objective evidence for this, especially when the logic and reason at the beginning of the OP doesn't match the logic and reasoning in the list of applications being removed.

And the knox app is embedded deep into the device's core framework, simply removing the app is doing very little to remove it in it's entirety.

This is true. Knox is embedded deep into the system even bootloader removing the app will do close to nothing. Not putting down the work put into the script as it is indeed a time saver if you have spend a little time with Android. If not they can be turned off manually. As for the security holes. There will always be a way to root and mod. Oems have that to themselves. Take a look at our brethren over with verizon and att. Their devices are locked down tight and came like that out of the manufacturer. Our devices are unlocked boot loader wise. If they wanted to they would have locked our models too.
23rd March 2015, 12:57 AM |#4  
oka1's Avatar
Forum Moderator
Flag Lake Norman, North Carolina
Thanks Meter: 4,477
 
Donate to Me
More
From the Moderator
Please avoid wandering into the philosophical world ........

Remember this If you root the phone or customize it then forget about security or other updates that come from the carrier or the manufacturer ......... by default you have agreed to abandon those updates ...... if they are important to you then, do not root and stay stock....... EASY

Post on topic, be kind , be respectful ........ thanks ~~~ oka1
The Following 2 Users Say Thank You to oka1 For This Useful Post: [ View ]
23rd March 2015, 01:58 AM |#5  
Account currently disabled
Thanks Meter: 4
 
More
Quote:
Originally Posted by oka1

Please avoid wandering into the philosophical world ........

Remember this If you root the phone or customize it then forget about security or other updates that come from the carrier or the manufacturer ......... by default you have agreed to abandon those updates ...... if they are important to you then, do not root and stay stock....... EASY

Post on topic, be kind , be respectful ........ thanks ~~~ oka1

Also a very good point...
23rd March 2015, 02:28 AM |#6  
freeza's Avatar
Recognized Developer
Flag Pasadena, CA
Thanks Meter: 10,199
 
Donate to Me
More
Meh... A lot of the time, removing and freezing apps can be counter productive.

For example,mpdecision, which controls when cores come online, has calls to it embedded into Samsung's camera apk, and removing or renaming this file can negatively impact battery life when using the camera application because a lot of the time, oems don't build checks into their software. They simply expect the file to be present, and when it's not, it can create a loop and drain battery.

Unless you've gone through the entire system to look for references to the apps you're removing, it's best to simply freeze or leave them alone.
The Following 2 Users Say Thank You to freeza For This Useful Post: [ View ]
23rd March 2015, 03:04 AM |#7  
OP Senior Member
Los Angeles
Thanks Meter: 323
 
More
Quote:
Originally Posted by freeza

Meh... A lot of the time, removing and freezing apps can be counter productive.

For example,mpdecision, which controls when cores come online, has calls to it embedded into Samsung's camera apk, and removing or renaming this file can negatively impact battery life when using the camera application because a lot of the time, oems don't build checks into their software. They simply expect the file to be present, and when it's not, it can create a loop and drain battery.

Unless you've gone through the entire system to look for references to the apps you're removing, it's best to simply freeze or leave them alone.

You are right about the mpdecision process and it makes common sense to not remove a process like that. The same can be said about different timers and alarm processes in the system and the list goes on.

Having said that, I would be more than happy to explain how each item on this list contributes to saving power or protects the system from being subjected to unwanted patches without compromising the integrity of it.

And finally, I have been already using this setup (even a more aggressive version of it) for a few days on my phone with excellent power results and not a single hiccup or force closed app. I have also constantly monitored the wake locks and background processes to make sure the situation you referred to does not occur. I would be glad to hear your feedback if you use it and find a different outcome.
Last edited by najoor; 23rd March 2015 at 03:09 AM.
23rd March 2015, 05:10 PM |#8  
Senior Member
Flag JPN
Thanks Meter: 23
 
Donate to Me
More
Op, can you share me one with Gapps and debloating all stuffs which are not necessary (TMO Services),if you live away from US of A? It would be much helpful for people like me.
24th March 2015, 07:38 AM |#9  
OP Senior Member
Los Angeles
Thanks Meter: 323
 
More
Quote:
Originally Posted by jhbalaji

Op, can you share me one with Gapps and debloating all stuffs which are not necessary (TMO Services),if you live away from US of A? It would be much helpful for people like me.

There is a lot that can be taken out but every piece removes a bit of functionality with it. If you live abroad it is understandable to remove all TMO stuff but, for example, if you remove more Google stuff than this script does YouTube will stop working and maps becomes slower. Also, there are services like printers or widgets like flipboard etc that you may still want to keep. So to what extent do you want to debloat your system?
Last edited by najoor; 24th March 2015 at 07:54 AM.
24th March 2015, 04:13 PM |#10  
dirtybudha's Avatar
Senior Member
Flag Dallas
Thanks Meter: 771
 
More
I had already debloated several apps but thought this could help a bit more with the battery. So far I haven't had any issues, crashes, etc.

Thanks for sharing.

Update: It causes Milk Music to not work.
Last edited by dirtybudha; 25th March 2015 at 12:07 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes