How To Guide PSA: Fix for "Device Corrupted" when trying to relock bootloader. - Lenovo Legion Y700

plempereur said:
A few notes on my experience with this tablet : I got it with the global rom and I wished to flash the stock rom and re-lock the tablet after to restore it in the original factory state :
- Flashed the CN rom using this guide, it went fine. I used "adb oem edl" to enter EDL mode as the mehod with the buttons did not work for me
- Re locked using "fastboot flashing lock" from the bootloader menu (vol+up), not the fastboot menu. (this driver was needed to "see" the tablet with fastboot)
- The tablet was bricked (refused to boot after re-locking / some error messsage like "system corrupted / unable to boot" then after this it just kept going to the bootloader when turning on)
- Unlocked the bootloader using "fastboot oem unlock-go"
- Managed to flash again from EDL, to enter EDL again (took me a bit of time to figure this) I had to use "fastboot oem reboot-edl" from the bootloader
- Starting over I did all the OTA updates up to ZUI14 "14.0.255 ST" (I received the updates even if the tablet bootloader is unlocked), then did a "Factory data reset" from the settings menu.
- After this I attempted to lock again and... it worked. Not 100% sure if it's due to the Z14 OTA, the factory reset or both (I suspect the OTA).
(I am keeping the "OEM unlocking" (allows the unlocking of the bootloader) option enabled in the developper options just in case I need to re-flash for some reason in the future)
Hope this can help others,
Cheers
Click to expand...
Click to collapse
Reposting this guide from @plempereur as it deserves prominent attention.

OMGrant said:
Reposting this guide from @plempereur as it deserves prominent attention.
Click to expand...
Click to collapse
I used this guide mentioned in that post, but this post helped me solve some issues I had. We need a sticky with links to all the posts in that one long thread because there's so much information in there and its buried.

Related

Can't access fastboot mode

I was gifted a Nexus 6 after my 5X died. As far as I know the device has never been OEM unlocked, much less flashed with anything. I've unlocked developer options and allowed USB debugging and OEM unlock but when I try to use power+Vol(-) to get into fastboot mode nothing happens, the screen is just black. When I bridged the device using ADB I could see the serial number and tried using the boot into recovery mode command and it rebooted to the same black screen. When I used fastboot commands on the black screen I could see the device and tried running fastboot oem unlock, it did something but wasn't successful in unlocking it. I'm not prepared to just start running fastboot commands blind like that without being able to see what's happening on the device's screen.
It's a curious problem, has anyone ever heard of it happening before? I can't find anything similar when I google it.
All I really want to do is clear the Dalvik cache and flash the latest factory image because currently, even after doing a factory reset, the device is very slow and laggy.
Is there anyway I could clear all the caches etc without going into fastboot mode or does anyone know of any fixes I could use so I can see the recovery menu?
If you boot to bootloader mode, then "fastboot boot <TWRP.img>" you might be able run twrp on your pc and clear caches. If it works, I'd consider factory resetting. You can get twrp here: https://dl.twrp.me/shamu/
I have considered that. But that requires OEM unlock, no? I still haven't managed to unlock it yet. The first time I tried, I said yes to unlock (it involves using the rocker to select a response, which I can't see the options for) but in the command window it said it failed (can't remember the error message though). I was going to try again today but because I couldn't see the options when I tried it said I'd cancelled the operation and I was too scared to try again in case something went wrong.
But, do you think I should try the fastboot oem unlock command again? I definitely need OEM unlock to install TWRP, right?
connorjolley said:
I have considered that. But that requires OEM unlock, no? I still haven't managed to unlock it yet. The first time I tried, I said yes to unlock (it involves using the rocker to select a response, which I can't see the options for) but in the command window it said it failed (can't remember the error message though). I was going to try again today but because I couldn't see the options when I tried it said I'd cancelled the operation and I was too scared to try again in case something went wrong.
But, do you think I should try the fastboot oem unlock command again? I definitely need OEM unlock to install TWRP, right?
Click to expand...
Click to collapse
To install twrp yes, you need an unlocked bootloader. This doesn't install twrp on the device. I believe it should work. It certainly shouldn't hurt. I've been unlocked since the N6 came out so I can't double check for you.
If it doesn't work, I'd be a bit inclined to just flash a factory image thus ensuring everything is stock and current. You might want to wait for others to chime in, but it's what I would do.
You may consider downloading Nexus Root Toolkit, works like a charm : ).
I can't just flash the stock bootloader without OEM unlock, right?
connorjolley said:
I can't just flash the stock bootloader without OEM unlock, right?
Click to expand...
Click to collapse
Correct, you need to be unlocked to flash a factory image, that includes the bootloader. See Google's instructions. Don't get confused by the "fastboot oem unlock"
vrs "fastboot flashing unlock" we are an older device and use oem unlock. The other is for the 6P and newer devices.
ktmom said:
Correct, you need to be unlocked to flash a factory image, that includes the bootloader. See Google's instructions. Don't get confused by the "fastboot oem unlock"
vrs "fastboot flashing unlock" we are an older device and use oem unlock. The other is for the 6P and newer devices.
Click to expand...
Click to collapse
Successfully unlocked. TWRP didn't help, still can't see the bootloader menu to access the recovery. I'm flashing the factory image now, hopefully a new bootloader will fix it. If not, is there anyway to clear the Dalvik cache using fastboot commands now the phone is unlocked?
UPDATE
Still a black screen even with a new bootloader flash. I'm assuming now this must be a hardware problem
connorjolley said:
Successfully unlocked. TWRP didn't help, still can't see the bootloader menu to access the recovery. I'm flashing the factory image now, hopefully a new bootloader will fix it. If not, is there anyway to clear the Dalvik cache using fastboot commands now the phone is unlocked?
Click to expand...
Click to collapse
I think the command is "fastboot erase cache". Also, unlocking will have wiped the device.
connorjolley said:
UPDATE
Still a black screen even with a new bootloader flash. I'm assuming now this must be a hardware problem
Click to expand...
Click to collapse
Why not just flash the entire factory image you got the bootloader from? What can it hurt? It would be really odd for this to be hardware if you can boot into the ROM and the screen works.

