#!/vendor/bin/sh# 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