Termux:API 應用程式
將基本的 Android 功能,如發送 SMS 或訪問 GPS 數據,暴露給 Termux 應用。這是一個附加組件,需要安裝主 Termux 應用才能使用。- 從終端讀取和發送短信。
- 從腳本訪問設備的 GPS 位置傳感器。
- 將命令的結果管道輸入到設備的文本轉語音引擎。
- 當有有趣的事情發生時使設備震動。
- 從 shell 腳本訪問系統剪貼板。
- 從系統聯絡人列表中列出聯絡人。
除了安裝此應用外,還需要在 Termux 中安裝一個附加包:
$ apt install termux-api
更新內容於 0.53.0
Here's a summary of the Termux:API v0.53.0 release notes:
- Improved Battery Status API: Fixed a bug that caused a crash (NullPointerException) when the battery current value was unavailable.
- Battery Status API Enhancement: The API will now avoid outputting null values for battery information.








