How oopnv70-lab/ghostlock-aak-apk works
GhostLock AAK is an Android loader/trigger for a separately supplied preload library, not the exploit implementation itself. The user grants Shizuku access, selects the library, and starts a run; MainActivity reads the file and coordinates a Shizuku UserService, which writes it and streams shell output back for display. The README documents the LD_PRELOAD-to-exploit transition, but the library and kernel exploit code are not in this tree, so those stages are external. Source excerpts cover the two core Java files; other links rely on README statements.
Main entry points: MainActivity.java App UI and orchestration · CommandService.java UserService
Components 10
Android app
- App UI and orchestration
app/src/main/java/com/ghostlock/aak/MainActivity.java - System file picker
- Selected preload library
Privileged execution
- Shizuku service
- UserService
app/src/main/java/com/ghostlock/aak/CommandService.java - Installed preload library
Exploit runtime
- Privileged shell
- Exploit constructor
- Linux kernel rtmutex
Other components
- Research user
Connections 14
- Research user → App UI and orchestration: operates
README.md - App UI and orchestration → System file picker: opens picker
app/src/main/java/com/ghostlock/aak/MainActivity.java - System file picker → App UI and orchestration: returns selection
app/src/main/java/com/ghostlock/aak/MainActivity.java - App UI and orchestration → Selected preload library: reads bytes
app/src/main/java/com/ghostlock/aak/MainActivity.java - App UI and orchestration → Shizuku service: requests permission
app/src/main/java/com/ghostlock/aak/MainActivity.java - App UI and orchestration → Shizuku service: binds service
app/src/main/java/com/ghostlock/aak/MainActivity.java - App UI and orchestration → UserService: calls write and run
app/src/main/java/com/ghostlock/aak/MainActivity.java - Selected preload library → UserService: sends bytes
- UserService → Installed preload library: writes library
app/src/main/java/com/ghostlock/aak/CommandService.java - UserService → Privileged shell: executes command
app/src/main/java/com/ghostlock/aak/CommandService.java - Privileged shell → Installed preload library: loads via LD_PRELOAD
README.md - Installed preload library → Exploit constructor: runs constructor
README.md - Exploit constructor → Linux kernel rtmutex: triggers rtmutex flaw
README.md - UserService → App UI and orchestration: streams output
app/src/main/java/com/ghostlock/aak/MainActivity.java