Unlock OEM via ADB - Xiaomi Mi A2 / 6X Questions & Answers

Hi, so my Xiaomi MI A2 is kinda not working and I think that wiping cache partition might help but I can't access the recovery so I wanted to install TWRP. The thing is I have the boatloader locked, I have the USB depuration activated but not the OEM, so how can I unlock boatload or unlock OEM via fastboot?
Thanks

_08_ said:
Hi, so my Xiaomi MI A2 is kinda not working and I think that wiping cache partition might help but I can't access the recovery so I wanted to install TWRP. The thing is I have the boatloader locked, I have the USB depuration activated but not the OEM, so how can I unlock boatload or unlock OEM via fastboot?
Thanks
Click to expand...
Click to collapse
run "fastboot oem unlock" and "fastboot oem unlock_critical" see if its execute without error , then run " fastboot oem device-info" , let us know what the result.

shihabrumel said:
run "fastboot oem unlock" and "fastboot oem unlock_critical" see if its execute without error , then run " fastboot oem device-info" , let us know what the result.
Click to expand...
Click to collapse
It won't let me. It says:
my command: fastboot oem unlock System: FAILED (remote "flashing unlock is not allowed")
Fastboot: error: command failed.
Same with the critical. I also had an error trying another command, it said, not allowed in lock mode.
Actually, I'm trying other commands and it's the same error with all comands.

My Mi A2 was not booting
My mi a2 last updated to 19/04/05 pie version, then i install the Google camera using below steps..
1. Turn on debugging mode/oem & turn off the phone
2. Then power button+vol dwn Fastboot mode & connect to pc (Pc already have the adb)
3. In pc>adb>folder>Cmd> type "fastboot oem unlock"
4. Then factory reset the phone and reboot again to fastboot mode
5. Then boot the patched image for phone
6. Then install the magisk and gcam work perfectly.
Simply i used these methods
the***********.com/enable-camera2-api-xiaomi-mi-a2-lite-guide/
But then I tried to relock the bootloader, using below commands on cmd
1. "adb reboot-bootloader"
2."fastboot oem lock"
I tried these 2 commands 4 or 5 times
But phone is not power on with locked bootloader. Then I unlock again oem and try again,, But not working,
Then i unlock bootloader again and try these commands to lock it again,
1. "adb reboot-bootloader"
2."fastboot flashing lock"
3. "fastboot oem lock"
Unfortunately it is not work, also i can't give command "fastboot oem unlock", also i can't turn on my phone, Please help me... I want to restore my phone to working mode... Please help me, Quick, urgent :crying::crying::crying::crying:

Related

Stuck In Fastboot

I don't have a backup, I installed CM11 and then locked the bootloader but now it won't boot and is stuck in the Fastboot menu. When I type "fastboot oem unlock" it says command error!!
lewiskay13 said:
I don't have a backup, I installed CM11 and then locked the bootloader but now it won't boot and is stuck in the Fastboot menu. When I type "fastboot oem unlock" it says command error!!
Click to expand...
Click to collapse
It's because you are entering the wrong command. "fastboot oem unlock" is used on nexus devices. The command you will have to use to unlock is this, keeping the unlock token you got from HTCDev in the same directory as the fastboot binary
Code:
fastboot flash unlock token Unlock_code.bin
lewiskay13 said:
I don't have a backup, I installed CM11 and then locked the bootloader but now it won't boot and is stuck in the Fastboot menu. When I type "fastboot oem unlock" it says command error!!
Click to expand...
Click to collapse
you cannot lock bootloader after installing custom system as it wont detect the system.

Unable to unlock N6 bootloader (Android 6.0.1 Build MMB29X) [resolved]

