1#!/vendor/bin/sh 2 3#init cannot access ro.kernel.android.bootanim, 4#so do a translation into vendor.qemu space 5bootanim=`getprop ro.kernel.android.bootanim` 6case "$bootanim" in 7 "") 8 ;; 9 *) setprop vendor.qemu.android.bootanim 0 10 ;; 11esac 12 13# take the wake lock 14allowsuspend=`getprop ro.kernel.qemu.allowsuspend` 15case "$allowsuspend" in 16 "") echo "emulator_wake_lock" > /sys/power/wake_lock 17 ;; 18 1) echo "emulator_wake_lock" > /sys/power/wake_unlock 19 ;; 20 *) echo "emulator_wake_lock" > /sys/power/wake_lock 21 ;; 22esac 23