yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] danielkzlai:
[MENTION=4752299]Alcolawl[/MENTION]

Thanks for the script, it really worked. But only manually every time I boot. I placed it in the init.d folder but somehow it doesn't run by itself.

I'm using CM11, KitKat 4.4.4

Below are the files in my init.d and the init.d script based on some of the replies in the thread. Permissions are set to 755 and owner and group are both root.

I'm following Method 1 but it doesn't run by itself despite being in init.d. Would you mind helping to troubleshoot please?

View attachment 3408895

View attachment 3408896
[Nexus 5 General] Alcolawl:
The kernel you're using needs to support Init.d scripts. If it doesn't, they won't run at startup. Which kernel are you using with CM11?
[Nexus 5 General] danielkzlai:
I'm using the kernel below that comes with CM11.

I've even used an app called init.d toggler with a free version of busybox to enable it. Did I do something wrong?

Also thanks a lot for helping out a newbie like me! Really appreciate it as you must have a lot to do as a senior member.

Edit: I've tried to verify if I have init.d with this method [http://xdaforums.com/showthread.php?t=1933849] and it runs. Idk why the scripts didn't work. The permissions are 755

View attachment 3409441
[Nexus 5 General] Alcolawl:
Not a problem at all :)

Also, it seems other people had a similar issue getting this to work in CM 11. Check this dude's post, I think he got it to work. Might be a matter of syntax. http://xdaforums.com/showpost.php?p=59692879&postcount=28
[Nexus 5 General] bigknowz:
Play Services Drain is back

Spoke too soon in my last post. Ran the script and in Privacy settings, both Google Play Services and Google App can not wake or use location. Location is Battery Savings. Looks like the problem is ALARM_WAKEUP_LOCATOR. Attached a screenshot from BBS. Any feedback appreciatged.
[Nexus 5 General] danielkzlai:
Okay I fixed the problem with a method that's not mentioned. I'll go through the steps of failing and how I succeeded.

Apps used: X-plore (not compulsory), Root Explorer (compulsory), Terminal Emulator (duh), Disable Service (More useful to check if SystemUpdateService service for Google Play services is enabled or not, it's disabled by default if you have this problem.), ROM Toolbox Lite (How i fixed the problem)

1) Pasted the (.sh) file into init.d, didn't work. (Method 1), check if init.d works for your system [http://xdaforums.com/showthread.php?t=1933849]

2) Made an init.d following this thread [http://xdaforums.com/showthread.php?t=2326585] (Noob friendly!), didn't work. Let's call this script 99 (Hey at least you learned)

3) Tried to use (su, chmod 777 filename) command in T.Emulator to change permissions for the 99 script, but it kept giving me 'Read-only system file (Pic attached below)

4) Bought Root Explorer, checked the permissions for 99 script and changed it to 755, rebooted and didn't work. Changed to 777, rebooted and didn't work

5) Downloaded Disable Service, and enabled SystemUpdateService in Google Play services manually for now.

6) Checked and ran the script using (su, /etc/init.d/fixUpdateService.sh) and it ran, showing that the script has no problem

7) Checked ROM Toolbox Lite and saw a section called Scripter. Hmm wonder what it does? Clicked in and it basically allows you to run script files, and even set them at boot! So I added the 99 script file in and set it to run at boot. Fixed.

View attachment 3412314

View attachment 3412315

View attachment 3412316

View attachment 3412317
[Nexus 5 General] luisaosan:
big thanks! i was using the "tasker apk" method but it was really annoying to run the app everytime i rebooted the phone, and i wasn't going to buy tasker just for this (i don't have another use for tasker besides that one, well at least atm) so this method is pretty much everything that i(and probably others) needed. :D
[Nexus 5 General] bigknowz:
Nlp wakelock

This post talks about disabling

com.google.android.gms/com.google.android.location.network.NetworkLocationService

com.google.android.gms/com.google.android.location.fused.NlpLocationReceiverService

Is it possible to edit fixUpdateService.sh to incorporate these items?
[Nexus 5 General] Delthad:
This did the trick for me:

1) Go to Settings / Apps.

2) Swipe down until you find Google Play services. Tap on it. Tap on "Uninstall updates". (disable first before you can uninstall updates)

3) Go to play store and update Google Play services.

4) Reboot
[Nexus 5 General] Alcolawl:
Disabled? Yeah, it's easy, just add two extra lines:

