[Workaround] Make emulator take wake lock on startup

bug: 32431331

Otherwise, we can NX most of the CTS tests if the
AVD ever goes into suspend mode.

This is to be superseded by proper suspend/resume support.

Change-Id: Ifa19c21fc48269b09c64059907eee43d2d5c7d4d
diff --git a/init.ranchu.rc b/init.ranchu.rc
index 6a1f3ea..09d6a90 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -61,6 +61,10 @@
     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 goldfish-setup /system/etc/init.goldfish.sh
     user root
     group root wakelock