Termux:API

Termux:API

Access Android functions from Termux

Tarek Sander Development System

Description

Expose basic Android functionality like sending SMS or accessing GPS data to the
https://f-droid.org/packages/com.termux app. This is an add-on which requires that the main Termux app is
installed to use.

* Read and send sms messages from your terminal.
* Access device GPS location sensor from scripts.
* Pipe the result of commands into the device text-to-speech engine.
* Vibrate the device when something interesting happens.
* Access the system clipboard from shell scripts.
* List contacts from the system contact list.

Besides installing this app an additional package is required to install inside
Termux:

$ apt install termux-api

Versions

Version Date Size Requires Android Download
0.53.0 current
4497dbbf81906df5…
2025-09-06 3.8 MB API 24
0.52.0
baa2976c892ce94b…
2025-05-29 3.8 MB API 24
0.51.0
1c3170e8c70664bf…
2025-04-05 3.5 MB API 24

Permissions

What the app asks the system for. Android only grants sensitive access after you confirm it.

  • Location in backgroundDetermine the location while the app is not open.
  • Approximate locationDetermine the location via the network.
  • Precise locationDetermine the location via GPS.
  • Network stateCheck whether and how the device is connected.
  • Wi-Fi stateRead information about the Wi-Fi connection.
  • BODY_SENSORS
  • Place callsCall phone numbers without asking again.
  • CameraTake photos and videos.
Show 27 more permissions
  • Change Wi-FiTurn Wi-Fi on and off or switch networks.
  • Internet accessSend and receive data over the internet.
  • Full file accessAccess all files on the device.
  • NFCExchange data via near field communication.
  • READ_CALL_LOG
  • Read contactsAccess the address book.
  • Phone stateDetect ongoing calls and read device information.
  • READ_PRIVILEGED_PHONE_STATE
  • Read SMSRead text messages.
  • Read storageRead files on the device storage.
  • Run at startupStart automatically after the device is switched on.
  • MicrophoneRecord audio.
  • REQUEST_DELETE_PACKAGES
  • REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
  • Install appsStart the installation of other apps.
  • Send SMSSend text messages (may cost money).
  • SET_WALLPAPER
  • Display over other appsDraw content on top of other apps.
  • TRANSMIT_IR
  • BiometricsUnlock with fingerprint or face.
  • VibrationControl the vibration alert.
  • System settingsChange system settings.
  • Write storageCreate and change files on the device storage.
  • DUMP
  • PACKAGE_USAGE_STATS
  • FingerprintUnlock with a fingerprint.
  • api.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION

Comments