Flashlight
Toggle the device torch LED.
Quick controls for Termux:API, plus a terminal for advanced commands.
Ready. Termux:API must be installed on the Android device.
Toggle the device torch LED.
Vibrate for a chosen duration and force.
Speak text through the Android TTS engine.
Show a short Android popup message.
Read charge, temperature, health, and power state.
Request the last known network or GPS location.
Read the Android clipboard or set it to text.
Inspect the connection or enable/disable Wi-Fi.
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 informationtermux-brightnessSet screen brightnesstermux-call-logRead call historytermux-camera-infoList camera capabilitiestermux-camera-photoTake a photoUsage: 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 availabletermux-clipboard-get/setRead or write clipboardtermux-contact-listRead contactstermux-dialogShow an Android dialogtermux-downloadDownload with Android managertermux-fingerprintFingerprint authenticationtermux-infrared-frequenciesList IR frequenciestermux-infrared-transmitTransmit infraredtermux-job-schedulerSchedule a scripttermux-locationRead device locationtermux-media-playerPlay or control mediatermux-media-scanScan media filestermux-microphone-recordRecord from microphonetermux-notificationPost a notificationtermux-notification-removeRemove a notificationtermux-sensorRead sensor datatermux-shareShare text or filestermux-sms-list/sendRead or send SMStermux-storage-getPick a filetermux-telephony-callStart a phone calltermux-telephony-cellinfoCell informationtermux-telephony-deviceinfoPhone informationtermux-toastShow a toasttermux-torchToggle flashlighttermux-tts-enginesList TTS enginestermux-tts-speakSpeak texttermux-usbInspect USB devicestermux-vibrateVibrate the devicetermux-volumeChange audio volumetermux-wallpaperSet wallpapertermux-wifi-connectioninfoWi-Fi connection infotermux-wifi-enableEnable or disable Wi-Fitermux-wifi-scaninfoRead the last Wi-Fi scanUsage: 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.