Skip to content
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

Enhance unlock_bootloader with better status messages #1001

Merged
merged 1 commit into from
Dec 27, 2019

Conversation

zachriggle
Copy link
Member

No description provided.

- Detect bootloaders that are already unklocked
- Detect bootloader unlock success
- Detect bootloaders that cannot be unlocked
- Detect devices which have not enabled bootloader unlocking
@zachriggle zachriggle force-pushed the dev branch 2 times, most recently from 2a32645 to b53e58a Compare October 18, 2017 19:52
def __eq__(self, other):
# Allow simple comparison, e.g.:
# adb.properties.ro.oem_unlock_supported == "1"
return type(other)(self) == other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes strange behavior in sphinx testing environment, when being compared against None (they should not do it in the first place, since is None is the preferred way).
Also I don't think that we need anything but str here.

Suggested change
return type(other)(self) == other
return str(self) == other

Arusekk added a commit to HenryHoggard/pwntools that referenced this pull request Dec 27, 2019
@Arusekk Arusekk merged commit 70de143 into Gallopsled:dev Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants