SHOW:
|
|
- or go back to the newest paste.
1 | Termux Wiki | |
2 | ||
3 | Termux:API | |
4 | This addon exposes device functionality as API to command line programs in Termux. | |
5 | ||
6 | Installation | |
7 | Download the Termux:API add-on from F-Droid or the Google Play Store. It is required for the API implementations to function. | |
8 | ||
9 | Important: Do not mix installations of Termux and Addons between Google Play and F-Droid. They are presented at these portals for your convenience. There are compatibility issues when mixing installations from these Internet portals. This is because each download website uses a specific key for keysigning Termux and Addons. | |
10 | ||
11 | Installing termux-api package | |
12 | To use Termux:API you also need to install the termux-api package. | |
13 | ||
14 | pkg install termux-api | |
15 | Settings | |
16 | On Android 7 you may have to "protect" Termux:API by going into the settings / protected apps menu otherwise calls to the API like termux-battery-status will hang forever. See issue 334. | |
17 | ||
18 | Current API implementations | |
19 | termux-battery-status | |
20 | Get the status of the device battery. | |
21 | termux-brightness | |
22 | Set the screen brightness between 0 and 255. | |
23 | termux-call-log | |
24 | List call log history. | |
25 | termux-camera-info | |
26 | Get information about device camera(s). | |
27 | termux-camera-photo | |
28 | Take a photo and save it to a file in JPEG format. | |
29 | termux-clipboard-get | |
30 | Get the system clipboard text. | |
31 | termux-clipboard-set | |
32 | Set the system clipboard text. | |
33 | termux-contact-list | |
34 | List all contacts. | |
35 | termux-dialog | |
36 | Show a text entry dialog. | |
37 | termux-download | |
38 | Download a resource using the system download manager. | |
39 | termux-fingerprint | |
40 | Use fingerprint sensor on device to check for authentication. | |
41 | termux-infrared-frequencies | |
42 | Query the infrared transmitter's supported carrier frequencies. | |
43 | termux-infrared-transmit | |
44 | Transmit an infrared pattern. | |
45 | termux-job-scheduler | |
46 | Schedule a Termux script to run later, or periodically. | |
47 | termux-location | |
48 | Get the device location. | |
49 | termux-media-player | |
50 | Play media files. | |
51 | termux-media-scan | |
52 | MediaScanner interface, make file changes visible to Android Gallery | |
53 | termux-microphone-record | |
54 | Recording using microphone on your device. | |
55 | termux-notification | |
56 | Display a system notification. | |
57 | termux-notification-remove | |
58 | Remove a notification previously shown with termux-notification --id. | |
59 | termux-sensor | |
60 | Get information about types of sensors as well as live data. | |
61 | termux-share | |
62 | Share a file specified as argument or the text received on stdin. | |
63 | termux-sms-list | |
64 | List SMS messages. | |
65 | termux-sms-send | |
66 | Send a SMS message to the specified recipient number(s). | |
67 | termux-storage-get | |
68 | Request a file from the system and output it to the specified file. | |
69 | termux-telephony-call | |
70 | Call a telephony number. | |
71 | termux-telephony-cellinfo | |
72 | Get information about all observed cell information from all radios on the device including the primary and neighboring cells. | |
73 | termux-telephony-deviceinfo | |
74 | Get information about the telephony device. | |
75 | termux-toast | |
76 | Show a transient popup notification. | |
77 | termux-torch | |
78 | Toggle LED Torch on device. | |
79 | termux-tts-engines | |
80 | Get information about the available text-to-speech engines. | |
81 | termux-tts-speak | |
82 | Speak text with a system text-to-speech engine. | |
83 | termux-usb | |
84 | List or access USB devices. | |
85 | termux-vibrate | |
86 | Vibrate the device. | |
87 | termux-volume | |
88 | Change volume of audio stream. | |
89 | termux-wallpaper | |
90 | Change wallpaper on your device. | |
91 | termux-wifi-connectioninfo | |
92 | Get information about the current wifi connection. | |
93 | termux-wifi-enable | |
94 | Toggle Wi-Fi On/Off. | |
95 | termux-wifi-scaninfo | |
96 | Get information about the last wifi scan. | |
97 |