termux-login

The script secures your Termux against unauthorized access by scanning fingerprints and or requesting a password.

release date: 2025-03-16

view on GitHub

about

Termux is a powerful tool with access to network parameters, device identification data, SMS, notifications, and more. It is worth securing it.

The termux-login.sh script is a script that, by default, already exists in Termux from the moment of installation (but it is empty). My version provides identity verification before loading the shell, which means no one but you will be able to use your Termux!

features

The main purpose of the script is to provide comprehensive protection against unauthorized logins to Termux. The script achieves this goal through proper verification.

Upon launching Termux, the script will first ask you to place your finger on the fingerprint scanner — three times. If everything goes well, you will be granted access to Termux. However, if fingerprint verification fails three times, the script will ask for the password you set as the final stage of verification.

If login fails, the script will trigger a loud notification on the device, take a photo using the front camera, and then close Termux, logging all events to a file in the Termux home directory.

WARNING! Improper environment configuration may result in the script completely blocking your access to Termux. Be sure to carefully read the documentation on GitHub and review the script content before installation!

compatibility

The script is fully compatible with Termux and Termux:API — I use it personally. Proper configuration of both packages and the Termux environment is very important. Please read the description in the GitHub repository carefully.