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

Incomplete device configs are not prompting the user to enter lock code #202

Open
pajlow opened this issue Sep 9, 2022 · 4 comments
Open

Comments

@pajlow
Copy link

pajlow commented Sep 9, 2022

In the installer repo we get a lot of issues like ubports/ubports-installer#2831 (comment).
This is mainly happening to users with Xiaomi devices because they require an unlock code to unlock the bootloader. I went through some of the device configs and recognized that

handlers:
  bootloader_locked:
    actions:
      - fastboot:oem_unlock:

is implemented but without the field code_url: "someurl" they get no input to enter the code. Which causes the unlock to fail.
Of course you can prompt the user to unlock the device before he even starts the install but this case should be handled properly.
One solution would be to add those missing field. (I don't know if all vendors are providing codes - other tools might be needed)

@maciek134
Copy link
Contributor

A lot of vendors are not using unlock codes. Are you suggesting showing the prompt without the code_url (something like show_prompt?), or going through device configs and adding the url where needed?

@pajlow
Copy link
Author

pajlow commented Sep 9, 2022

For devices that allow unlock codes I would suggest adding the missing field. I am confused with Xiaomi though. @NotKit provided this URL https://en.miui.com/unlock/ in his unlock step which returns text files with random naming (unlock codes?).
But we need to somehow verify this actually works.
Another why would be to tell the user what actually went wrong in some error message with some follow up action.

@maciek134
Copy link
Contributor

That's a weird url, maybe they changed it, before you could download the software there - afaik Xiaomi requires the use of their (Windows only) tool to unlock the bootloader and you don't actually see the code, but it's been a while since I unlocked one so maybe something changed or I didn't notice.

@amartinz
Copy link
Member

amartinz commented Sep 9, 2022

I think the new URL is: https://en.miui.com/unlock/download_en.html

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

No branches or pull requests

3 participants