echo "Disabling SystemUpdateService Battery Drain"
su -c pm enable com.google.android.gms/.update.SystemUpdateActivity
su -c pm enable com.google.android.gms/.update.SystemUpdateService
su -c pm enable com.google.android.gms/.update.SystemUpdateService$ActiveReceiver
su -c pm enable com.google.android.gms/.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gms/.update.SystemUpdateService$SecretCodeReceiver
su -c pm enable com.google.android.gsf/.update.SystemUpdateActivity
su -c pm enable com.google.android.gsf/.update.SystemUpdatePanoActivity
su -c pm enable com.google.android.gsf/.update.SystemUpdateService
su -c pm enable com.google.android.gsf/.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gsf/.update.SystemUpdateService$SecretCodeReceiver
[B]su -c pm disable com.google.android.gms/com.google.android.location.network.NetworkLocationService
su -c pm disable com.google.android.gms/com.google.android.location.fused.NlpLocationReceiverService[/B]
echo "Script Execution Successful"
[Nexus 5 General] bigknowz:
nlp wakelock

getting Error component does not exist

com.google.android.location.fused.NlpLocationReceiverService

so I decompiled Play Services, the wakelock killing my phone is ALARM_WAKEUP_LOCATOR

went into the smali/com/google/android directory and searched for the term, output was:

location\os\real\ab.smali: const-string v2, "ALARM_WAKEUP_LOCATOR"

location\os\real\ax.smali: const-string v4, "ALARM_WAKEUP_LOCATOR"

location\os\real\z.smali: const-string v7, "ALARM_WAKEUP_LOCATOR"

location\reporting\a\a.smali: const-string v1, "com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR"

There is no directory com/google/android/gms/nlp .Closest I could find was

com.google.android.location.clientlib.NlpLocation

still getting Error component class does not exist in script manager. Thoughts appreciated.
[Nexus 5 General] NewBee3:
Try this for init.d to work

If your current kernel supports init.d scripts, but the script in OP doesn't work for you?

Do this: Add Sleep command in the script to get it work. Sleep for 60 seconds helped my case. Just add a line - "Sleep 60" using editor, so that the script looks like.

sleep 60
echo "Disabling SystemUpdateService Battery Drain"
su -c pm enable com.google.android.gms/.update.SystemUpdateActivity
su -c pm enable com.google.android.gms/.update.SystemUpdateService
su -c pm enable com.google.android.gms/.update.SystemUpdateService$ActiveReceiver
su -c pm enable com.google.android.gms/.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gms/.update.SystemUpdateService$SecretCodeReceiver
su -c pm enable com.google.android.gsf/.update.SystemUpdateActivity
su -c pm enable com.google.android.gsf/.update.SystemUpdatePanoActivity
su -c pm enable com.google.android.gsf/.update.SystemUpdateService
su -c pm enable com.google.android.gsf/.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gsf/.update.SystemUpdateService$SecretCodeReceiver
echo "Script Execution Successful"

It seems the script is actually enabling the services during boot, but the original rom is disabling them in boot. So delaying the script execution by some time (60 seconds) is helping our case. Give it a try.;)
[Nexus 5 General] Paget96:
In L Speed tweak/mod I set it to 40 and work for everyone ;)

Also I made a little changes in whole script
[Nexus 5 General] OP71cFU51On:
My efforts with galaxy s4 on CM11 kitkat 4.4.4

For those of you with custom ROMs that support init.d scripts, I have gone over this whole thread and looked at many others without any individual post offering much success. After troubleshooting each of my issues I have come up with the following script and hope it works for some of you as well as it has for me:

#!/system/bin/sh
if [ -e /data/InitD.log ] ; then
rm /data/InitD.log
fi

exec &> /data/InitD.log
sleep 120

echo "Disabling SystemUpdateService Battery Drain"
echo "executed on $(date +"%d-%m-%Y %r")"
pm enable com.google.android.gms/.update.SystemUpdateService
pm disable com.google.android.gms/.update.SystemUpdateService
echo "Script Execution Successful"

Using File Explorer, save this script in the /etc/init.d folder (as root without .sh extension) and set the following permissions properties:

Owner = root

Group = shell

Permission = 755 (Owner RWX, Group RX, Others RX)

If all was done correctly the service becomes disabled again as soon as the phone reboots. We place this script in the init.d folder so the script runs automatically every time the phone boots. For troubleshooting the script creates a log file under root/data so you can determine if it has run and if it was successful (no errors not just the last success echo). You may wish to fine tune the sleep time but i found that 2 minutes gave everything a chance to load (specifically the package manager) and offered consistent success.

