You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//https://github.com/mvt-project/androidqf/blob/main/main.go#L84C1-L88C3
log.Debug("Starting androidqf")
adb.Client, err = adb.New(serial)
if err != nil {
log.Fatal("Impossible to initialize adb: ", err)
}
The error "no devices connected to adb" is being returned as no devices are found.
if len(devices) == 0 {
return nil, fmt.Errorf("no devices connected to adb")
}
There is no loop around the adb.New() code so it is expected that AndroidQF dies. The loop should only run in the case where a device is detected but is not trusted yet.
The bug actually is why adb.New() appears to pass sometimes and start looping even when no device is connected??
Activity
besendorf commentedon Sep 18, 2024
Screenshot with verbose mode

DonnchaC commentedon Feb 4, 2025
I wonder if the MacOS ADB binary sends a syscall to kill the process when it fails to find a device.
DonnchaC commentedon Feb 4, 2025
Hmm. I'm confused now.
In
main.gowe calladb.New(serial).The error "no devices connected to adb" is being returned as no devices are found.
There is no loop around the
adb.New()code so it is expected that AndroidQF dies. The loop should only run in the case where a device is detected but is not trusted yet.The bug actually is why
adb.New()appears to pass sometimes and start looping even when no device is connected??DonnchaC commentedon Feb 7, 2025
Should be fixed in #55