LOCK Oneplus 5 Bootloader (GUIDE)

Hi guys, if you are like me trying to lock the bootloader to get Android Pay, or Netflix back up and running without much fuss, I found a way to lock the bootloader.
WARNING: This will do a factory reset to your device, so do backups...
Requires:
- Official OOS flashed (Download here the full zip file for the latest OOS, you can flash through TWRP or stock Recovery)
- Latest Fastboot drivers and SDK file
- Basic knowledge of Fastboot commands
Guide:
- Boot the device into Bootloader mode (power the device with Volume up + Power Button)
- Connect to the PC
- Run the command "fastboot flashing lock"
- On the device, using the volume keys select "Yes" to lock the bootoader
And that's it, the 1st boot will take longer, but just wait.
Hope this helps =)
@hugoprh
It should be
Code:
fastboot oem lock
instead of
Code:
fastboot flashing lock
as OnePlus still uses the older LK. Only Nexus 6P & Pixel/Pixel XL have updated LK that includes these changes.
You should also mention that this procedures factory resets the device i.e. the internal memory is wiped.
Titokhan said:
@hugoprh
It should be
Code:
fastboot oem lock
instead of
Code:
fastboot flashing lock
as OnePlus still uses the older LK. Only Nexus 6P & Pixel/Pixel XL have updated LK that includes these changes.
You should also mention that this procedures factory resets the device i.e. the internal memory is wiped.
Click to expand...
Click to collapse
Hi, thanks for your feedback, but I did try "fastboot oem lock", as other XDA Oneplus 5 users have tried as well, without success, so I tried the Nexus 6p way "fastboot flashing lock" and it worked and this is the reason I decided to make this guide and I did write a "WARNING" about this procedure doing a factory reset, it's written in bold and underlined, please read carefully.
hugoprh said:
Hi, thanks for your feedback, but I did try "fastboot oem lock", as other XDA Oneplus 5 users have tried as well, without success, so I tried the Nexus 6p way "fastboot flashing lock" and it worked and this is the reason I decided to make this guide and I did write a "WARNING" about this procedure doing a factory reset, it's written in bold and underlined, please read carefully.
Click to expand...
Click to collapse
Let me explore the firmware - it would a curious case of hybridization then.
Regarding the warning: Yah, my bad... missed it somehow.
Trying to relock my bootloader, everytime I get to the fastboot screen I scroll through to "START" and select it using the power button the phone shuts off and reboots. Having a hard time getting into fastboot. any suggestions?
rgreene1971 said:
Trying to relock my bootloader, everytime I get to the fastboot screen I scroll through to "START" and select it using the power button the phone shuts off and reboots. Having a hard time getting into fastboot. any suggestions?
Click to expand...
Click to collapse
I was able to figure out my fastboot issues and able to flash twrp and revert back to a stock image, however when I try to lock the boot loader i get the error "FAILED (remote: flashing lock is not allowed).
Any ideas on the direction I need to go?
rgreene1971 said:
I was able to figure out my fastboot issues and able to flash twrp and revert back to a stock image, however when I try to lock the boot loader i get the error "FAILED (remote: flashing lock is not allowed).
Any ideas on the direction I need to go?
Click to expand...
Click to collapse
+1
rgreene1971 said:
I was able to figure out my fastboot issues and able to flash twrp and revert back to a stock image, however when I try to lock the boot loader i get the error "FAILED (remote: flashing lock is not allowed).
Any ideas on the direction I need to go?
Click to expand...
Click to collapse
You need to turn on OEM Unlocking in Developer Settings. If for any reason OEM Unlocking is freezed, flash Magisk and then turn on OEM Unlocking. Flash the stock recovery and the lock bootloader command. It should work flawless!
Don't forget the backup!
Why lock? Why not just use Magisk? That works fine with Android Pay.
You don't need to lock your bootloader to use Netflix
nagorimayank said:
You need to turn on OEM Unlocking in Developer Settings. If for any reason OEM Unlocking is freezed, flash Magisk and then turn on OEM Unlocking. Flash the stock recovery and the lock bootloader command. It should work flawless!
Don't forget the backup!
Click to expand...
Click to collapse
I am getting the same error saying that Flashing Lock is not allowed.I did what you said to do but the i can't turn on the OEM Unlocking in Developer Settings since it is greyed out.
What should i do?
mullafabz said:
I am getting the same error saying that Flashing Lock is not allowed.I did what you said to do but the i can't turn on the OEM Unlocking in Developer Settings since it is greyed out.
What should i do?
Click to expand...
Click to collapse
What I did was install custom ROM, the option isn't greyed out. Then try again. But make sure you install stock ROM and recovery before bootloader lock.
beache said:
What I did was install custom ROM, the option isn't greyed out. Then try again. But make sure you install stock ROM and recovery before bootloader lock.
Click to expand...
Click to collapse
I managed to lock back the bootloader but now am stuck in an bootloop.
mullafabz said:
I managed to lock back the bootloader but now am stuck in an bootloop.
Click to expand...
Click to collapse
You have to format data in recovery

