[Feat] (Android): a launcher screen starts and stops the offscreen TCP server

ServerControlActivity (trace flavor) collects the listen endpoint, auth
token and extra env, then drives MobileGLServerService with the same
extras adb used. Non-loopback listens are held to the 16-byte token the
server enforces, and a connect probe confirms the supervisor bound its
socket. The screen is the APK's launcher icon, which the trace flavor
lacked since PostActivity is removed there.
This commit is contained in:
2026-09-27 04:39:00 -04:00
parent 6bccf98d7f
commit 1f72597dd8
2 changed files with 300 additions and 0 deletions
@@ -8,6 +8,17 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<application>
<!-- Launcher entry: start/stop the offscreen TCP supervisor (MobileGLServerService).
The trace flavor removes PostActivity, so without this the APK has no icon. -->
<activity
android:name=".ServerControlActivity"
android:exported="true"
android:theme="@style/Theme.MobileGLPlugin">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name=".MobileGLServerService"
android:exported="true"