Question

Trying to improve my terminal application on Android.

And need to take Wakelock there.

So, how to take Wakelock from shell command on Android.

Was it helpful?

Solution

shell command to acquire a wake lock

  echo lock_me > /sys/power/wake_lock

shell command to release the same wake_lock

  echo lock_me > /sys/power/wake_unlock
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top