[Solution]BL unlocked&FRP Locked-Fastboot FAILED (remote: Command not allowed)

Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes AND WORKS ONLY AND ONLY FOR STOCK people with no experience stay away
This is not a comprehensive solution, if you don't know what you're doing then don't do it!
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device. (Factory Reset implies removing Fingerprints and standard Factory Reset)
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes, although I think I've covered everything, people with no experience stay away, this is not a comprehensive solution, if you don't know what you're doing then don't do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with except andfastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
The OEM Unlock option now is greyed out and ACTIVE
Sucess!
After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.
Click to expand...
Click to collapse
Can i have your permission to add this guide to the unified help thread (FAQ post> "error: command not allowed") in this subforum. I will credit you by mention ofc.
fu**ing great, if I try to relock its says stat not match!!!!! Anyone ?
title
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes, although I think I've covered everything, people with no experience stay away, this is not a comprehensive solution, if you don't know what you're doing then don't do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Click to expand...
Click to collapse
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Thank you very much! I spent many hours looking for a solution to this problem!
Your solution is incredible! Can I share your steps in Spanish for more people? I live in Mexico and I know more people with this problem. And of course I give you the credits for this magnificent solution. I'm sorry for my English, I know I write badly in this language
I have strange problem... I have "Phone unlocked, frp lock". But on my P9 Lite only fastboot mode works.
Rrecovery mode (vol+ i power) or download mode (vol+, vol-, power) are not responding - phone reboots always to Huawei logo.
Any way to fix that?
My phone its f***
What i do
Honor 7x
skiswim said:
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Click to expand...
Click to collapse
Me too
Any idea?
tootysa said:
Me too
Any idea?
Click to expand...
Click to collapse
I have a solution for you both.
I mistakenly followed the instructions above but made the mistake of not skipping everything. I got the message "Data partition corrupted do you want to format the partition" or something similar, DO NOT FORMAT ANYTHING, it should boot up normaly. I'm a bit rusty in my rooting ways u_u
Now, I got exactly the same situation as you both "Relocked" and "FRP Locked". I was able to get into the eRecovery and this is way to restore your phone.
1.- You need to get the Huawei Firmware Finder (Team MT) (https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146)
2.- Unzip it and run FirmwareFinderRewrite.exe
3.- Go to the tab that says Common Base
4.- Search for the update that you know it works in my case was VNS-L31C432B388 (I tried to use VNS-L31C432B404 but its still "not active" whatever that means). Look for the FullOTA and copy the change log address (in my case: http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1258/g104/v91282/f1/full/changelog.xml)
5.- In the icons above the Tabs pres on the cloud with a page infront, the tooltip should say Proxy
6.- Copy the changelog addres in the section Firmware for install and press Set.
7.- Press Register for Update
8.- Follow the instructions bellow this (Change your DNS temporarily)
9.- In your phone go to the eRecovery.
10.- Connect to WLAN and it should find a package.
10a.- In case it doesn't find it, go back to step 4. You probably got 2 packages with the same name. I do not enterily understand the differences but I assume one is for one region and the other for other region.
11.- Wait until it restores and be happy.
If you can not change the DNS in you router, as it was my case. You can set a hotspot with your laptop/desktop and change the DNS there but you still need and active internet conection.
I connected my cellphone to my laptop via WLAN and my laptop to the router via Ethernet which provides internet. I change both DNS's for both connections.
skiswim said:
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Click to expand...
Click to collapse
tootysa said:
My phone its f***
What i do
Honor 7x
Click to expand...
Click to collapse
tootysa said:
Me too
Any idea?
Click to expand...
Click to collapse
Did you guys unlock your bootloader prior to having this situation? aka did you start with
Phone unlocked.
FRP locked.
My solution is for this situation ^ and this situation only, not for any other case.
One other thing it springs right now in my mind is, did you factory reset and delete the fingerprints ? As this might be related...
Kucharskov said:
I have strange problem... I have "Phone unlocked, frp lock". But on my P9 Lite only fastboot mode works.
Rrecovery mode (vol+ i power) or download mode (vol+, vol-, power) are not responding - phone reboots always to Huawei logo.
Any way to fix that?
Click to expand...
Click to collapse
That's called a soft brick and have you tried eRecovery?
You need to go back to stock using a stock firmware which you have to find on the internet, then make a folder on your SDCard called DLOAD and put it in there, then press all three buttons and the eRecovery should boot up and detect the stock firmware.
EDIT: The guys that got stuck didn't read the part where I said VNS-L31 On B380 and did this having a custom ROM. How I know this? I've also followed my own guide and in the moment you relock your bootloader you will NOT be able to boot into your ROM anymore and you will boot to e-recovery
(which doesn't give too many options), if you were on Nougat or even on Marshmallow (skip the rollback part? )follow the rollback tutorial from N to MM from this Forum Section to get back to stock C432B160/1 , if you can't find the link just PM me
Again, I have VNS-L31 and I'm talking only from what I did, I don't know anything about your device
Man it's not working for me to relock the bootloader. its the same result. what can i do?
really need your help sir
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes AND WORKS ONLY AND ONLY FOR STOCK people with no experience stay away
This is not a comprehensive solution, if you don't know what you're doing then don't do it!
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device. (Factory Reset implies removing Fingerprints and standard Factory Reset)
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Click to expand...
Click to collapse
Sir please help me , I need step by step tutorial from you please I need your facebook account name and I will pm you.
I'm on stock ROM and already do factory reset. But the bootloader still unlocked. When I'm trying to lock, its failed. Can someone help me?
my phone seems to be stuck at emui circled been about 5mins like that
honor 9 lite
Alexander33 said:
Did you guys unlock your bootloader prior to having this situation? aka did you start with
Phone unlocked.
FRP locked.
My solution is for this situation ^ and this situation only, not for any other case.
One other thing it springs right now in my mind is, did you factory reset and delete the fingerprints ? As this might be related...
That's called a soft brick and have you tried eRecovery?
You need to go back to stock using a stock firmware which you have to find on the internet, then make a folder on your SDCard called DLOAD and put it in there, then press all three buttons and the eRecovery should boot up and detect the stock firmware.
EDIT: The guys that got stuck didn't read the part where I said VNS-L31 On B380 and did this having a custom ROM. How I know this? I've also followed my own guide and in the moment you relock your bootloader you will NOT be able to boot into your ROM anymore and you will boot to e-recovery
(which doesn't give too many options), if you were on Nougat or even on Marshmallow (skip the rollback part? )follow the rollback tutorial from N to MM from this Forum Section to get back to stock C432B160/1 , if you can't find the link just PM me
Again, I have VNS-L31 and I'm talking only from what I did, I don't know anything about your device
Click to expand...
Click to collapse
If you have this situation : phone Relocked --> its mean that the phone has been unlocked before and then relocked
If you have this situation : phone locked --> its mean that the phone has never been unlocked before
it's a security from huawei to know if the phone still have a warranty
I have the same situation : phone relocked and frp lock (P20 lite with ANE-LX1 C652 )
because i relocked the bootloader without leaving the frp unlocked.
When you relock the bootloader ( relock phone) the phone will do an automatic factory reset, and if he fail with, you can't unlock bootloader again because of the frp lock, and you can not unlock frp from developper option because the phone won't start.
I tried the Firmware Finder solution to get erecovery working with DNS, i found an update for (ANE-LX1 C652 not FullOTA) and i register it for download, the phone start downloading, after finish downloading i get a fail install error.
i tried register many version C432 C185 ..... but the erecovery is not reconizing them i think that i need a FullOTA for my ANE-LX1 C652.
Installing update with sdcard dload, always fail .
re
Hello dear,
so i have unlocked my phone and this was the beginning of the problems, I had to deal with samsung phones before but the huawei was very sensitive, so i got into a problem and broke the phone system, which had taken the phone to an expert and had restored the stock phone system n it was good to roll back ,phone to work at least, he tells me that he did relock the bootloader but the message of warning still appears everytime i booted up ,
now ive the same problem as u have, and i noticed that the adb commands works only when the phone is on system ,either when i enter the FASTBOOT MODE ,ADB commands do not work anymore ,even the gray OEM unlocking,, and now i do not know if this solution works with me or not ,if i can get rid the warning message?? i dont need that silly unlocking anymore
ِِCan u advise me PLEASE !!!!
markraiem said:
Hello dear,
so i have unlocked my phone and this was the beginning of the problems, I had to deal with samsung phones before but the huawei was very sensitive, so i got into a problem and broke the phone system, which had taken the phone to an expert and had restored the stock phone system n it was good to roll back ,phone to work at least, he tells me that he did relock the bootloader but the message of warning still appears everytime i booted up ,
now ive the same problem as u have, and i noticed that the adb commands works only when the phone is on system ,either when i enter the FASTBOOT MODE ,ADB commands do not work anymore ,even the gray OEM unlocking,, and now i do not know if this solution works with me or not ,if i can get rid the warning message?? i dont need that silly unlocking anymore
ِِCan u advise me PLEASE !!!!
Click to expand...
Click to collapse
The warning will always appear as long as the Bootloader is unlocked. read the first 3 conditions . If you are on stock and can boot on stock, delete fingerprints and any PINs and Google accounts, then Factory Reset and this should set you to FPR Unlocked, BL Unlocked. Here just lock the bootloader back and then reboot normally and use the device as you normally do, the moment you add your Google Account and/or Fingerprint the FRP will lock back. If you want to continue flashing custom ROMs etc. follow the tutorial but read all the comments (relevant ones) before you do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Settings -> Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Click to expand...
Click to collapse
if that applies to you, you can try my tutorial, otherwise I have no other suggestion for you, I quit tampering with my Huawei long ago, stock is quite fine for me.
I don't have the code, how do i lock and unlock bootloader? thx
to me puts
PHONE Locked
FRP Lock
phone stuck on recovery mode

Flash Official ROM A2

Hello all!
I recently bought a second hand Xiaomi MI A2 online however I found a problem.
The previous owner did a factory reset on it but I'm stuck in the initial set up configuration because it asks me for the google account credentials attached to the phone. I texted the previous owner but had no answer.
So I tried to flash the official ROM to bypass the issue but I get an error message from Xiaomi Flash Tool saying "remote: Flash is not allowed in Lock State".
I think this is happening for one of the following reasons:
The previous owner didn't enable USB Debugging (thing I can't do because I'm stuck in the set up configuration)
The bootloader is locked (and I can't unlock it because I don't have the credentials of the attached account)
Does anyone knows how can I solve this problem?
Thank you for your attention
Joaosacramento said:
Hello all!
I recently bought a second hand Xiaomi MI A2 online however I found a problem.
The previous owner did a factory reset on it but I'm stuck in the initial set up configuration because it asks me for the google account credentials attached to the phone. I texted the previous owner but had no answer.
So I tried to flash the official ROM to bypass the issue but I get an error message from Xiaomi Flash Tool saying "remote: Flash is not allowed in Lock State".
I think this is happening for one of the following reasons:
The previous owner didn't enable USB Debugging (thing I can't do because I'm stuck in the set up configuration)
The bootloader is locked (and I can't unlock it because I don't have the credentials of the attached account)
Does anyone knows how can I solve this problem?
Thank you for your attention
Click to expand...
Click to collapse
Maybe you can see/ask in this thread for mia2 toolkit (I'm not sure but you can ask there )
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
daitalos said:
Maybe you can see/ask in this thread for mia2 toolkit (I'm not sure but you can ask there )
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
Click to expand...
Click to collapse
Thank you, will give it a try!
EDIT: Not working, every time I try to execute the unlock I got an error message "remote: Flashing Unlock is not allowed"
Joaosacramento said:
Thank you, will give it a try!
EDIT: Not working, every time I try to execute the unlock I got an error message "remote: Flashing Unlock is not allowed"
Click to expand...
Click to collapse
(yes...normally, first you must enable "OEM unlocking" from developer option
_ https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-unlock-bootloader-xiaomi-t3831484
__but first for your problem with locked device, see here for FRP apk : https://www.google.gr/search?q=com.....69i57j0l5.14869j0j8&sourceid=chrome&ie=UTF-8
__and here frp mia2 : https://www.google.gr/search?q=frp+.....69i57j0l3.7035j0j8&sourceid=chrome&ie=UTF-8
first "unlock" your device & then you can unlock bootloader easy ....
sry for english
Just unlock bootloader(critical too) and use miflash
I also have a Mi A2 stuck in android logo screen can't can't boot into device developer options to unlock bootloader.
Fastboot oem unlock give me error flashing is not allowed.
Is there anyway around this?
You need to do an unlock of critical partitions - "fastboot flashing unlock_critical"
daitalos said:
(yes...normally, first you must enable "OEM unlocking" from developer option
_ https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-unlock-bootloader-xiaomi-t3831484
__but first for your problem with locked device, see here for FRP apk : https://www.google.gr/search?q=com.....69i57j0l5.14869j0j8&sourceid=chrome&ie=UTF-8
__and here frp mia2 : https://www.google.gr/search?q=frp+.....69i57j0l3.7035j0j8&sourceid=chrome&ie=UTF-8
first "unlock" your device & then you can unlock bootloader easy ....
sry for english
Click to expand...
Click to collapse
Hey! It worked, thank you very much!
Face_11 said:
I also have a Mi A2 stuck in android logo screen can't can't boot into device developer options to unlock bootloader.
Fastboot oem unlock give me error flashing is not allowed.
Is there anyway around this?
Click to expand...
Click to collapse
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
(or flash stock rom via mi flash tool/ fastboot files) : http://en.miui.com/download-353.html
follow / read fastboot quide : http://en.miui.com/a-234.html
daitalos said:
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
(or flash stock rom via mi flash tool/ fastboot files) : http://en.miui.com/download-353.html
follow / read fastboot quide : http://en.miui.com/a-234.html
Click to expand...
Click to collapse
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
yes it's difficult .... I understand
edl maybe work, but I'm not sure...maybe if you go to a repair shop is a better solution
(see & here : https://forum.xda-developers.com/mi-a2/help/edl-deep-flash-cable-t3828732 )
https://youtu.be/n_7RVmW2Rvs
https://forum.xda-developers.com/showpost.php?p=77327325&postcount=2
Gl
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
I would try a wipe from the recovery but if that doesnt work then just test point the phone. It isnt that hard, I had to do it myself today because of a soft brick. You just need a T3 screwdriver really. Take out the 2 bottom screws. Take a razor and slide it under the corner of the display and lift it enough the get a credit card in there. Then just work around and you should be able to get the screen off. Take the small metal plate off just above the battery and disconnect the battery and the connector on the right. There will be the test points, short them out, connect the phone to the pc(you can stop shorting out the points when it gets detected) and you have like 10-15secs to start flashing the phone in miflash(obviously you need to have the drivers already set up).
I have same problem with xiaomi mi a2 which had bootloop. Was not able to start device at all so no oem unloco no developer options and no usb debug. It was possible only adb sideload and fastboot. Adb sideload did nothing. I was trying to flash with adb sideload but it stops at 47% with message 1.00 x. Did try several roms with same results. Then i tried fastboot options. Falied to unlock not allowed. Itsl was impossible to get even into phone to activate developer options so i can activate oem unlock and the rest. I tried edl mode which did flash but then i got error message in bootloader it failed to mount system etc. Then i tried mi x6 rom to convert phone to another which doesnt have usual recovery mode but a stripped oem recovery mode. Now when u go back to mi a2 rom its bricked so there is no option of adb at all now. I tried to use mi x6 mi assistant option but app wont recognize usb connection it shows try normal mode then switch. When activating mi assistant on phone it does recognize rom version from recovefy flash in mi assistant app but when it downloads update rom version it cant continue. With pixel you can do anything with adb and it is so easy but xiaomi sucks big time. You cant do anything. Fastboot flashing unlock critical and fastboot oem unlock gets error failed. Flashing not allowed. U tried diferent cables but no luck. So now what? Thats why i hate adb. On samsung odin you can do impossible possible. Even with sp tools on mtk. Even boxes works flawlessly but xiaomi system is just thr worse. It doesnt matter if you get soemthing lost there is always a solution to other phones.
After having device sit as a paper weight for a few months, i broke down and ordered a phone repair kit. Opened device up and flashed via test point method. Worked Flawless. Time to enable OEM unlock so i don't have to open it up again. Thanks to community for all the help.
Use cmd
- go to fastboot then "fastboot oem unlock"
- go to fastboot again "fastboot flashing unlock_critical"
Flash with mi flash
Done
Just stumbled upon this and while may be 18 months too late, here's the step by step process to flash ROM on MI A2 that's giving error "Flash is not allowed in Lock State":
1) switch off device
2) enter fastbood mode (press hold power+vol down few seconds)
3) connect device with laptop
4) install and open adb folder on laptop (https://forum.xda-developers.com/showthread.php?t=2588979)
5) within adb folder -- shift + right click = open powershell here
6) fastboot flashing unlock_critical
7) step #6 may be pointless if phone is bricked but do it anyway
8) fastboot oem edl
9) find and download latest stock rom for your device (FASTBOOT version). It'll be .tgz file
10) extract the image folder from within (would be the same name as .tgz file)
11) open miflash (coudln't find link but look it up, it's easy)
12 select the image folder you extracted in step #10
13) click refresh. device name appear means it's recognized
14) from bottom of mi flash tool select whatever you want. I do "clean all"
15) flash (top right mi flash tool)
Face_11 said:
Thanks. I've tried the MIFlash Tool and I get Error Flashing Not allowed in Lock State. I've also tried the MI A2 ToolKit and get the same message. Basically anything I try and do states device is locked or unable to run in Lock State.
Boot Loader is currently locked and I cannot access developer mode to enable OEM unlocking. Question I have is :
- Can I use EDL Cable to work around this or do EDL cables not longer work with Newer Xiaomi phones?
- If EDL cable doesn't work, is the tespoint method my only option.
thanks in advance
Click to expand...
Click to collapse
Flashing is not allowed in lock state
i got a error recently in my mi a2 no software is installed but locked.
when i try to flash from mi flash tool it says flashing is not allowed in lock state
when i try to unlock in cmd flashing is not allowed in lock state
is there any one to fix this
IamUmesh said:
i got a error recently in my mi a2 no software is installed but locked.
when i try to flash from mi flash tool it says flashing is not allowed in lock state
when i try to unlock in cmd flashing is not allowed in lock state
is there any one to fix this
Click to expand...
Click to collapse
you need to open phone with screwdriver & do the test point ..search for video on YouTube...then EDL deepflash state you can use miflash to put back OFFICIAL only rom to device.

