Domanda

Trying to improve my terminal application on Android.

And need to take Wakelock there.

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

È stato utile?

Soluzione

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
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top