Hi,
I am unable to unlock the bootloader on my Nexus 6, which was purchased new from Amazon.com. Or more accurately, I can issue the fastboot flashing unlock command without error, but my phone still says LOCKED and screen is frozen for 60 seconds.
I have followed the various HOWTOs on this website to the best of my ability:
1. Installed latest Android SDK tools(25.1.4.rc1), Platform-tools (24rc2) & Java8. I originally installed with the 23.1 platform-tools but then moved to the preview channel release when I had no luck.
2. USB debugging and OEM unlocking are both ON
3. Both "adb device" and "fastboot device" show my phone's serial number when in their respective modes, so I know communication is good between my laptop and phone.
How to replicate problem:
a. With my phone connected, I first issued "adb reboot bootloader". My phone then sucessfully changes to the AP Fastboot Flash Mode (Secure) screen. Beneath the green BATTERY OK (Charging) are the lines
Device is LOCKED. Status Code: 2
Transfer Mode: USB Connected
b. I then type "fastboot flashing unlock" and the output is
...
OKAY [ 0.016s]
finished. total time: 0.016s
However my phone does not ask me if I want to unlock. In fact, the screen then appears to be frozen -- pressing the volume up and down buttons does not change the power button selection menu. If I try to issue any other fastboot command, it says FAILED (command write failed (Unknown error)) finished. total time: 5.017s
The screen is frozen for 60 seconds. After that, the bootloader screen is once again functional (I can change menu options again) and I can issue new fastboot commands, such as 'fastboot reboot'
However, the device still says LOCKED and will refreeze for 60 seconds if I type 'fastboot flashing unlock'
Any suggestions would be appreciated!
Thank you.
type fastboot oem unlock to unlock your bootloader, then follow instruction. But beware, this will wipe your device
TMG1961 said:
type fastboot oem unlock to unlock your bootloader, then follow instruction. But beware, this will wipe your device
Click to expand...
Click to collapse
In newer versions of fastboot, the command is fastboot flashing unlock, not OEM unlock.
Code:
$ ./fastboot
usage: fastboot [ <option> ] <command>
commands:
update <filename> Reflash device from update.zip.
flashall Flash boot, system, vendor, and --
if found -- recovery.
flash <partition> [ <filename> ] Write a file to a flash partition.
flashing lock Locks the device. Prevents flashing.
flashing unlock Unlocks the device. Allows flashing
any partition except
bootloader-related partitions.
@webtrader,
@TMG1961 was trying to help you. Have you tried his recommendation before replying?
cam30era said:
@webtrader,
@TMG1961 was trying to help you. Have you tried his recommendation before replying?
Click to expand...
Click to collapse
No, I had not. I tried using fastboot oem unlock on an older version of the SDK toolkit and that had failed, but I had not tried using oem unlock again on the latest version, having noticed that "oem unlock" was no longer listed as an option.
I just tried it now on the latest SDK toolkit and it does indeed work for me. :good:
Thank you to the both of you for helping me out!
webtrader said:
No, I had not. I tried using fastboot oem unlock on an older version of the SDK toolkit and that had failed, but I had not tried using oem unlock again on the latest version, having noticed that "oem unlock" was no longer listed as an option.
I just tried it now on the latest SDK toolkit and it does indeed work for me. :good:
Thank you to the both of you for helping me out!
Click to expand...
Click to collapse
Welcome
i do believe the "fastboot flashing unlock" is for when a manufacture issues a binary token kinda of like how HTC does it. If the Nexus or any phone that is not carrier branded, "fastboot oem unlock" will be the command to pass.

Can't access full fastboot commands

Hi all, I was wondering if you know, after bootloader unlocking, why I can't access full fastboot commands as the one to remotely boot a recovery. "fastboot boot recovery.img" says "Failed: Command not allowed" and also does "fastboot oem ?" to list oem commands. OEM unlocking is permanently On , on the Dev Options and as I said before, bootloader is unlocked. But, I still can, I guess, flash boot, recovery etc. but I don't want to do it right now. I can tell it because so happened on my previous Huawei Phone and what's happening now on my P10 is the same thing. Thanks in advance.
Up, my ROM is VTR-L09C55B130 stock and I'm on Android 7.0

Mi A2 ?? Need help

