..

jeudi 19 mars 2015

CarbonRom wakelock SystemUpdateService Fix topic


My phone had a constant wakelock. After doing more research I found that it is because of a recent update to Google Play Services. The Cyanogenmod fix is here:
http://review.cyanogenmod.org/#/c/91021/

The fix I used was to enable the service at startup.
Yes, I said enable :). The service should be enabled. Only the receivers should be disabled. See the above link for details.
  1. Install Script Manager (SManager) from Play Store. https://play.google.com/store/apps/d....scriptmanager.

  2. Enable Browse as root in SManager (Advanced > Configuration).

  3. From SManager, create a script in /data/local/ called 'startsysupservice' with the single line:
    su -c "pm enable com.google.android.gms/.update.SystemUpdateService

  4. Mark the following options: Su, Boot, Bg.

  5. Hit Save. Reboot the phone.


Whenever the phone boots up, it will start the service which should stop the wakelock. It may take a few minutes before the script is run, but eventually the service will start. You can use the 'Disable Service' app to check that it worked.
It would be nice if the Cyanogenmod fix in the link above could be merged into CarbonRom and other ROMs for future releases, but I wanted to share this workaround. I have P769 with CarbonRom.

xda-developers