summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbohu <bohu@google.com>2017-12-14 21:03:50 -0800
committerbohu <bohu@google.com>2017-12-24 19:20:51 -0800
commitf1fa591f4936bd1da0ef414ac49171dba6b276e8 (patch)
treebf3b4999c313286d9a668c2c3fd73e20d8de7d92
parentbc249f99b8ef3f226cf23795a5e7c0a59a0372fd (diff)
downloadgoldfish-f1fa591f4936bd1da0ef414ac49171dba6b276e8.tar.gz
goldfish: re-enable emualtor to grab wake_lock
Previous CL mistakenly disabled it, re-enable it. This also fixed the timeout during CTS test, because the device is falling into suspension. BUG: 70510505 Change-Id: Id09a8480545de55db66d784e22dbbd1319a0007a
-rwxr-xr-xinit.ranchu-core.sh2
-rw-r--r--init.ranchu.rc11
2 files changed, 3 insertions, 10 deletions
diff --git a/init.ranchu-core.sh b/init.ranchu-core.sh
index befac8ea..e255cdba 100755
--- a/init.ranchu-core.sh
+++ b/init.ranchu-core.sh
@@ -43,4 +43,4 @@ esac
# take the wake lock
-#echo "emulator_wake_lock" > /sys/power/wake_lock
+echo "emulator_wake_lock" > /sys/power/wake_lock
diff --git a/init.ranchu.rc b/init.ranchu.rc
index d5caf4a2..9cc1a8a7 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -14,11 +14,8 @@ on post-fs-data
on boot
- #grab wake_lock
- echo "emulator_wake_lock" > /sys/power/wake_lock
- setprop net.eth0.gw 10.0.2.2
- setprop net.eth0.dns1 10.0.2.3
- setprop net.gprs.local-ip 10.0.2.15
+ chown root system /sys/power/wake_lock
+ chown root system /sys/power/wake_unlock
setprop ro.radio.use-ppp no
setprop ro.build.product generic
setprop ro.product.device generic
@@ -70,10 +67,6 @@ on property:qemu.adbd=start
start adbd
start goldfish-logcat
-# allow goldfish-setup to take wake lock
- chown root system /sys/power/wake_lock
- chown root system /sys/power/wake_unlock
-
service ranchu-setup /vendor/bin/init.ranchu-core.sh
class core
user root