New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Could not connect to lockdownd: Invalid HostID (-21) #922
Comments
you can manually call unpair |
Seeing this too and confirmed that deleting the existing trust file in the lockdown directory does force the the re-paring / trust process to work again. |
You don't have ti nuke it from orbit, you can unpair it, or delete the trust file. |
@jhihn can you point me to the function that does the unpair action? Or an example of how you would invoke it |
|
I had this issue; I don't remember ever resetting the trust. I didn't even have to unpair, calling "idevicepair pair" worked. |
where can i find the trust file? |
you don't have to delete any file. |
Ran into the issue today and can confirm running idevicepair pair does resolve this issue when it occurred for me. I see the security advantage of keeping the current functionality and forcing a re-pair. I am building re-try logic into my script that utilizes this library for backups. I do like @RJVB's idea to at least improve the error message by suggesting to re-pair the device. |
This error appears when a host which has previously been trusted by the device has had its trust reset (Settings: General: Reset: Reset Location & Privacy) and is plugged in again.
The work-around is to delete the existing trust file in the lockdown directory and re-pair.
It would be nice if this could happen automatically.
The text was updated successfully, but these errors were encountered: