圖標

Termux:GUI

A plugin for Termux to use the Android GUI from terminal applications.
新版本 0.1.6
Implemented all Protobuf methods
Added features for the Protobuf protocol:
- setting an Activity to fullscreen
- intercepting volume buttons
- hardware-accelerated rendering with SurfaceViews
- setting the secure flag for an Activity, disabling screenshots and blanking it out in the app switcher
WebView fixes
Changed the app icon a bit
Added more demo videos
Implemented a Bash library
Implemented a C library (tutorial not yet fully finished)
With this plugin you can make GUI applications in Termux without using VNC or a X11 server.
This plugin uses the native Android GUI components to display everything.
That means it seamlessly integrates into the Android experience, but standard applications written for X11 don't work.
Also it requires a minimum of knowledge of how the Android GUI works.
See the README for a crash course.

Features:
* Display content in a task with its own back stack
* Display custom dialogs
* If you want you can also display on the lockscreen
* Create your own homescreen widgets
* Use picture-in-picture mode
* Get events from the UI and change the content on-the-fly
* Draw to a buffer on the screen directly


Using the plugin:

There are also prepackaged programs you can use.

There are currently Python bindings, C bindings and a Bash library, and the protocol used is fully documented.
Implementing the protocol only requires the ability to use unix sockets, JSON handling and reading and writing 4 byte big endian integers.
The python bindings should provide further clarification in case the protocol didn't specify something.
The python bindings also have a tutorial.



版本

雖然在下方可選擇下載 APK 檔案,但要留意這樣的安裝方式將不會收到更新通知,是一種較不安全的下載方法。建議您先安裝 F-Droid 用戶端使用。

下載 F-Droid
  • 版本 0.1.6 (7) 建議 於 2025 年 2 月 20 日新增

    arm64-v8a armeabi-v7a x86 x86_64

    此版本需要 Android 7.0 或更高的版本。

    此套件包由 F-Droid 構建和簽署,並保證與此原始碼 Tarball 保持一致。

    權限
    • 執行前景服務
      允許應用程式使用前景服務。
    • 顯示通知
      允許應用程式顯示通知
    • 此應用程式可顯示在其他應用程式上方
      這個應用程式可顯示在其他應用程式上方或畫面中的其他位置。你可能會無法照常使用應用程式,且其他應用程式的顯示方式可能會受到影響。
    • 防止手機休眠
      允許應用程式防止手機進入休眠狀態。

    下載 APK 3.3 MiB PGP 簽章 | 構建日誌