FORUMS

[SHELL][SCRIPT][10/10/15] SPR Disabler

5,661 posts
Thanks Meter: 6,450
 
By 1ceb0x, Senior Member on 10th October 2015, 04:37 PM
Post Reply Email Thread
Hello world,

Welcome to SPRs thread page!

What is SPR Disabler?
SPR stands for Services, Providers and Receivers Disabler. This is a standard shell script that will disable unwanted services, receivers and providers from Google Play Services.

What is the difference between this and other conventional methods?
With this method you don't need to install an extra APP that runs in background. This script allows you to disable stuff you do not want, at boot. The only thing you need for this to work, is a ROM with su and /etc/init.d/ support so you can run the script.

How many SPRs does this disables?
231 as of 10/10/15.

For what version of Google Play Services was this compiled?
Google Play Service v8.1.15.

Do you intend to update this script regularly?
I intend to update this script as time permits.

Will there be a problem with my phone if I use this?
I took extra care to verify the logcat after trying the script on my own phone. The only major problem found right now is that the network location service throws an error:
Code:
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): Exception
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): java.lang.SecurityException: need INSTALL_LOCATION_PROVIDER permission, or UID of a currently bound location provider
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at android.os.Parcel.readException(Parcel.java:1546)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at android.os.Parcel.readException(Parcel.java:1499)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at android.location.ILocationManager$Stub$Proxy.reportLocation(ILocationManager.java:1232)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at com.android.location.provider.LocationProviderBase.reportLocation(LocationProviderBase.java:136)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at com.google.android.location.network.NetworkLocationService.onHandleIntent(SourceFile:107)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at android.os.Handler.dispatchMessage(Handler.java:102)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at android.os.Looper.loop(Looper.java:135)
10-09 12:00:09.817: E/GmsNetworkLocationProvi(1960): 	at android.os.HandlerThread.run(HandlerThread.java:61)

This error DOES NOT render your phone useless in the sense that the location of your phone will still work without problems (tested with MAPS, WiFI and Data, GPS on also with GPS Test).
The other issue is related to Gmail - when you enter the app, there will be an error from GPS, but don't worry because the app will still work.

How to install this on my phone?
You will need a custom rom with su and init.d support.
1. Place SPRDisabler.sh in your /etc/init.d/ folder and set the correct permissions (Read: Owner, Group and Other / Write: Owner / Execute: Owner, Group and Other)
2. Launch Terminal Emulator (if you do not have this installed on your phone, install it from Play Store)
3. When Terminal is opened, type:
Code:
su
./etc/init.d/SPRDisabler.sh

!Please note that those are 2 lines of code that need to be entered in Emulator. The first one is to acquire su permissions and the other one is to run the script!
4. Script will now run!

How to revert back if I don't like it?
There is a shell script in the zip that will revert back all the disabled SPRs. Just use the same install method to install the Revert script.

