Sitelet https://github.com/script-or-script/FlutterTap/commit/1398c199d1246ddcc43e4088ddbee1bae19bf91c
Skip to content

Commit 1398c19

Browse files
module: add Action button (opens manager app), mention SukiSu Ultra; new launcher icon
action.sh runs when the user taps "Action" next to FlutterTap in the Magisk/KernelSU/SukiSu Ultra/APatch module list -- the module manager shows that button automatically whenever a module ships this file, no module.prop flag needed. It just opens the FlutterTap manager app, so users don't have to hunt for its icon to change the proxy/target apps. Verified by invoking it directly as root: it correctly brings MainActivity to the foreground. module.prop's description now explicitly lists SukiSu Ultra alongside Magisk/KernelSU/APatch, matching the manager app's About text. Replaces the launcher icon (adaptive foreground + background) with Eduardo's hummingbird logo from C:\Users\eduardo.lopes\Estudos\android_icons -- extracted from the flat 512px source via a difference-matte pull (the background is a single flat color, so this gives clean edges with no color fringe) and composited into the same safe-zone-padded foreground layout used for the previous icon.
1 parent f333246 commit 1398c19

10 files changed

Lines changed: 31 additions & 2 deletions

File tree

‎docs/ARCHITECTURE.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,24 @@ is read through the Zygisk **companion process** (`companion.cpp`), which runs
173173
as unrestricted root, via a tiny length-prefixed protocol over the socket
174174
`Api::connectCompanion()` provides.
175175

176+
## Module install scripts (`module/template/`)
177+
178+
Standard Magisk module layout, understood the same way by Magisk, KernelSU
179+
(including KernelSU Next), SukiSu Ultra and APatch:
180+
181+
- `module.prop` -- id/name/version/description shown in the module manager.
182+
- `customize.sh` -- runs at install time; writes the default `config.json` if
183+
one doesn't already exist (see above), and leaves an existing one alone.
184+
- `uninstall.sh` -- deliberately does nothing to `/data/adb/fluttertap`, so
185+
reinstalling the module later restores the user's settings exactly as they
186+
left them.
187+
- `action.sh` -- runs on demand when the user taps the "Action" button next
188+
to FlutterTap in the module manager's list (present automatically whenever
189+
a module ships this file, no extra `module.prop` flag needed). Just opens
190+
the manager app (`am start -n com.eduardolopes.fluttertap/.MainActivity`),
191+
since that's the only settings surface FlutterTap has -- there's nothing
192+
else useful to run on demand.
193+
176194
## Third-party code and why each patch exists
177195

178196
- **Capstone 5.0.9** (BSD-3), vendored as a git submodule, built with only
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
3-
<solid android:color="#FFFFFF" />
3+
<solid android:color="#FF6634" />
44
</shape>
2.85 KB
Loading
1.56 KB
Loading
4.38 KB
Loading
7.15 KB
Loading
10.3 KB
Loading

‎module/template/action.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/system/bin/sh
2+
# FlutterTap action script -- by Eduardo Lopes
3+
#
4+
# Runs when the user taps "Action" next to FlutterTap in the module list
5+
# (Magisk/KernelSU/SukiSu Ultra/APatch all support this the same way: an
6+
# optional action.sh in the module's root, executed on demand as root).
7+
# Opens the FlutterTap manager app so proxy/target-app settings can be
8+
# changed without hunting for its icon in the app drawer.
9+
am start -n com.eduardolopes.fluttertap/.MainActivity >/dev/null 2>&1

‎module/template/module.prop‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name=FlutterTap
33
version=v1.0.0
44
versionCode=1
55
author=Eduardo Lopes
6-
description=Redirects the network traffic of selected Flutter apps to a configurable proxy and bypasses TLS certificate verification, for traffic analysis purposes. Compatible with Magisk, KernelSU and APatch (Zygisk). Configure via the FlutterTap manager app.
6+
description=Redirects the network traffic of selected Flutter apps to a configurable proxy and bypasses TLS certificate verification, for traffic analysis purposes. Compatible with Magisk, KernelSU (including KernelSU Next), SukiSu Ultra and APatch (Zygisk). Configure via the FlutterTap manager app.

‎scripts/build_module_zip.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ mkdir -p "$STAGE_DIR/zygisk"
2020
cp module/template/module.prop "$STAGE_DIR/"
2121
cp module/template/customize.sh "$STAGE_DIR/"
2222
cp module/template/uninstall.sh "$STAGE_DIR/"
23+
cp module/template/action.sh "$STAGE_DIR/"
24+
chmod 755 "$STAGE_DIR/action.sh"
2325

2426
find_so() {
2527
local abi="$1"

0 commit comments

Comments
 (0)