SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
15.5k stars 1.9k forks source link

Add KernelSU root permission detection for auto-redirect #1815

Closed lgjint closed 4 weeks ago

lgjint commented 4 weeks ago

Referring to KernelSU Code, KernelSU can only get root permission via /system/bin/su or su.

This patch should also work for other root solutions like Magisk and Apatch.