I've also read that some people have had problems with creating the script file. If that's an issue just download the attachment from the original post, save that in the correct location and update it's contents accordingly. Also, I don't claim to be a pro at shell scripting so if improvements can be made by all means go right ahead but so far this has worked for me.
[Nexus 5 General] Iceman:
I would lilke to thanks for you script, successfully and come wit the InitD.log:fingers-crossed:
[Nexus 5 General] OP71cFU51On:
Good stuff
[Nexus 5 General] on&off:
Correction of Package Name Reference

I think for better compatibility (it did not work at all for me otherwise)

su -c pm enable com.google.android.gms/.update.SystemUpdateService

should be written as

su -c pm enable com.google.android.gms/com.google.android.gms.update.SystemUpdateService

and

su -c pm enable com.google.android.gsf/.update.SystemUpdateActivity

should be written

su -c pm enable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateActivity

Note the extra com.google.android.gsf after the /

You'll have to do this for all of the lines

Also, the Sleep 240 is necessary, to run after Boot from Init, because the System Service Manager has to be loaded before this is run. 240 seconds seems to be a safe amount of time for longer boots, but you can adjust as per your requirements.
[Nexus 5 General] [Gorgasm]:
Hi :)

I'm not a developper, but I tried something with different informations I found in this thread, and as a result SystemUpdateService stays enabled, but only for Google Play Services, not Framework. I probably made a mistake, if someone can have a look :

#!/system/bin/sh
if [ -e /data/InitD.log ] ; then
rm /data/InitD.log
fi

exec &> /data/InitD.log
sleep 60

echo "Disabling SystemUpdateService Battery Drain"
su -c pm enable com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity
su -c pm enable com.google.android.gms/com.google.android.gms.update.SystemUpdateService
su -c pm enable com.google.android.gms/com.google.android.gms.update.SystemUpdateService$ActiveReceiver
su -c pm enable com.google.android.gms/com.google.android.gms.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gms/com.google.android.gms.update.SystemUpdateService$SecretCodeReceiver
su -c pm enable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateActivity
su -c pm enable com.google.android.gsf/com.google.android.gsf.update.SystemUpdatePanoActivity su -c pm enable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService
su -c pm enable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService$Receiver
su -c pm enable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService$SecretCodeReceiver
echo "Script Execution Successful"

Thanks !
[Nexus 5 General] OP71cFU51On:
Hey Gorgasm can you post the contents of your log file so we can see if there was anything that wasn't recognised

Cheers
[Nexus 5 General] [Gorgasm]:
Here the contents of the InitD.log

Disabling SystemUpdateService Battery Drain
Component {com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity} new state: enabled
Component {com.google.android.gms/com.google.android.gms.update.SystemUpdateService} new state: enabled
Component {com.google.android.gms/com.google.android.gms.update.SystemUpdateService} new state: enabled
Component {com.google.android.gms/com.google.android.gms.update.SystemUpdateService} new state: enabled
Component {com.google.android.gms/com.google.android.gms.update.SystemUpdateService} new state: enabled
Component {com.google.android.gsf/com.google.android.gsf.update.SystemUpdateActivity} new state: enabled
Component {com.google.android.gsf/com.google.android.gsf.update.SystemUpdatePanoActivity} new state: enabled
Component {com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService} new state: enabled
Component {com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService} new state: enabled
Script Execution Successful

Thanks a lot !

Sent from my Nexus 5 with Tapatalk
[Nexus 5 General] Juzman:
I just used the init.d script from here, as it seems to disable more stuff too.

http://xdaforums.com/nexus-6/general/script-reduce-google-play-services-t3171224
[Nexus 5 General] BillyHW:
Google play services has been updated 8.1.15 and at least some people are finding that it fixes the wakelock issues. Please see:

http://xdaforums.com/android/general/google-play-services-battery-drain-fix-t3197913
[Nexus 5 General] DuhCiphered:
Thanks!

