Termux:API 應用程式
將基本的 Android 功能,如發送 SMS 或訪問 GPS 數據,暴露給 Termux 應用。這是一個附加組件,需要安裝主 Termux 應用才能使用。- 從終端讀取和發送短信。
- 從腳本訪問設備的 GPS 位置傳感器。
- 將命令的結果管道輸入到設備的文本轉語音引擎。
- 當有有趣的事情發生時使設備震動。
- 從 shell 腳本訪問系統剪貼板。
- 從系統聯絡人列表中列出聯絡人。
除了安裝此應用外,還需要在 Termux 中安裝一個附加包:
$ apt install termux-api
更新內容於 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.