Skip to content

detect Magisk and surface provider on root status#10

Open
iboalali wants to merge 1 commit into
masterfrom
claude/magisk-root-check-cTETQ
Open

detect Magisk and surface provider on root status#10
iboalali wants to merge 1 commit into
masterfrom
claude/magisk-root-check-cTETQ

Conversation

@iboalali
Copy link
Copy Markdown
Owner

@iboalali iboalali commented May 1, 2026

Replaces RootChecker's Boolean? return with a RootResult sealed type
that carries the root provider (Magisk / Other / Unknown) and version
when available. Magisk is detected via a combination of:

  • PackageManager probe for com.topjohnwu.magisk(.debug/.canary/.alpha)
    (gated by a new block in AndroidManifest)
  • /proc/self/mounts inspection (root-free)
  • magisk -V via libsu when root is granted
  • /data/adb/magisk and friends as a fallback

When root is granted by Magisk, MainScreen now shows a secondary
"via Magisk vX.Y" line under the existing status text. Other root
providers fall back to the generic ROOTED display.

Closes the "Magisk root check" TODO from the README.

https://claude.ai/code/session_01NxY1tfQZxw6qwi41XkCWKa

Replaces RootChecker's Boolean? return with a RootResult sealed type
that carries the root provider (Magisk / Other / Unknown) and version
when available. Magisk is detected via a combination of:

- PackageManager probe for com.topjohnwu.magisk(.debug/.canary/.alpha)
  (gated by a new <queries> block in AndroidManifest)
- /proc/self/mounts inspection (root-free)
- magisk -V via libsu when root is granted
- /data/adb/magisk and friends as a fallback

When root is granted by Magisk, MainScreen now shows a secondary
"via Magisk vX.Y" line under the existing status text. Other root
providers fall back to the generic ROOTED display.

Closes the "Magisk root check" TODO from the README.

https://claude.ai/code/session_01NxY1tfQZxw6qwi41XkCWKa
@iboalali iboalali mentioned this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants