mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 06:23:23 +09:00
[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user