mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-08 02:23:23 +09:00
[Feat] (Android): the render server screen and binary ship in the plugin APK too, not just trace
This commit is contained in:
@@ -2,42 +2,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||
|
||||
<application>
|
||||
<!-- 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:launchMode="singleTop"
|
||||
android:theme="@style/Theme.MobileGLPlugin" />
|
||||
<service
|
||||
android:name=".MobileGLServerService"
|
||||
android:exported="true"
|
||||
android:foregroundServiceType="dataSync"
|
||||
android:process=":mglsrv" />
|
||||
<!-- P12 (on-screen server window): the ON-SCREEN display server. Its own process (:mglwin)
|
||||
runs the TCP server on a thread and renders a headless client's window surface
|
||||
(MOBILEGL_IPC_SURFACE=server) onto its SurfaceView. One server at a time: starting it
|
||||
stops MobileGLServerService, starting the service kills :mglwin. Software window
|
||||
rendering keeps HWUI off EGL here (Espryt's teardown terminates the default display);
|
||||
configChanges keeps the Surface through rotation and overlay changes. -->
|
||||
<activity
|
||||
android:name=".MobileGLDisplayActivity"
|
||||
android:configChanges="@integer/trace_replay_config_changes"
|
||||
android:exported="true"
|
||||
android:hardwareAccelerated="false"
|
||||
android:launchMode="singleTop"
|
||||
android:process=":mglwin"
|
||||
android:taskAffinity="${applicationId}.mglwin"
|
||||
android:theme="@style/Theme.MobileGLPlugin" />
|
||||
<activity
|
||||
android:name=".PluginActivity"
|
||||
tools:node="remove" />
|
||||
|
||||
Reference in New Issue
Block a user