What exactly is disabled?
Code:
Chrome Sync
Google OTA updates (you're not a nexus, lol)
Google WiFi Gatherers
Google Usage Reporting
Google CAST feature (to 'share' your screen on TVs or Smart TVs)
Google Pseudonymous
Google Photos backup
Google Phenotype
Google Nearby
Google Kids
Google Help
Google feedback
Google Car (do you own an Android Car?)
Google Fitness
Google Location Reporting
Google ConfigFetch
Google CheckIn
Google Analytics
Google Ads
Google Location Copresence
Google Location Geofencer


What do I actually get afterwards?
You get a slimmed memory footprint for Google Play Services.

Proof?
Google Play Services on a fresh install ROM:

Google Play Services on a fresh install ROM, script applied:


OK, I want it!


Pics in the wild





That's it. I hope you enjoy using this script!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-10-10-14-29-12-01-01.jpeg
Views:	6544
Size:	57.6 KB
ID:	3501992   Click image for larger version

Name:	Screenshot_2015-10-10-15-16-12-01.jpeg
Views:	6474
Size:	53.0 KB
ID:	3501993   Click image for larger version

Name:	1st.png
Views:	6442
Size:	78.2 KB
ID:	3502002   Click image for larger version

Name:	2nd.png
Views:	6436
Size:	214.6 KB
ID:	3502003   Click image for larger version

Name:	3rd.png
Views:	6452
Size:	197.5 KB
ID:	3502004  
The Following 17 Users Say Thank You to 1ceb0x For This Useful Post: [ View ] Gift 1ceb0x Ad-Free
10th October 2015, 04:44 PM |#2  
1ceb0x's Avatar
OP Senior Member
Flag The Earth
Thanks Meter: 6,450
 
More
Needed!
10th October 2015, 05:21 PM |#4  
itslels's Avatar
Senior Member
Thanks Meter: 473
 
More
Excuse my ignorance, but what benefits does this give us? Battery life? More free memory?

Sent from my A0001 using Tapatalk
10th October 2015, 05:24 PM |#5  
1ceb0x's Avatar
OP Senior Member
Flag The Earth
Thanks Meter: 6,450
 
More
Quote:
Originally Posted by itslels

Excuse my ignorance, but what benefits does this give us? Battery life? More free memory?

Sent from my A0001 using Tapatalk

Less services running on your phone. Benefits will range from better battery life, less heat to less memory used.

Sent from my A0001 using Tapatalk
The Following User Says Thank You to 1ceb0x For This Useful Post: [ View ] Gift 1ceb0x Ad-Free
10th October 2015, 05:58 PM |#6  
GXGOW's Avatar
Senior Member
Flag East Flanders Best Flanders
Thanks Meter: 499
 
More
Looks promising! I'll try this out on my device and report back the results. Does this mean that I don't need Amplify anymore to limit the Play Services? Will this script also work on other devices?
10th October 2015, 06:04 PM |#7  
1ceb0x's Avatar
OP Senior Member
Flag The Earth
Thanks Meter: 6,450
 
More
Quote:
Originally Posted by GXGOW

Looks promising! I'll try this out on my device and report back the results. Does this mean that I don't need Amplify anymore to limit the Play Services? Will this script also work on other devices?

The disabled ones won't be visible in Amplify. You can still use it while you use this script. It should work on any Android phone that has Google play services and root.

Sent from my A0001 using Tapatalk
The Following User Says Thank You to 1ceb0x For This Useful Post: [ View ] Gift 1ceb0x Ad-Free
10th October 2015, 06:19 PM |#8  
GXGOW's Avatar
Senior Member
Flag East Flanders Best Flanders
Thanks Meter: 499
 
More
Quote:
Originally Posted by 1ceb0x

The disabled ones won't be visible in Amplify. You can still use it while you use this script. It should work on any Android phone that has Google play services and root.

Sent from my A0001 using Tapatalk

Alright, thanks for the answer. I ran the script, but it looks like there are exceptions all over the place!



I've come across them in every phase of the script, so I don't think that's a good sign.
The script still tells me the services are disabled with success, though.
10th October 2015, 06:22 PM |#9  
1ceb0x's Avatar
OP Senior Member
Flag The Earth
Thanks Meter: 6,450
 
More
Quote:
Originally Posted by GXGOW

Alright, thanks for the answer. I ran the script, but it looks like there are exceptions all over the place!



I've come across them in every phase of the script, so I don't think that's a good sign.
The script still tells me the services are disabled with success, though.

Please give correct permissions to the file. The script is denied because permissions are not correctly given. Refer to the OP for more info.

Sent from my A0001 using Tapatalk
10th October 2015, 06:27 PM |#10  
GXGOW's Avatar
Senior Member
Flag East Flanders Best Flanders
Thanks Meter: 499
 
More
Quote:
Originally Posted by 1ceb0x

Please give correct permissions to the file. The script is denied because permissions are not correctly given. Refer to the OP for more info.

Sent from my A0001 using Tapatalk

The permissions are correct, but apparently there was an issue with the Terminal app I was using gaining root access. It's working now! I've also successfully applied it on my G Pad 8.3 and so far, the memory footprint of GPS has shrunk enormously! Will report back on battery life later.

Thanks for creating this script!
The Following User Says Thank You to GXGOW For This Useful Post: [ View ] Gift GXGOW Ad-Free
10th October 2015, 06:28 PM |#11  
1ceb0x's Avatar
OP Senior Member
Flag The Earth
Thanks Meter: 6,450
 
More
Quote:
Originally Posted by GXGOW

The permissions are correct, but apparently there was an issue with the Terminal app I was using gaining root access. It's working now! I've also successfully applied it on my G Pad 8.3 and so far, the memory footprint of GPS has shrunk enormously! Will report back on battery life later.

Thanks for creating this script!

Can you please check if your location still works properly? Mine still works and it shows my location but I need second thoughts. Thanks!

Sent from my A0001 using Tapatalk
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes