Termux:API
Termux add-on that exposes Android device features to command-line
...It bridges the Linux-based Termux environment with Android hardware, sensors, and operating system services. Users can retrieve battery information, inspect network connectivity, obtain location data, and read supported device sensors. Multimedia capabilities include camera capturing, microphone recording, media playback, and text-to-speech synthesis. Additional commands provide clipboard access, notifications, vibration controls, and interactive dialogs. Its communication architecture uses Android broadcast receivers and local sockets to exchange data with command-line clients. ...