Device and Wireless ADB
About 523 wordsAbout 2 min
The home page does two things: report device state, and establish a uid 2000 shell session. All three escalation chains run inside that session.
ROOT card
Reads whether the current process already has root.
| Subtitle | Meaning |
|---|---|
| Detecting | First query has not returned |
| Not activated | No root |
| Activated | Root exists |
"Activated" does not mean this app granted root; a device that already had root shows the same state.
ADB card
The subtitle concatenates the enabled debugging modes, wireless first, for example "Activated (wireless, USB)". With both off it reads "Not activated"; before the first result it reads "Detecting".
Connection area
| State line | Action | Meaning |
|---|---|---|
| Detecting | None | First query pending |
| Wireless debugging pairing | Wireless debugging pairing | Not connected; tap to pair |
| Waiting for pairing code… | Cancel | System pairing started |
| Pairing… | Cancel | Code submitted |
| Code received, connecting… | Cancel | Connecting to the debug port |
| shell connected (uid=2000) | None | Session usable |
| Failure text | Retry | Shows the native reason, copyable |
While pairing or after a failure, a hint line appears: during pairing it explains that the code is entered in the notification without leaving the app; on failure it shows the raw native description.
Failure codes
| Native code | Display |
|---|---|
hostAuthFailed | Authentication failed; retry |
hostDisconnected | Host connection dropped |
pairingTimeout | Pairing timed out; retry |
deviceRebooted | Device rebooted |
cancelled | Pairing cancelled |
| Anything else | Pairing failed; retry |
Refresh behavior
The connection state has no push channel. While connected, the app re-queries every 3 seconds to notice wireless debugging being turned off or the device rebooting. While disconnected it does not poll; the state is pushed at the end of a pairing attempt. If a query is still in flight, the next tick is skipped rather than piling up native calls.
Pairing flow
- Request notification permission.
- Start pairing, entering "Waiting for pairing code…".
- Try to open the system wireless debugging page. A failed jump only costs convenience.
- The user enters the pairing code in the notification.
- Native code completes pairing and connection; the state line becomes
shell connected (uid=2000).
The code is generated by the system and expires after that pairing.
Device info card
| Field | Notes |
|---|---|
| OS version | Android version |
| API level | System API level |
| Model | Vendor model name |
| CPU ABI | Architecture |
| Kernel version | uname -r |
| Security patch | Android security patch date |
| Baseband | Baseband version |
| Build number | System build |
| SOTA version | Vendor OTA version |
| SELinux | Current state, colored by whether it is enforcing |
| App version | This app's version |
Tapping a row copies that value; the top-right button copies every field in field: value form.
Kernel impact
| Chain | Dependency |
|---|---|
| Auto-match payload | Device and kernel must hit the bundled payload catalog |
| GhostLock | Exact profile release match and shell seccomp 0 |
| DirtyFrag | Kernel series among 5.10 / 5.15 / 6.1 / 6.6 / 6.12 / 6.18 |
| GhostKey | A profile for the current release and no seccomp filter |
When the kernel version cannot be read, DirtyFrag treats the kernel as unsupported, and the GhostLock and GhostKey preflights report their own reasons.