How gsjsjzhznsz/mobileglues-plugin works
MobileGlues-plugin is an Android companion app for configuring and inspecting the MobileGlues renderer. Users enter through the app UI, grant access to the renderer’s MG directory, then manage settings or request renderer information and multidraw benchmarks; benchmark results can be reviewed and adopted. The architecture separates UI orchestration, authorization and configuration, and isolated renderer queries. The README provides little product detail, so major capabilities are inferred from the source tree and sampled excerpts; unsampled wiring is omitted where uncertain.
Main entry points: AppController.kt App controller · MainActivity.kt Activity shell · AuthController.kt Authorization · MGConfigStore.kt Renderer configuration
Components 19
App interface
- Activity shell
app/src/main/java/com/fcl/plugin/mobileglues/MainActivity.kt - App controller
app/src/main/java/com/fcl/plugin/mobileglues/ui/AppController.kt - Compose screens
app/src/main/java/com/fcl/plugin/mobileglues/ui
Access and settings
- Application state
app/src/main/java/com/fcl/plugin/mobileglues/MGApplication.kt - Authorization
app/src/main/java/com/fcl/plugin/mobileglues/settings/AuthController.kt - Plugin preferences
app/src/main/java/com/fcl/plugin/mobileglues/settings/PluginConfigStore.kt - MG directory access
app/src/main/java/com/fcl/plugin/mobileglues/settings/MgStorage.kt - Renderer configuration
app/src/main/java/com/fcl/plugin/mobileglues/settings/MGConfigStore.kt - Config encoding
app/src/main/java/com/fcl/plugin/mobileglues/settings/MGConfigCodec.kt - Cache export
app/src/main/java/com/fcl/plugin/mobileglues/settings/MGCacheExporter.kt
Renderer queries
- Query client
app/src/main/java/com/fcl/plugin/mobileglues/MgQuery.kt - Isolated query service
app/src/main/java/com/fcl/plugin/mobileglues/MgQueryService.kt - Multidraw benchmark
app/src/main/java/com/fcl/plugin/mobileglues/MGBench.kt - Renderer information
app/src/main/java/com/fcl/plugin/mobileglues/MGInfoGetter.kt - Device information
app/src/main/java/com/fcl/plugin/mobileglues/DeviceInfo.kt
Renderer integration
- Native GL probe
app/src/main/cpp/mobileglues_info_getter.cpp
Other components
- User
- MobileGlues renderer
- Android graphics driver
Connections 20
- User → Activity shell: opens
- Activity shell → App controller: creates
- Activity shell → Compose screens: renders
- Compose screens → App controller: dispatches actions
- App controller → Authorization: checks access
- Authorization → Plugin preferences: reads choice
- Authorization → MG directory access: selects access
- App controller → Renderer configuration: updates settings
- Renderer configuration → MG directory access: persists config
- Renderer configuration → Config encoding: encodes config
- App controller → Cache export: exports cache
- App controller → Query client: requests query
- Query client → Isolated query service: binds service
- Isolated query service → Multidraw benchmark: runs benchmark
- Isolated query service → Renderer information: requests info
- Renderer information → Native GL probe: probes graphics
- Native GL probe → MobileGlues renderer: loads renderer
- Native GL probe → Android graphics driver: queries EGL and GL
- Multidraw benchmark → MobileGlues renderer: runs benchmark
- App controller → Device information: loads device details