How zfitness/nx2androidx works
nx2Arm is an on-device Switch-game porting and native-play platform for Android and ARM Linux. The main flow is: the player selects game files and keys, starts a port, and receives a game data pack that can be launched from the library. The graph also preserves the built-in agent, environment setup, save sharing, driver management, and the Linux launcher. Some internal porting and native-runtime links are documented only at product level; those are dashed where implementation-level wiring was not shown.
Main entry points: PortService.kt Port service · LibraryState.kt Game library · pipeline.py Port pipeline · app.py Desktop launcher
Components 24
Android app
- App screens
android/app/src/main/java/com/nx/android/MainActivity.kt - Builds page
android/app/src/main/java/com/nx/android/feature/builds - Game library
android/app/src/main/java/com/nx/android/appstate/LibraryState.kt - Library storage
android/app/src/main/java/com/nx/android/domain/library/GameLibraryRepository.kt - Save sharing
android/app/src/main/java/com/nx/android/data/saves/SaveRepositoryImpl.kt - Driver management
android/app/src/main/java/com/nx/android/data/drivers/DriverRepositoryImpl.kt - Storage usage
android/app/src/main/java/com/nx/android/domain/StorageUsage.kt
Porting workflow
- Port service
android/app/src/main/java/com/nx/android/PortService.kt - Port progress
android/app/src/main/java/com/nx/android/appstate/PortState.kt - Port pipeline
porter/pipeline.py - Game files and keys
- Linux environment
android/app/src/main/java/com/nx/android/domain/environment - Game data pack
Game runtime
- Game activity
android/app/src/main/java/com/nx/android/game/GameActivity.kt - Native host
nxnative/dm/host/main.c - Android native layer
nxnative/dm/android/front_android.c - Vulkan graphics
nxnative/dm/android/gfx_vk_core.c
Built-in agent
- Agent interface
android/app/src/main/java/com/nx/android/agent/ui/AgentScreen.kt - Agent runtime
android/app/src/main/java/com/nx/android/agent/runtime/AgentSetup.kt - Agent data
android/app/src/main/java/com/nx/android/agent/runtime/AgentEngineStore.kt
ARM Linux
- Desktop launcher
launcher/ui/app.py - Linux game runner
launcher/runner.py - Linux port pipeline
porter/pipeline.py
Other components
- Player
Connections 24
- Player → Builds page: selects game
README.md - Builds page → Port service: starts port
- Port service → Port progress: reports progress
android/app/src/main/java/com/nx/android/PortService.kt - Port service → Linux environment: uses environment
android/app/src/main/java/com/nx/android/PortService.kt - Port service → Port pipeline: runs port
- Game files and keys → Port pipeline: provides inputs
porter/pipeline.py - Linux environment → Port pipeline: hosts tools
- Port pipeline → Game data pack: produces pack
README.md - Port progress → Game library: refreshes library
android/app/src/main/java/com/nx/android/appstate/LibraryState.kt - Game library → Library storage: reads games
android/app/src/main/java/com/nx/android/appstate/LibraryState.kt - Game data pack → Game library: makes playable
README.md - Game library → Game activity: launches game
- Game activity → Native host: starts host
- Native host → Android native layer: uses platform layer
- Android native layer → Vulkan graphics: renders graphics
- Player → Save sharing: shares saves
README.md - Player → Driver management: manages drivers
README.md - App screens → Storage usage: shows usage
- Player → Agent interface: uses assistant
README.md - Agent interface → Agent runtime: uses agent
- Agent runtime → Agent data: stores agent data
android/app/src/main/java/com/nx/android/agent/runtime/AgentEngineStore.kt - Player → Desktop launcher: opens launcher
README.md - Desktop launcher → Linux game runner: launches games
launcher/ui/app.py - Desktop launcher → Linux port pipeline: starts port