Termux:API is a companion application for Termux that makes native Android functionality accessible to command-line programs and shell scripts. 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. Termux:API requires the corresponding command-line package and matching application signing certificates to ensure proper permission handling.
Features
- Native Android API integration for accessing device functionality through terminal commands and scripts
- Hardware and system information retrieval covering battery status, network connectivity, and device sensors
- Camera capturing, microphone recording, multimedia playback, and text-to-speech synthesis commands
- Location services and telephony information access through permission-controlled Android interfaces
- System interaction utilities supporting clipboard operations, notifications, vibration, and interactive dialogs
- Scriptable automation workflows with structured command output and local socket-based API communication