Just had to pop in and say thanks for the script. I was about to throw my phone against a brick wall trying to troubleshoot the battery drain. Then I decided to give this script a try, and it worked! I stuck it in the init.d folder, (method #1), on my SCH-I535 Samsung Galaxy SIII running Alliance Rom 23 and rebooted. For some reason the battery drain was still there for about the first twenty minutes or so but then it leveled off and has been working great since then.

This script even improved my love life, less time with the phone more with the lady. :silly:
[Nexus 5 General] Hache001:
it didn't for me in CM11 M12 on mako. I am trying to figure out the best method to execute the script on start. The manual method with "Disable Service" app worked...
[Nexus 5 General] PePeMoke:
Same bug, different device

[MENTION=4752299]Alcolawl[/MENTION] or maybe other who might know:

experiencing the same battery drain caused by gps on my gt-i9000 with cm11 installed and latest gapps 4.4 micro.

different (newer) gps version but same bug.

will this fix work too? (method1)

or do I better try this?

http://xdaforums.com/general/general/fix-fix-systemupdateservice-wakelock-t3060548
[Nexus 5 General] niix:
it breaks notifications

Hello everybody,

unfortunately google didn''t fix anything on my device. The wakelock is still there and very annoying!

so I decided to give this script a try. It does fix the waelock nicely but it breaks notifications on my device (Moto E running on CM11 unofficial from percy).

Notification don't arrive instantly when phone is asleep. They usually arrive within 60 seconds but it can take a few minutes.

It completely breakes WhatsApp offline notifications. When the phone has been offline for a while, and a bunch of messages has been sent to that account, when the phone gets online, notifications start arriving (not even all together) reporting receiving timestamp instead of sending timestamp. The messages also get grouped mostly by sender, and this obviously makes whatsapp unusable. Messages will get stuck in the cloud and some of them will keep arriving even after a few hours the phone got online. The funny thing is that Whatsapp remains broken even after disabling the script or even by CHANGING PHONE!!! It fill fix itself after a few days probably... I realized this was caused by this script when it broke a second whatsapp account (I passed the moto E to my mother and it broke her Whatsapp account too!!).

And the problem with broken whatsapp notifications persisted on my new moto G 2015 running on stock ROM!

Nobody experienced this?

This is the script modification I run. (it would return errors if run with su)

sleep 60
echo "Disabling SystemUpdateService Battery Drain"
pm enable com.google.android.gms/.update.SystemUpdateActivity
pm enable com.google.android.gms/.update.SystemUpdateService
pm enable com.google.android.gms/.update.SystemUpdateService$ActiveReceiver
pm enable com.google.android.gms/.update.SystemUpdateService$Receiver
pm enable com.google.android.gms/.update.SystemUpdateService$SecretCodeReceiver
pm enable com.google.android.gsf/.update.SystemUpdateActivity
pm enable com.google.android.gsf/.update.SystemUpdatePanoActivity
pm enable com.google.android.gsf/.update.SystemUpdateService
pm enable com.google.android.gsf/.update.SystemUpdateService$Receiver
pm enable com.google.android.gsf/.update.SystemUpdateService$SecretCodeReceiver
echo "Script Execution Successful"
[Nexus 5 General] cthuluhoop123:
Working for 5x?
[Nexus 5 General] Marília de Oliveira:
I am using microsoft translator and I can not get translations. you know tell me which line of wakelock responsible for the translation? Thank you!
[Nexus 5 General] EZY-E:
My fix: removing google play and play services, nothing drains battery anymore and no problems with getting apps (apkmirror).

I should done this way earlier.
[Nexus 5 General] pandji pras:
Is this script is still useful?
[Nexus 5 General] Paz9:
How do you get notifications? (Gcm push) and use gps with play services
[Nexus 5 General] santi1993:
m i c r o g

Pure CAF @ crLOS14.1
[Nexus 5 General] Paz9:
where can i download?

edit: cant get it to work, says error file is corrupted while installing? is there a guide soemwhere?
[Nexus 5 General] santi1993:
u need a rom that supports spoofing, go to the microg thread, is a flashable zip with the app.as a system app and playstore with permissions and path.

Pure CAF @ crLOS14.1
[Nexus 5 General] Paz9:
thanks

i cant seem to find it :(

only reference to flashable zip from wdevil12
[Nexus 5 General] Zander_Sig:
Nexus 5 (OS 4.4.4) -- GPS is eating 45% of my battery

Hello all, I have a Nexus 5 (OS 4.4.4) and GPS is eating 45% of my battery all the time since it was updated! Is there anyway we can install the version that was before this update?

If so can someone give me the version number that I need?

I started using "Disable Services" app a long time ago do that I could get rid of the notification that I need to update my phone. It was working great!

Somehow though a few days ago my Chrome app was updated and I lost all my open tabs! Ughh!

I would rather just install the version of GPS that was working fine... And then turn off all the updates with "Disable Services"app.

I don't see how they have permission to update what they want when I have "Do not update" set to yes in the Google Play Store! Grrrr it makes me mad!

Can someone give me a short list from say March 2017 back to January of the different versions of Google Play Services? I just don't want to install the wrong version of Google Play Services for my Nexus 5 (that I bought from the Google Play Store) and mess it up big time! I'm rooted BTW...

TIA
[Nexus 5 General] Zander_Sig:
Need a list of all the Google Play Services app that works with my Nexus 5

Hey guys, can someone please help me?

Stupid Google has updated their Google Play Services and it is killing my battery!

I want to go back a version or two to where it was working great and I could use the app called "Disable Services". I used DS to turn off the constant "Update System" notification.

Now with this new Google Play Services it will not let my phone go into deep sleep mode (which in turn would save my battery). Now Google Play Services constantly checks for updates even if you turn it off with the "Disable Services" app. It's killing my battery. In like 2 hours my battery will go to 45% for "Google Play Services".... If I start using my phone or playing a game in about 30 minutes my phone battery will be dead!

What I need is a short list of all the different versions of "Google Play Services" that will work with my phone.

I'm using a Nexus 5 (unlocked and bought from the Google Play Store) it is rooted and I'm on Android OS 4.4.4

I would hate to install an incompatable version that is not made for my phone and it completely screws the pooch and I would have to start all over again to get my phone back working.

Thanks guys!
[Nexus 5 General] santi1993:
m i c r o g pms answered
[Nexus 5 General] Zander_Sig:
Huh?

What in the world does that mean? :)
[Nexus 5 General] santi1993:
let services proxys emulate google services, using the apks without using play services.
[Nexus 5 General] Naman12811:
Broo..... Thanks a lot, you just saved me, I was looking for the solution from 3 days. Non of your method worked for me (sorry to say) but it gave me an idea to solve the problem, I just used 3C task manager and looked for the update service, there were 3, I disabled them all one by one and every this is fine now
[XDA Assist] selloumi:
I've an HTC One M7 Rooted and Unlocked ,it doesn"t boots to system .I've do reset factory so nothing.It stays in white screen " HTC one " . Can you help me ?

Thanks
[XDA Assist] Heisenberg:
Hi :)

