Termux:API Ứng dụng
Tiếp cận các chức năng cơ bản của Android như gửi SMS hoặc truy cập dữ liệu GPS từ ứng dụng Termux. Đây là một tiện ích bổ sung yêu cầu ứng dụng chính Termux phải được cài đặt để sử dụng.
Tính năng:
- Đọc và gửi tin nhắn SMS từ terminal của bạn.
- Truy cập cảm biến vị trí GPS của thiết bị từ các script.
- Chuyển kết quả của các lệnh vào engine 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 script shell.
- Liệt kê danh bạ từ danh sách liên hệ 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
Có gì mới trong 0.52.0
Here's a summary of the Termux:API 0.52.0 release notes, formatted as an HTML list:
- Fixed: Multiple calls to
ResultReturner.returnData()
causing "Connection refused" errors. - Fixed:
termux-notification --icon
not working in release builds. - Fixed:
termux-notification
actions not updating or conflicting due toPendingIntent
issues. - Improved:
termux-job-scheduler
output for scheduled jobs. - Improved: BatteryStatusAPI now outputs temperature as a double value.
- Improved: Added stack trace information to exception messages for easier debugging.
- Fixed: NFC-related issues to prevent NullPointerExceptions.
- Fixed:
termux-nfc -t x
resulting in error notification being shown.