Termux Device Control

Quick controls for Termux:API, plus a terminal for advanced commands.

Ready. Termux:API must be installed on the Android device.

Quick controls

Flashlight

Toggle the device torch LED.

Vibrate

Vibrate for a chosen duration and force.

Text to speech

Speak text through the Android TTS engine.

Toast message

Show a short Android popup message.

Battery status

Read charge, temperature, health, and power state.

Location

Request the last known network or GPS location.

Clipboard

Read the Android clipboard or set it to text.

Wi-Fi

Inspect the connection or enable/disable Wi-Fi.

Termux:API command catalog

These are the command-line utilities commonly provided by the official Termux:API add-on. Some require Android permissions, hardware, or an interactive prompt.

  • termux-battery-statusBattery information
  • termux-brightnessSet screen brightness
  • termux-call-logRead call history
  • termux-camera-infoList camera capabilities
  • termux-camera-photoTake a photo

    Usage: termux-camera-photo [-c camera-id] output-file

    • output-file required — destination path, such as ~/storage/dcim/photo.jpg
    • -c camera-id optional — camera number; use 0 for the default camera or 1 for another camera when available
  • termux-clipboard-get/setRead or write clipboard
  • termux-contact-listRead contacts
  • termux-dialogShow an Android dialog
  • termux-downloadDownload with Android manager
  • termux-fingerprintFingerprint authentication
  • termux-infrared-frequenciesList IR frequencies
  • termux-infrared-transmitTransmit infrared
  • termux-job-schedulerSchedule a script
  • termux-locationRead device location
  • termux-media-playerPlay or control media
  • termux-media-scanScan media files
  • termux-microphone-recordRecord from microphone
  • termux-notificationPost a notification
  • termux-notification-removeRemove a notification
  • termux-sensorRead sensor data
  • termux-shareShare text or files
  • termux-sms-list/sendRead or send SMS
  • termux-storage-getPick a file
  • termux-telephony-callStart a phone call
  • termux-telephony-cellinfoCell information
  • termux-telephony-deviceinfoPhone information
  • termux-toastShow a toast
  • termux-torchToggle flashlight
  • termux-tts-enginesList TTS engines
  • termux-tts-speakSpeak text
  • termux-usbInspect USB devices
  • termux-vibrateVibrate the device
  • termux-volumeChange audio volume
  • termux-wallpaperSet wallpaper
  • termux-wifi-connectioninfoWi-Fi connection info
  • termux-wifi-enableEnable or disable Wi-Fi
  • termux-wifi-scaninfoRead the last Wi-Fi scan

    Usage: termux-wifi-scaninfo

    This reads the most recent scan performed by Android. Termux:API does not provide an official command to start a new Wi-Fi scan. Wi-Fi and location permissions may be required.

Advanced terminal

Termux control ready. Commands run as the non-root Termux user. Use the catalog above for available Termux:API commands.