Thanks for writing to us at XDA Assist. Without knowing how this happened it's impossible to help properly, please provide as many details as possible as to how it goes into this state.
[Note Edge Q&A, Help & Troubleshooting] m_reyna_16:
My phone screen went blank and i had pictures in private mode... is there any way to get them? maybe through adb or something like that?
[Note Edge Q&A, Help & Troubleshooting] raynan:
As long as your phone is actually booting completely, adb would work. You could also install sidesync from a browser and try that.
[XDA Assist] jvang1995:
I just downloaded the Xposed Installer and I am trying to install the FRAMEWORK.

But when try to install this pops up. please help!!!!
[XDA Assist] Heisenberg:
Hi :)

Thanks for writing to us at XDA Assist. You need to provide more information please. What phone? Rooted or not? Stock ROM or custom ROM? Anything else that might seem relevant.
[Galaxy Note 4 Q&A, Help & Troubleshooting] aew0314:
I'm using a unlocked N910U on Rogers and I always seem to only have 1 or 2 bars phone signal. I consistently have 4G data connection but very poor cell signal, anyway to improve my signal?
[Galaxy Note 4 Q&A, Help & Troubleshooting] homer285:
Did you try standing on one foot with the phone raised high in the air?

All pun aside, it could be the telco, I switched recently and have noticed a huge difference in cell reception with U model. Also check your APN settings.
[Galaxy Note 4 Q&A, Help & Troubleshooting] aew0314:
I will check and see if there's anything in the APN that needs adjusting.

I remember on my galaxy s3 I had update my modem or baseband or something and that improved my cell reception, is there anything like that I can do on my note 4?
[JAMin, XDA Neo, S200 General] DrEvil22:
Hi all,

I bought a new battery for my o2 XDA Neo on ebay, the description was as follows:

POLYMER AKKU 2400mAh Qtek S200 S100 XDA Mini NEO_PM16A.

But the battery does not fit?!?

What's wrong?

Thanx in advance for your help.

Gunnar
[JAMin, XDA Neo, S200 General] NetrunnerAT:
What doesnt Fit? Make Picture what else ... i have a 2400mAh Batterie Kit and it works. But i think i sell it soon for less bugs and buy the 1800mAh Version.
[JAMin, XDA Neo, S200 General] DrEvil22:
picture of battery

Ok, I added a picture of the battery, it is too thick ...

Did the seller send me the wrong battery? I thought the battery for an Qtek 200 is the same as for the O2 XDA Neo.

Any help is appreciated!

Thanx

Gunnar