top of page
Teacher Helping Student

Join programmerboy0101

Educational Inspiration

Termux-API
What is Termux-API ?
termux-api is a python module to access the termux-api This provides a way to get native access in Python to Android device functionality as API. Most of the termux-api implementations are directly available. The API. generic() method gives direct access to any other method that has not yet been implemented.

Installation
https://f-droid.org/repo/com.termux.api_51.apk
pkg install termux-api
termux-battery-status: Get the status of the device battery.
termux-brightness: Set the screen brightness between 0 and 255
for Example: termux-brightness 99
termux-call-log: List call log history.
termux-camera-info: Get information about device camera(s).
termux-camera-photo:Take a photo and save it to a file in JPEG format.
termux-clipboard-get: Get the system clipboard text.
termux-clipboard-set: Set the system clipboard text.
termux-contact-list: List all contacts.
termux-dialog: Show a text entry dialog.
termux-download: Download a resource using the system download manager.
termux-fingerprint: Usefingerprint sensor on device to check for authentication.
termux-infrared-frequencies: Query the infrared transmitter's supported carrier frequencies.
termux-infrared-transmit: Transmit an infrared pattern.
termux-job-scheduler: Schedule a Termux script to run later, or periodically.
termux-location: Get the device location.
termux-media-player: Play media files.
termux-media-scan: MediaScanner interface, make file changes visible to Android Gallery.
termux-microphone-record: Recording using microphone on your device.
termux-notification: Display a system notification.
termux-notification-remove: Remove a notification previously shown with termux-notification --id.
termux-sensor: Get information about types of sensors as well as live data.
termux-share: Share a file specified as argument or the text received on stdin.
termux-sms-list: List SMS messages.
termux-sms-send: Send a SMS message to the specified recipient number(s).
For Example
termux-sms-send -n +77676765656775 <text>
termux-storage-get: Request a file from the system and output it to the specified file.
termux-telephony-call: Call a telephony number.
termux-telephony-cellinfo: Get information about all observed cell information from all radios on the device including the primary and neighboring cells.
termux-telephony-deviceinfo: Get information about the telephony device.
termux-toast: Show a transient popup notification.
termux-torch: Toggle LED Torch on device.
termux-tts-engines: Get information about the available text-to-speech engines.
termux-tts-speak: Speak text with a system text-to-speech engine.termux-usb: List or access USB devices.
termux-vibrate: Vibrate the device.
termux-volume: Change volume of audio stream.
termux-wallpaper: Change wallpaper on your device.
termux-wifi-connectioninfo: Get information about the current wifi connection.
termux-wifi-enable:Toggle Wi-Fi On/Off.
termux-wifi-scaninfo: Get information about the last wifi scan.
Take photo from camera: termux-camera-photo [-c camera-id] output-file.
For Example:
termux-camera-photo -c 1 example.jpeg.

Download any file from web: termux-download [-d description] [-t title] [-p path] url-to-download.


About the Author
Yousuf Shafi'i Muhammad is a junior Programmer and interested Coding.

Get In Touch
Home: Welcome
Search
Check back soon
Once posts are published, you’ll see them here.
Home: Blog2
Boys at School

“Teachers open the door, but you must enter by yourself.”

Chinese Proverb

Home: Quote

Contact

New York, NY, USA

123-456-7890

Thanks for submitting!

Home: Contact
bottom of page