How 7mohan/mohalaboptimazation works
Moha Lab Optimization is a Flutter Android gaming and system-tuning utility. The main user workflow is to inspect device status, choose an optimization or per-game setting, apply it through an authorized privilege path, and verify or restore the result. The product also includes game-library management, network diagnostics, maintenance, and settings. The README documents these capabilities; source excerpts and the SOURCE INDEX confirm key native bridge relationships, but many Dart feature internals were not sampled, so those links are documented rather than source-verified.
Main entry points: app_router.dart Navigation and shell · ShizukuBridge.kt Shizuku bridge · optimization_screen.dart System optimization · MainActivity.kt Android platform channels
Components 21
Flutter app
- Application entry
lib/main.dart - Navigation and shell
lib/core/routing/app_router.dart
Device insights
- Home dashboard
lib/features/home/presentation/screens/home_screen.dart - Device telemetry
lib/features/diagnostics/data/services/device_info_service.dart - Network diagnostics
lib/features/network/domain/services/network_diagnostics_engine.dart - Network probing
lib/features/network/data/datasources/native_network_probe.dart
Gaming and tuning
- Game library
lib/features/games/presentation/screens/games_screen.dart - Per-game tuning
lib/features/games/data/services/game_stats_service.dart - System optimization
lib/features/optimization/presentation/screens/optimization_screen.dart - Tweak catalog
lib/features/optimization/domain/tweak_catalog.dart - Measured maintenance
lib/features/optimization/presentation/providers/long_task_provider.dart
Native privilege
- Shizuku setup
lib/features/shizuku/presentation/providers/shizuku_provider.dart - Android platform channels
android/app/src/main/kotlin/com/mohalab/optimization/MainActivity.kt - Shizuku bridge
android/app/src/main/kotlin/com/mohalab/optimization/ShizukuBridge.kt - Permission handler
android/app/src/main/kotlin/com/mohalab/optimization/ShizukuPermissionHandler.kt - Shizuku state
android/app/src/main/kotlin/com/mohalab/optimization/ShizukuStateDetector.kt - Verified tweak engine
android/app/src/main/kotlin/com/mohalab/optimization/TweakEngine.kt - Persistent root shell
android/app/src/main/kotlin/com/mohalab/optimization/RootShell.kt
App support
- User preferences
lib/features/settings/presentation/screens/settings_screen.dart - Local preferences store
lib/data/datasources/local/settings_local_datasource.dart
Other components
- Device user
Connections 22
- Device user → Application entry: opens
README.md - Application entry → Navigation and shell: starts
README.md - Navigation and shell → Home dashboard: routes
README.md - Home dashboard → Device telemetry: shows
- Navigation and shell → Game library: routes
- Game library → Per-game tuning: offers
- Navigation and shell → System optimization: routes
- System optimization → Tweak catalog: applies
- System optimization → Measured maintenance: offers
README.md - Navigation and shell → Network diagnostics: routes
- Network diagnostics → Network probing: probes
- Navigation and shell → User preferences: routes
- User preferences → Local preferences store: persists
- System optimization → Android platform channels: requests tweaks
README.md - Per-game tuning → Android platform channels: requests game settings
README.md - Android platform channels → Verified tweak engine: dispatches
android/app/src/main/kotlin/com/mohalab/optimization/MainActivity.kt - Android platform channels → Shizuku bridge: registers
android/app/src/main/kotlin/com/mohalab/optimization/MainActivity.kt - Shizuku bridge → Permission handler: registers requests
android/app/src/main/kotlin/com/mohalab/optimization/ShizukuBridge.kt - Shizuku bridge → Shizuku state: checks readiness
android/app/src/main/kotlin/com/mohalab/optimization/ShizukuBridge.kt - Verified tweak engine → Shizuku bridge: executes commands
android/app/src/main/kotlin/com/mohalab/optimization/TweakEngine.kt - Verified tweak engine → Persistent root shell: executes root commands
android/app/src/main/kotlin/com/mohalab/optimization/TweakEngine.kt - Shizuku setup → Shizuku bridge: uses channel