redirect: Fix compatibility with /product/bin/su

This commit is contained in:
世界
2025-10-21 20:41:16 +08:00
parent b49e63f8ef
commit 20161f3059

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)