Skip to content

fix: read /proc/net/arp alongside ip neigh in privileged neighbor source - #126

Merged
usamaiqb merged 1 commit into
mainfrom
fix/privileged-neighbor-proc-arp-fallback
Nov 14, 2026
Merged

usamaiqb merged 1 commit into
mainfrom
fix/privileged-neighbor-proc-arp-fallback

Conversation

@usamaiqb

@usamaiqb usamaiqb commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

On GrapheneOS the shell user is denied the netlink dump behind ip neigh ("Cannot send dump request: Permission denied") while /proc/net/arp stays readable, so MAC lookup through Shizuku silently returned nothing.

The Shizuku service and the su path now return both sources. Lines are parsed by format, filtered to valid entries and de-duplicated by IP.

Closes #122

On GrapheneOS the shell user is denied the netlink dump behind
`ip neigh` ("Cannot send dump request: Permission denied") while
/proc/net/arp stays readable, so MAC lookup through Shizuku silently
returned nothing.

The Shizuku service and the su path now return both sources. Lines are
parsed by format, filtered to valid entries and de-duplicated by IP.

Refs #122
@usamaiqb usamaiqb self-assigned this Nov 13, 2026
@usamaiqb

Copy link
Copy Markdown
Owner Author

hey @AriZone
can you please check if this fixes the problem for you
let me know if you can't make a debug build, i can upload one

@AriZone

AriZone commented Nov 13, 2026

Copy link
Copy Markdown

Tested on Pixel 10 Pro XL/GrapheneOS with shizuku started over adb using built debug apk from the branch. MACs and vendors now show up correctly. Thanks for the quick fix!

@usamaiqb
usamaiqb merged commit 131a1ec into main Nov 14, 2026
5 checks passed
@usamaiqb
usamaiqb deleted the fix/privileged-neighbor-proc-arp-fallback branch November 14, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] MAC scanning doesn’t work on GrapheneOS even with Shizuku running and THE FIX

2 participants