New Xiaomi A2 global bricked???

I was trying to install Camera2 on it. Unlocked it with developer options ->Unlock OEM
After try some things I reset factory the cellphone and decide to forget camera2 things...
So I went to developer options and LOCKED OEM.
After that I reboot in fastboot mode and did fastboot oem lock
Now the cellphone is locked in a bootloop saying that my deveice loaded a differente operational system and a screen to visit miui.com/unlock.
The unlock aplication doesn't work. Says that I can't unlock the device.
So that means I lost my crazy brand new phone? THere's any solution? The Test Point solution will work? Is that the only solution???
Thiank you for any response.
foxdanger said:
I was trying to install Camera2 on it. Unlocked it with developer options ->Unlock OEM
After try some things I reset factory the cellphone and decide to forget camera2 things...
So I went to developer options and LOCKED OEM.
After that I reboot in fastboot mode and did fastboot oem lock
Now the cellphone is locked in a bootloop saying that my deveice loaded a differente operational system and a screen to visit miui.com/unlock.
The unlock aplication doesn't work. Says that I can't unlock the device.
So that means I lost my crazy brand new phone? THere's any solution? The Test Point solution will work? Is that the only solution???
Thiank you for any response.
Click to expand...
Click to collapse
"So I went to developer option and LOCKED OEM" can you be a little more clear. Because unlocking the bootloader locks the OEM unlock option in the developer settings.
Possible cause of your bootloop is the change in your build.prop file.
I did a similar mistake as well. My phone was stuck in a bootloop. My mistake was that I installed Magisk and forgot to uninstall it through the Magisk manager before locking the bootloader and so the system were not in their stock state.
What I did was, I just booted my phone into fastboot.
Unlocked the bootloader again by using "fastboot OEM unlock". Went into fastboot again. Checked the current active slot by "fastboot getvar current-slot" and flashed the stock boot image from the stock pie rom found on Mi website.
Njaiker said:
"So I went to developer option and LOCKED OEM" can you be a little more clear. Because unlocking the bootloader locks the OEM unlock option in the developer settings.
Possible cause of your bootloop is the change in your build.prop file.
I did a similar mistake as well. My phone was stuck in a bootloop. My mistake was that I installed Magisk and forgot to uninstall it through the Magisk manager before locking the bootloader and so the system were not in their stock state.
What I did was, I just booted my phone into fastboot.
Unlocked the bootloader again by using "fastboot OEM unlock". Went into fastboot again. Checked the current active slot by "fastboot getvar current-slot" and flashed the stock boot image from the stock pie rom found on Mi website.
Click to expand...
Click to collapse
What I did was with the phone working I entered on configuration, developer, and turned of the oem lock option.
Than I reboot in fastboot and did fastboot oem lock.
This made the cellphone unbootable. Bootloop saying that I'm trying to start a different operational system.
And I can't make fastboot unlock because I turned off the option in the system, so I can't send fastboot commands like oem edl, unlock, unlock-critical and etc...
I can't do nothing :/
I don't know how the option was working, but was... I know it should be locked, but this time wasn't. Was after I factory reset the cellphone
Your fault that you locked bootloader on a modified system. Do a research next time

Categories

Resources