2016-12-04 03:39:12 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ $# != 0 ]; then
|
|
|
|
echo 'usage: termux-wake-lock'
|
|
|
|
echo 'Acquire the Termux wake lock to prevent the CPU from sleeping.'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
am startservice \
|
|
|
|
--user 0 \
|
2022-05-11 18:20:56 +02:00
|
|
|
-a me.sergiotarxz.openmg.x11.service_wake_lock \
|
|
|
|
me.sergiotarxz.openmg.x11/me.sergiotarxz.openmg.x11.app.TermuxService \
|
2016-12-04 03:39:12 +01:00
|
|
|
> /dev/null
|