Skip to content

Commit

Permalink
Google play services wakelock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
javilonas committed Jun 15, 2015
1 parent 8935e88 commit c76d27c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ramdisk/init.post-boot.sh
Expand Up @@ -20,6 +20,7 @@ PATH=/sbin:/system/sbin:/system/bin:/system/xbin
export PATH

# Inicio
mount -o remount,rw -t auto /
mount -o remount,rw -t auto /system
mount -t rootfs -o remount,rw rootfs

Expand Down Expand Up @@ -159,7 +160,6 @@ sync

# Detectar si existe el directorio en /system/etc y si no la crea. - by Javilonas
#

if [ ! -d "/system/etc/init.d" ] ; then
mount -o remount,rw -t auto /system
mkdir /system/etc/init.d
Expand Down Expand Up @@ -215,6 +215,19 @@ while ! pgrep android.process.acore ; do
sleep 2
done

# Google play services wakelock fix
sleep 40
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"

mount -t rootfs -o remount,ro rootfs
mount -o remount,ro -t auto /system

mount -o remount,ro -t auto /

0 comments on commit c76d27c

Please sign in to comment.