Skip to content

Detect rooted devices and send the signal in request headers - #2

Open
nguyenhuutinh wants to merge 1 commit into
mainfrom
feature/root-detection
Open

nguyenhuutinh wants to merge 1 commit into
mainfrom
feature/root-detection

Conversation

@nguyenhuutinh

Copy link
Copy Markdown
Collaborator

Detect rooted devices and report it in SDK request headers

Add RootUtils, a cheap heuristic root check (test-keys build tag, su
binary paths, root manager artifacts) that never spawns a process and
caches its result for the process lifetime.

  • Send the outcome as the rooted: yes|no request header alongside the
    other device headers, on both auth and coverage requests.
  • Include ROOTED in DeviceUtils.generateHeaderLogs, so it also reaches
    debug logs and SDK error reports.

Root detection is a risk signal only: it can be hidden by Magisk DenyList
and must not be used on its own to allow or deny authentication.

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.

1 participant