Bugs fixed
All checks were successful
release / build-and-upload (push) Successful in 6m38s

This commit is contained in:
404errordeveloper 2026-10-08 20:44:10 +02:00
parent 84ae0f6994
commit 1d36961a7c
16 changed files with 734 additions and 48 deletions

View file

@ -349,26 +349,22 @@ func ClearProxyLater(c *adb.Client) {
}
func resolveProxy(a app.App, root string) (bin, caHash string) {
bin = filepath.Join(root, "bin", "proxy-android-arm64")
caHash = DefaultCAHash
if a != nil {
if p := a.ProxyBin(); p != "" {
bin = p
if st, err := os.Stat(p); err == nil && !st.IsDir() {
bin = p
}
}
if h := a.CAHash(); h != "" {
caHash = h
}
}
if _, err := os.Stat(bin); err != nil {
for _, p := range []string{
filepath.Join(root, "bin", "proxy-android-arm64"),
filepath.Join(root, "apps", "proxy", "proxy-android-arm64"),
} {
if st, e := os.Stat(p); e == nil && !st.IsDir() {
bin = p
break
}
}
if bin == "" {
bin = proxy.FindLocalBin(root)
}
if bin == "" {
bin = filepath.Join(root, "bin", "proxy-android-arm64")
}
return bin, caHash
}