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
Unable to enable developer mode #303
Comments
That error handling is a little sus. Shouldn't it be: if not 'success' in resp:
raise PyMobileDevice3Exception(f'enable_developer_mode(): {resp}') instead of if not resp['success']:
raise PyMobileDevice3Exception(f'enable_developer_mode(): {resp}') |
Also, why is it not a proper subclass of BaseService? |
Wait a moment. I just realized, it might be an intended feature.... I saw something saying they mentioned at WWDC that only devices without a passcode can have it enabled automatically |
Thanks for the very explained bug report 😎
This service just closes the connection after every single message is received. Also, I've just verified that |
Latest version with this fix is now on pypi so you can try it out: https://github.com/doronz88/pymobiledevice3/releases/tag/v1.26.1 |
lgtm. Can't actually test the functionality, as my device has a passcode, but the errors look good. |
Test environment
Describe the bug
When enabling developer mode with
pymobiledevice3 amfi enable-developer-mode
, it is unable to enable developer mode.To Reproduce
Steps to reproduce the behavior:
pymobiledevice3 lockdown pair
)Expected behavior
Developer mode should be enabled
Logs
If applicable, add logs including backtraces for the given error that help explain your problem.
Additional context
I added a
print()
statement before theif not resp['success']
line, andresp
is equal to{'Error': 'Device has a passcode set'}
The text was updated successfully, but these errors were encountered: