[Feat] (Android): trace APK boots to POST; bottom nav bar switches to the render server

The trace flavor manifest removed PostActivity and made ServerControlActivity
the launcher, so the APK opened straight into the render server screen. Keep
both screens: PostActivity is the launcher again, and a bottom navigation bar
(NavBar, plugin flavor unaffected) switches between them via
FLAG_ACTIVITY_REORDER_TO_FRONT with transitions suppressed, so each screen
keeps its state. ServerControlActivity is singleTop now and handles extras in
onNewIntent so adb-driven starts still work. The POST screen also shows an
indeterminate progress bar while the self-test runs.
This commit is contained in:
2026-09-28 21:06:44 -04:00
parent b9a89967b0
commit 884f6aac96
4 changed files with 117 additions and 18 deletions
@@ -8,17 +8,16 @@
<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. -->
<!-- Render server control screen: start/stop the offscreen TCP supervisor
(MobileGLServerService) or the on-screen display server. Not the launcher:
PostActivity is the entry icon and the bottom navigation bar switches between
the two screens; exported so adb can drive it by explicit component with
listen/token/env/onscreen/start/stop extras. -->
<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>
android:launchMode="singleTop"
android:theme="@style/Theme.MobileGLPlugin" />
<service
android:name=".MobileGLServerService"
android:exported="true"
@@ -42,9 +41,6 @@
<activity
android:name=".PluginActivity"
tools:node="remove" />
<activity
android:name=".PostActivity"
tools:node="remove" />
<meta-data
android:name="fclPlugin"
tools:node="remove" />