My mi a2 last updated to 19/04/05 pie version, then i install the Google camera using below steps..
1. Turn on debugging mode/oem & turn off the phone
2. Then power button+vol dwn Fastboot mode & connect to pc (Pc already have the adb)
3. In pc>adb>folder>Cmd> type "fastboot oem unlock"
4. Then factory reset the phone and reboot again to fastboot mode
5. Then boot the patched image for phone
6. Then install the magisk and gcam work perfectly.
Simply i used these methods
the***********.com/enable-camera2-api-xiaomi-mi-a2-lite-guide/
But then I tried to relock the bootloader, using below commands on cmd
1. "adb reboot-bootloader"
2."fastboot oem lock"
I tried these 2 commands 4 or 5 times
But phone is not power on with locked bootloader. Then I unlock again oem and try again,, But not working,
Then i unlock bootloader again and try these commands to lock it again,
1. "adb reboot-bootloader"
2."fastboot flashing lock"
3. "fastboot oem lock"
Unfortunately it is not work, also i can't give command "fastboot oem unlock", also i can't turn on my phone, Please help me... I want to restore my phone to working mode... Please help me, Quick, urgent :crying::crying::crying::crying:
No one is replying, I asked two questions about root and custom rom but these d!cks are so enormous that they don't want to help anyone else:
shailendra1993 said:
No one is replying, I asked two questions about root and custom rom but these d!cks are so enormous that they don't want to help anyone else:
Click to expand...
Click to collapse
Bro, you have to flash non patched boot.img before relocking bootloader.
After you did all of above for enabling gcam, you have to flash stock/ non patched boot img.
Btw, if you relock bootloader gcam wont work any more.
And you have to be patiente for solution.
shailendra1993 said:
No one is replying, I asked two questions about root and custom rom but these d!cks are so enormous that they don't want to help anyone else:
Click to expand...
Click to collapse
Yeah, i need a solution for it, but no one answering, My phone load fastboot mode only,:crying::crying:
Androidman12345 said:
Yeah, i need a solution for it, but no one answering, My phone load fastboot mode only,:crying::crying:
Click to expand...
Click to collapse
Flash a full fastboot image. Relock the bootloader and enjoy android one.
The lack of camera2 api is better than a paper weight?

phone corrupt and cant be trusted

i tried rooting my device but something went wrong after flashing the boot.img
now the device is stuck and i can only access fastboot.
i tried accessing the recovery but i get the same error msg.
i tried flashing every recovery img that exist for the red magic 3 but with no success
Flashing Unlock
Hey, make sure that you have first unlocked the bootloader with the fastboot command: "fastboot flashing unlock". Try it. It will erase all your data and do a reset factory and then you should be able to reboot your device normally. Also, it will let you flash the boot.img for root your device.
Perseo99 said:
Hey, make sure that you have first unlocked the bootloader with the fastboot command: "fastboot flashing unlock". Try it. It will erase all your data and do a reset factory and then you should be able to reboot your device normally. Also, it will let you flash the boot.img for root your device.
Click to expand...
Click to collapse
when i type "fastboot flashing unlock" in cmd it shows nothing .. just showing what commands i can do with fastboot
mashkalny said:
when i type "fastboot flashing unlock" in cmd it shows nothing .. just showing what commands i can do with fastboot
Click to expand...
Click to collapse
Did you let unlock bootloader and permitted the USB debbugin on the developers option before flash the boot.img?
Make sure you are using a USB 2.0 to connect your device to the PC. See if you PC recognizes the device into the fastboot menu with "fastboot devices", if doesn't, try reboot another phone with "adb rebbot bootloader", then enter "fastboot devices", your device should be listed into de the devices attached. Then try again entering "fastboot flashing unlock".
Perseo99 said:
Did you let unlock bootloader and permitted the USB debbugin on the developers option before flash the boot.img?
Make sure you are using a USB 2.0 to connect your device to the PC. See if you PC recognizes the device into the fastboot menu with "fastboot devices", if doesn't, try reboot another phone with "adb rebbot bootloader", then enter "fastboot devices", your device should be listed into de the devices attached. Then try again entering "fastboot flashing unlock".
Click to expand...
Click to collapse
i believe i forgot to unlock the bootloader when i tried to root. now i cant access anything in the fastboot mode.
mashkalny said:
i believe i forgot to unlock the bootloader when i tried to root. now i cant access anything in the fastboot mode.
Click to expand...
Click to collapse
Oh, that could be a problem. Try to use this tool. I hope you can get your phone working again. If this doesn't works, try to flash the original boot.img of your firmware version.
https://forum.xda-developers.com/re.../tool-nubia-red-magic-3-unbirck-tool-t3965044

Categories

Resources