blob: e6c9de4e6ed136f749639198e0a89a282d49eaea [file] [log] [blame]
#!/vendor/bin/sh
#init cannot access ro.kernel.android.bootanim,
#so do a translation into vendor.qemu space
bootanim=`getprop ro.kernel.android.bootanim`
case "$bootanim" in
"")
;;
*) setprop vendor.qemu.android.bootanim 0
;;
esac
# take the wake lock
allowsuspend=`getprop ro.kernel.qemu.allowsuspend`
case "$allowsuspend" in
"") echo "emulator_wake_lock" > /sys/power/wake_lock
;;
1) echo "emulator_wake_lock" > /sys/power/wake_unlock
;;
*) echo "emulator_wake_lock" > /sys/power/wake_lock
;;
esac