termux-packages/packages/termux-tools/termux-wake-unlock

14 lines
265 B
Bash
Executable File

#!/bin/sh
if [ $# != 0 ]; then
echo 'usage: termux-wake-unlock'
echo 'Release the Termux wake lock to allow the CPU to sleep.'
exit 1
fi
am startservice \
--user 0 \
-a com.termux.service_wake_unlock \
com.termux/com.termux.app.TermuxService \
> /dev/null