Termux:GUI
A plugin for Termux to use the Android GUI from terminal applications.
Tarek Sander Development
Screenshots
Description
With this plugin you can make GUI applications in <a href="https://f-droid.org/en/packages/com.termux/">Termux</a> 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 <a href="https://github.com/termux/termux-gui/blob/main/README.md">the README</a> 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 <a href="https://developer.android.com/guide/topics/ui/picture-in-picture">picture-in-picture mode</a>
* Get events from the UI and change the content on-the-fly
* Draw to a buffer on the screen directly
Using the plugin:
<a href="https://github.com/tareksander/termux-gui-package">There are also prepackaged programs you can use.</a>
There are currently <a href="https://github.com/tareksander/termux-gui-python-bindings">Python bindings</a>, <a href="https://github.com/tareksander/termux-gui-c-bindings">C bindings</a> and a <a href="https://github.com/tareksander/termux-gui-bash">Bash library</a>, and the <a href="https://github.com/termux/termux-gui/blob/main/Protocol.md">protocol</a> 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.
What’s new (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)
Versions
Permissions
What the app asks the system for. Android only grants sensitive access after you confirm it.
- Foreground serviceKeep running in the background, visible in the status bar.
- Display over other appsDraw content on top of other apps.
- Prevent sleepingKeep the device from going to sleep.
- NotificationsShow notifications.
Comments