Usage Install the Termux:Boot app. Go to Android settings and turn off battery optimizations for Termux and Termux:Boot applications. Start the Termux:Boot app once by clicking on its launcher icon. ... Create the ~/. ... It is helpful to run termux-wake-lock as first thing to prevent the device from sleeping.