redirect: Fix compatibility with /product/bin/su

This commit is contained in:
世界 2025-10-21 20:41:16 +08:00
parent b49e63f8ef
commit 20161f3059
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -69,6 +69,7 @@ func (r *autoRedirect) Start() error {
r.androidSu = true
for _, suPath := range []string{
"su",
"/product/bin/su",
"/system/bin/su",
} {
r.suPath, err = exec.LookPath(suPath)