The Termux:API add-on provides command line access to device API:s:
* Read and send sms messages from your terminal.
* Access device GPS location sensor from scripts.
* Pipe the result of commands into the device text-to-speech engine.
* Vibrate the device when something interesting happens.
* Access the system clipboard from shell scripts.
* List contacts from the system contact list.
Besides installing this app an additional package is required to install inside Termux:
$ apt install termux-api
See the following documentation about available API commands:
https://wiki.termux.com/wiki/Termux:API
NOTE: This is an add-on which requires that the main Termux app is installed to use.
Tiện ích bổ sung API Termux: cung cấp quyền truy cập dòng lệnh vào API thiết bị: s:
* Đọc và gửi tin nhắn sms từ thiết bị đầu cuối của bạn.
* Truy cập thiết bị cảm biến vị trí GPS từ các tập lệnh.
* Đường ống kết quả của lệnh vào công cụ chuyển văn bản thành giọng nói của thiết bị.
* Rung thiết bị khi có điều gì đó thú vị xảy ra.
* Truy cập clipboard hệ thống từ các kịch bản lệnh shell.
* Liệt kê các số liên lạc từ danh sách liên lạc hệ thống.
Bên cạnh việc cài đặt ứng dụng này, một gói bổ sung là cần thiết để cài đặt bên trong Termux:
$ Apt install termux-api
Xem tài liệu sau về các lệnh API có sẵn:
https://wiki.termux.com/wiki/Termux:API
LƯU Ý: Đây là một phần bổ sung yêu cầu ứng dụng Termux chính được cài đặt để sử dụng.