Add terminal view for module flash/action screens with TTY support

Replace plain text LazyColumn with com.termux:terminal-view for module
install (FlashZip) and module action screens, enabling real TTY control
(ANSI escape sequences, cursor movement, colors) for third-party module
scripts. Uses libsu's initialized shell environment with stdout/stderr
redirected to a PTY slave, preserving the full Magisk environment while
giving scripts a real terminal.

MagiskInstaller operations (Direct/Patch/Uninstall/SecondSlot) retain
the original LazyColumn plain-text display since they use our own
scripts that don't need TTY features.

Made-with: Cursor
This commit is contained in:
LoveSy
2026-03-16 02:56:02 -07:00
committed by topjohnwu
parent 6a9bd4531f
commit bc3f6b1a99
9 changed files with 389 additions and 108 deletions
+2
View File
@@ -2,6 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk tools:overrideLibrary="com.termux.view, com.termux.terminal" />
<application android:localeConfig="@xml/locale_config">
<activity
android:name=".ui.MainActivity"