Hallow friends welcome to our Blog .In this article I'm going to talk about some useful commands of Termux-api.before starting I will give a brief introduction of API
What is an API
full from of API is application programming interface.An API acts as bridge between different softwares and devices.Best example of an API's work is like an waiter in a restaurant.
What is Termux-api
Termux is an Android application . Actually Termux is a Linux emulator for Android where user can use CLI commands like Kali Linux.And Termux-api is an intermediator between Android and Termux.Using Termux-api commands we can perform some task in our Android system.Like we can call ,msg,see battery status.turn on torch etc
How to install Termux-api
We can install Termux-api by two ways
1.From Google Play store:
We can download Termux-api from Google play store as same as other applications we download.After opening google Playstore we can search Termux-Api on search bar and then we can install it from here like other apps.
2.Using Termux:
Without Termux application we can't use Termux-api commands.So first install Termux application in your Android system and then enter the command
$ pkg install Termux-api
Then Termux API will be successfully installed in your Android system.And you can use Termux-api commands.
Termux-api command lists
After installing Termux and Termux API you can use the following commands which I have given below.
termux-audio-info
termux-battery-status
termux-brightness
termux-call-log
termux-camera-info
termux-camera-photo
termux-change-repo
termux-clipboard-get
termux-clipboard-set
termux-contact-list
termux-dialog
termux-download
termux-fingerprint
termux-fix-shebang
termux-info
termux-infrared-frequencies
termux-infrared-transmit
termux-job-scheduler
termux-keystore
termux-location
termux-media-player
termux-media-scan
termux-microphone-record
termux-nfc
termux-notification
termux-notification-list
termux-notification-remove
termux-open
termux-open-url
termux-reload-settings
termux-reset
termux-sensor
termux-setup-storage
termux-share
termux-sms-inbox
termux-sms-list
termux-sms-send
termux-speech-to-text
termux-storage-get
termux-telephony-call
termux-telephony-cellinfo
termux-telephony-deviceinfo
termux-toast
termux-torch
termux-tts-engines
termux-tts-speak
termux-usb
termux-vibrate
termux-volume
termux-wake-lock
termux-wake-unlock
termux-wallpaper
termux-wifi-connectioninfo
termux-wifi-enable
termux-wifi-scaninfo
To get more information about these commands you can
Some useful commands of Termux-api
1.termux-battery-status
Using this command you can see your present battery status
2.termux-contact-list
Using this command you can see your contact list s
3.termux-telephony-call
Using this command you can call someone
$ termux-telephony-call +91............
4.termux-speech-to-text
You can make your speeches to text using this command
5.termux-tts-speech
You can make voice from any text using this command
Termux-api python
If you are interested to use Termux-api commands using python then you have to install python in Termux by
$ pkg install python
Then use $ pip install subprocess
Then use a python script
import subprocess
os.system("termux-telephony-call +91.......")
Python-api commands not working
Maybe sometime Termux-api commands will not work in your device.Then you should use both two methods of installing Termux-api after update and upgrading your packages
0 Comments