-
Notifications
You must be signed in to change notification settings - Fork 28
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
Find a solution !? Two issues issue 1 : Code 20038 ?! issue 2 : In settings > dev > "mi unlock status" it says bootloader unlocked, but in bootloader mode it says locked ?! #15
Comments
It seems that the device is linked to another account, but I do not know the exact cause of the problem So there is no "add account and device" button in developer options !!! It appears that the bootloader is unlocked !! Try the following steps :to ensure that the bootloader is completely locked, reboot device in bootloader mode: Try using the command : fastboot getvar unlocked If the bootloader is locked, the result will be : no Then try using the command : fastboot oem lock the result will be : Device is already locked If you get a result "no" on the first command, and a result "Device is already locked" on the second command :
( If no button "add account and device" appears tell me that ) |
Thank you for help. I also think that the device is probably linked to Settings in device was: I tried your steps: fastboot getvar unlocked fastboot oem lock Then I did factory reset but the state in settings is the same: Developer options » Mi unlock status » This device is unlocked Maybe it could help to flash the MIUI firmware via fastboot if possible? |
I believe, according to my analysis, that the cause of the problem is a files build.prop, default.prop .. Why does the text “This device is unlocked” appear, even though the device’s bootloader is locked, the reason is: In the settings application path package: com.android.settings.bootloader.BootloaderStatusActivity Exactly in line 37 the status of the bootloader is checked whether it is unlocked or locked via "ro.secureboot.lockstate" In your case, the result is returned: unlocked, (if my analysis is correct) The answer to your question about flashing a Fastboot ROM Suggest a solution:You can try flash Stock ROM recovery with mi assistant ( Even if the bootloader is locked ) with MiAssistantTool . If the method did not work, try with edl mode The only solution : Contact Xiaomi support team or use a paid tool . |
As the device was new, I claimed a warranty and a seller returned me |
On line 37, So that mi status unlock can open to add my account again. Mi assistant tool only flashed OTA on recovery mode, but did not change the lock state. |
If you tried flashing recovery ROM with mi assistant and still have the same issue .. |
to add onto this, this error, specifically on brand new devices, back in the day was usually related to the reseller putting a malicious custom ROM on the device, if this happens to you check the product authentication page on the xiaomi website, and it will almost 100% show you that the device is not the official global version, this used to be a much larger problem with older xiaomi devices, where resellers would reflash the CN version of the device with a global version of MIUI packed with malware, and then relock the bootloader in a way that would make unlocking it impossible after (the dev options would show the device is unlocked, when it was actually locked) and then resell the device for cheap, profiting off of stolen data afterwards |
Thanks for this info. I flashed the Official China ROM, and the bootloader is now evidently LOCKED. It seems xiaomi does not want to unlock bootloader again. Futile efforts ever since. Specifically bought EOL Device for custom roms. |
Additionally, if I flash official Global or EU or any MIUI ROM. |
please send the results of: https://www.mi.com/global/verify/ also, if you managed to install the chinese ROM i imagine you have the patched firehose loader file? also also, "the system is destroyed" could be related to anti-rollback, and not with the rom itself, one thing you could try is using https://github.com/bkerler/edl with the "edl modules oemunlock enable" command, by loading the patched firehose file you have (or use the tool's automatic detection to search if one of the pre-packaged loaders works with your device), i am not responsible for damages that could happen with this tool, but it could be useful for your quest if you are skilled enough to learn to use it, good luck |
Thank you slg407, the Device Xiaomi Redmi 40 pro is verified original. Actually if I try to downgrade on EDL to lower Chinese ROM, I will get Anti Rollback Error. Unable flash error on mi Flash tool. Only flashing Global ROM causes system Destroyed.(Successful flashed, but display system destroyed on boot, nothing else works) I will try the tool you suggested and give a feedback here. |
for using the tool you first run that command i sent, then you try to unlock via fastboot after, the command i sent only actually enables unlocking |
@slg407 I have been able to setup and py build the tool on windows, but errors with lib and USB does not make edl loader detect the phone. hope you can help out. but here is what I have tried, EDL for redmi k40 pro uses onboard edl point to short circuit. only Q9008 port works here is the error: |
if this does not work try with the winUSB option instead |
WinUSB works, to replace the Q9008. |
Please can you help get the right Firehose loader for Redmi K40 pro |
I am trying to unlock the Redmi 5 Plus (vince). I finished with this:
=========================================================
product saved successfully
token saved successfully
DeviceInfo:
product: vince
token: ******
AccountInfo:
id: ******
region: *******
code: 20038
description: 该手机已被账号 145****753 通过查找手机锁定,无法解锁
What I found strange is that in settings there is information that the device is unlocked. But the output of command "fastboot oem device-info" is different:
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
I would appreciate any idea how to solve it. Thank you.
The text was updated successfully, but these errors were encountered: