Question How to flash stock rom? I'm on arrowos 13, but my bootloader is somehow locked. - Xiaomi Mi Pad 5

I'm currently on arrowos 13. I wanted to go back to stock rom. So I tried flashing the fastboot rom via Mi Flash Tool. I got an error saying my device is locked. So, I checked if my bootloader was locked by using this command on fastboot " fastboot getvar unlocked" . It says "no", which means my bootloader is locked. I don't know how that happened. I tried to unlock the bootloader with Mi unlock tool, but it fails at the verification step itself. I don't how to proceed from here. I'm stuck with arrowos now.

dhilipmadhav said:
I'm currently on arrowos 13. I wanted to go back to stock rom. So I tried flashing the fastboot rom via Mi Flash Tool. I got an error saying my device is locked. So, I checked if my bootloader was locked by using this command on fastboot " fastboot getvar unlocked" . It says "no", which means my bootloader is locked. I don't know how that happened. I tried to unlock the bootloader with Mi unlock tool, but it fails at the verification step itself. I don't how to proceed from here. I'm stuck with arrowos now.
Click to expand...
Click to collapse
i'm like you, i want to go back to miui but i don't know how. have you tried it yet? Thanks

dhilipmadhav said:
I'm currently on arrowos 13. I wanted to go back to stock rom. So I tried flashing the fastboot rom via Mi Flash Tool. I got an error saying my device is locked. So, I checked if my bootloader was locked by using this command on fastboot " fastboot getvar unlocked" . It says "no", which means my bootloader is locked. I don't know how that happened. I tried to unlock the bootloader with Mi unlock tool, but it fails at the verification step itself. I don't how to proceed from here. I'm stuck with arrowos now.
Click to expand...
Click to collapse
You can't install custom roms on bootloader locked device.

Related

[Q] Stuck in bootloader mode. No wifi. Adb can't find devices

Okay so, I had a problem of having no OS and had my htc m8 on soft brick for a while but i finally got that resolved by flashing a new rom on it. ( Here it is if you want to read: http://forum.xda-developers.com/htc-one-m8/help/os-installed-transfer-files-t3018626)
Unfortunately, I wasn't getting wifi on it. I tried 2 other roms and still no dice. I read online that i needed to update my firmware to do that. To do that, I needed to relock my bootloader so I did and the firmware flashed successfully.
Now my hboot is 3.19 instead of 3.16 and my bootloader says RELOCKED.However, when i go into recovery mode, my phone shows a picture of the dead android. I can't get past the bootscreen either so my phone is stuck on bootloader mode.
I found this guide: http://forum.xda-developers.com/showthread.php?t=2497712 to help me get my phone unlocked again cause the unlock code at htc dev wont work again.
However, when i write adb devices, no serial number shows up now. adb shell says no devices connected.
I tried pushing and flashing a new recovery and rom in cmd and it said it failed.
I'm really grasping at straws at this moment since I can't really do anything.
Are you sure you are updated? In the bootloader, what does it say for "os"?
And what roms are you trying to flash? 4.4.4 or Lollipop?
And to unlock bootloader, start over at HTC Dev. See what happens. Instead of trying old code.
You can't flash a recovery with a locked bootloader.
I'm pretty sure it updated because everything looks different. Bootloader's background is black instead of white now too. When I flashed the firmware, everything seemed to be okay as well. . .
my OS says 3.11.1700.5
and i tried it at dev and generated a code, but it gave me an error and didn't give me a file. I tried to use my old file but that didnt work.
Personally, in your situation now..... I'd flash the correct RUU for your device, then use Sunshine to s-off. Then you'll be bootloader unlocked also and can flash recovery, root and all that.
You'll need the same Android version RUU that matches your firmware now.
See this thread,
http://forum.xda-developers.com/showthread.php?t=2701376
Without Sunshine... I can't say why HTC Dev isn't helping.
Darth said:
Personally, in your situation now..... I'd flash the correct RUU for your device, then use Sunshine to s-off. Then you'll be bootloader unlocked also and can flash recovery, root and all that.
You'll need the same Android version RUU that matches your firmware now.
See this thread,
http://forum.xda-developers.com/showthread.php?t=2701376
Without Sunshine... I can't say why HTC Dev isn't helping.
Click to expand...
Click to collapse
Which RUU do I download from here? I'm confused.
Shiverfire said:
Which RUU do I download from here? I'm confused.
Click to expand...
Click to collapse
Read the whole first post. It tells you how to determine that.
Any help needed after trying, you can ask there. ?
I just asked. I'm too confused.
For reference:
version-bootloader: 3.19.0.0000
version-main: 3.11.1700.5
product: m8_ul_ca
modelid:0P6B12000
cidnum: CWS__001
Shiverfire said:
I just asked. I'm too confused.
For reference:
version-bootloader: 3.19.0.0000
version-main: 3.11.1700.5
product: m8_ul_ca
modelid:0P6B12000
cidnum: CWS__001
Click to expand...
Click to collapse
Adb only works in custom recovery or OS.
If your phone shows bootloader, use fastboot to flash custom recovery
SaHiLzZ said:
Adb only works in custom recovery or OS.
If your phone shows bootloader, use fastboot to flash custom recovery
Click to expand...
Click to collapse
I can't flash a recovery because the bootloader is Relocked. I can't unlock it cause my phone wont get detected in adb devices.
I tried manually updating drivers as well. :/
Shiverfire said:
I can't flash a recovery because the bootloader is Relocked. I can't unlock it cause my phone wont get detected in adb devices.
I tried manually updating drivers as well. :/
Click to expand...
Click to collapse
Have you tried flashing a recovery using Hasoon2000 HTC one all in one ?. I had the same problem as you i flashed TWRP then I installed android revolution Hd Rom and it solved my problem but as I said try it may not work as your boot loader is locked..... You can also use the all in one too unlock boot loader might be worth a try
Sent from my HTC One_M8 using XDA Free mobile app
mikem2273 said:
Have you tried flashing a recovery using Hasoon2000 HTC one all in one ?. I had the same problem as you i flashed TWRP then I installed android revolution Hd Rom and it solved my problem but as I said try it may not work as your boot loader is locked..... You can also use the all in one too unlock boot loader might be worth a try
Sent from my HTC One_M8 using XDA Free mobile app
Click to expand...
Click to collapse
Like I said, recoveries wont flash cause its stuck on Relocked mode. I cant fix that because adb devices wont see my phone.
All the other commands on the All-in-One root kit gives me this:" 'C:\Users\Admin' is not an internal or external command, operable program or batch file " regardless of where i do it. I don't understand what I'm doing wrong here.
I tried to put the 0p6bimg.zip file but it wont copy on to my sd card cause of some error saying not responding or disconnected.
I tried flashing it instead but it said the file was too large
I tried the latest firmware but it said Failed! verification error.
I tried using the RUU to update and it stopped on the 1/7 process saying Error 155: Unknown Error.
I think what i need to do and how to fix it but I just need adb devices to find my phone.
If i can do that I can unlock my bootloader, install a recovery, install a rom and be home free but I can't do that until it detects my phone. I've tried everything now including reinstalling my drivers three times now.
Please help :'(
You don't need adb devices to see the device. You need to put the phone in the bootloader and type fastboot devices.
Open the command prompt inside the folder where also the fastboot.exe file is located.
Like Mr Hofs said...The bootloader gets unlocked in bootloader/fastboot mode.
Last I remember the code to get the token was "fastboot oem get_identifier_token" and "fastboot flash unlocktoken Unlock_code.bin and not "adb oem get_identifier_token" or "adb flash unlocktoken Unlock_code.bin ...
BerndM14 said:
Like Mr Hofs said...The bootloader gets unlocked in bootloader/fastboot mode.
Last I remember the code to get the token was "fastboot oem get_identifier_token" and "fastboot flash unlocktoken Unlock_code.bin and not "adb oem get_identifier_token" or "adb flash unlocktoken Unlock_code.bin ...
Click to expand...
Click to collapse
No, you guys. I already said this. I already used the htc dev the first time to get my phone unlocked. I had to relock it to flash a firmware. Now I can't unlock it again.The token isn't working. I already used the token once and its not working for the second time. I need adb devices to use adb shell. That way I can adb push revone and unlock my bootloader, but im not sure if that would work either.
Edit: I tried htc dev by generating a code 3 times. It generated different ones, the last one worked.
Ok something is still wrong.
I flashed cwm 6.0.4.8, did a full wipe, installed supersu and installed the android revolution rom. When I reboot, it says I am not rooted, root now? I pressed yes and it reboot.
The phone goes into htc bootscreen for 2 minutes, reboots again and then goes into recovery mode. What do I do now?
Shiverfire said:
Ok something is still wrong.
I flashed cwm 6.0.4.8, did a full wipe, installed supersu and installed the android revolution rom. When I reboot, it says I am not rooted, root now? I pressed yes and it reboot.
The phone goes into htc bootscreen for 2 minutes, reboots again and then goes into recovery mode. What do I do now?
Click to expand...
Click to collapse
Try flashing the boot.img again.
Clear the Cache.
If it still doesn't work then it might be best to just flash the ROM again.
Is your bootloader still show GPE version no. ?
If yes, how do you expect to flash a Sense ROM on GPE partition ?
BerndM14 said:
Try flashing the boot.img again.
Clear the Cache.
If it still doesn't work then it might be best to just flash the ROM again.
Click to expand...
Click to collapse
just flashed the boot.img and recovery.
cleared cashe and reinstalled super su.
same thing.
ckpv5 said:
Is your bootloader still show GPE version no. ?
If yes, how do you expect to flash a Sense ROM on GPE partition ?
Click to expand...
Click to collapse
wait, how do i know if its GPE? (I didnt buy a GPE phone)
I was able to download skydragon and android revolution before, the former was stock lollipop.
So what do I do? how do i install sense roms??

Back to Stock Recovery and Booload lock with S-ON

Hello,
so I got the HTC 10 from my brother but I can not get the latest updates via OTA. Reason: Bootload unlocked und TWRP Recovery.
Now I wanna relock the bootloader and back to the Stock Recovery in order to get the OTA upates. I found files in the thread but I do not really know how to proceed at all
Is there any step by step guide for this situation which a newbie would understand?
Some Info's to the phone itself:
Recovery: TWRP 3.03-10_Unofficial
S-On
Unlocked Bootloader
CID: HTC_034
Android 7.0, January Security update
Software: 2.41.401.4
Kernel: 3.18.31-perf-g9ec8cbc and @aabm#1 SMP PREEMPT
Baseband: [email protected]_79.07_F
Is there any way to simply flash the stock recovery again put the bootloader to locked and then get the OTA?
Any help is appreciated
(And no can not ask my brother as he is for several months abroad)
pyo[st said:
;73891974]Hello,
so I got the HTC 10 from my brother but I can not get the latest updates via OTA. Reason: Bootload unlocked und TWRP Recovery.
Now I wanna relock the bootloader and back to the Stock Recovery in order to get the OTA upates. I found files in the thread but I do not really know how to proceed at all
Is there any step by step guide for this situation which a newbie would understand?
Some Info's to the phone itself:
Recovery: TWRP 3.03-10_Unofficial
S-On
Unlocked Bootloader
CID: HTC_034
Android 7.0, January Security update
Software: 2.41.401.4
Kernel: 3.18.31-perf-g9ec8cbc and @aabm#1 SMP PREEMPT
Baseband: [email protected]_79.07_F
Is there any way to simply flash the stock recovery again put the bootloader to locked and then get the OTA?
Any help is appreciated
(And no can not ask my brother as he is for several months abroad)
Click to expand...
Click to collapse
Bootloader status does not affect ability to take OTAs.
You need two things mainly to take the OTA:
1. Stock recovery matching your current software
2. An untouched backup image of the system partition matching your current software. This is needed if you're currently rooted.
Both can probably be found in the thread you linked. The backup image is flashed from twrp. The stock recovery is then flashed from download mode using this command:
Fastboot flash recovery yourrecoveryfile.img
But even after doing that, you might still get an error when trying to take the OTA. Easiest way to take it is to start from scratch, backup your phone's contents to your pc or sd card, and then run the latest ruu for your phone. This will bring you up to date, and will also allow you to make a backup system image from twrp before rooting so that you can easily take future OTAs. The ruu will also completely wipe your phone's contents.
So you can try the first method I mentioned, and if it doesn't work go with the ruu.
As your brother may root it before so the system may got modify, in this case the best and easiest way is flash a RUU.
Try this RUU, http://dl3.htc.com/application/[email protected]_79.07_F_release_495903_signed_2.exe
A RUU will restore your HTC 10 back to stock and wipe out everything. It require a match CID or super CID, if not it will not flash.
I tried to flash RUU via sd card method as well as fastboot method. Both got failed
sd card: Header Error
fastboot: load_file: could not allocate 1950335038 bytes
error: cannot load '2PS6IMG.zip'
Im running on venom rom , S ON with oem unlocked. How can i go back to stock rom??
Mine is 2.41.401.41
DummyPLUG said:
As your brother may root it before so the system may got modify, in this case the best and easiest way is flash a RUU.
Try this RUU, LINK
A RUU will restore your HTC 10 back to stock and wipe out everything. It require a match CID or super CID, if not it will not flash.
Click to expand...
Click to collapse
This RUU worked perfectly. And no the phone was not rooted, just unlocked Bootloader and TWRP as Recovery.
After flashing the RUU I got the July Security Patch and that is what I wanted.
Thank you very much, Problem solved
$tark3 said:
I tried to flash RUU via sd card method as well as fastboot method. Both got failed
sd card: Header Error
fastboot: load_file: could not allocate 1950335038 bytes
error: cannot load '2PS6IMG.zip'
Im running on venom rom , S ON with oem unlocked. How can i go back to stock rom??
Mine is 2.41.401.41
Click to expand...
Click to collapse
It is a EXE, you should run on windows instead of using the sdcard method, as for the not enough space I am not sure about
DummyPLUG said:
It is a EXE, you should run on windows instead of using the sdcard method, as for the not enough space I am not sure about
Click to expand...
Click to collapse
Nah, i downloaded the exe and the zip file also.
Anyway fixed it. Just restored from a nandroid backup. Now back in stock
PS:In btw, anyone facing any battery drop issue??
So I run in another Problem. I got the latest OTA for Europe (July Security Patch) but now my Phone gets shown as uncertified in the google play app which means I can not download certain apps like Netflix via Appstore.
Now I already figured out why I get shown uncertified: the Bootload is still unlocked. I thought the RUU would fix this as well. And if I wanna go in to the recovery (there was an TWRP Recovery on it before) I just get a red triangle with an "!" in it. It wont boot into recovery. Had to hard reset the phone to be able to boot normally to android then.
Now I wanna flash the stock recovery and lock the Bootload again to get again the certified status from google again.
Now here I need help.
1. Can't find the matching recovery version (EU unlocked, July Securtiy Patch, 2.41.401.41). Can anyone help me find the recovery image I need?
2. How do I get the bootload locked again? My Brother unlocked it via HTCdev.com back then, that I know already. But the command fastboot oem lock does not work at all. It just does nothing.
So how can I lock the bootloader?
Thanks for the help.
If you ran the RUU you already have stock recovery...red triangle with an "!" in it.
Are you running the fastboot oem lock from bootloader or download mode?
Sloth said:
If you ran the RUU you already have stock recovery...red triangle with an "!" in it.
Are you running the fastboot oem lock from bootloader or download mode?
Click to expand...
Click to collapse
Haha well then everything is ok with the recovery ^^
I tried both (download and bootloader mode), both times nothing happens. In download mode my PC does not even recognize the phone as the command "adb devices" does not list my phone and the command "fastboot oem lock" does nothing. HTCsnyc installed and ofc adb shell, worked even as when I normally checked with adb devices when my phone was on it was recognized.
pyo[st] said:
Haha well then everything is ok with the recovery ^^
I tried both (download and bootloader mode), both times nothing happens. In download mode my PC does not even recognize the phone as the command "adb devices" does not list my phone and the command "fastboot oem lock" does nothing. HTCsnyc installed and ofc adb shell, worked even as when I normally checked with adb devices when my phone was on it was recognized.
Click to expand...
Click to collapse
Try fastboot devices
Sent from a Glade Plugin.
Sloth said:
If you ran the RUU you already have stock recovery...red triangle with an "!" in it.
Are you running the fastboot oem lock from bootloader or download mode?
Click to expand...
Click to collapse
Sloth said:
Try fastboot devices
Sent from a Glade Plugin.
Click to expand...
Click to collapse
Alright this command works and shows my device.
Now I am in bootloader (Shows Software Status: Modified; Unlocked, S-ON). Then I type in "fastboot oem lock" and I get:
FAILED (remote: unknown command)
finished. total time: 0.014s
Well at least now I get something, before just nothing happened. Any clue what I might do wrong here?
*edit*
So I am a big noob
Phone has to be in download mode then the command works and my phone shows me a message if I want to lock again. Unfortunately it will factory reset my phone as well (at least it says that) so I have to backup my data (again) first.
But thank you for your help, appreciate it.
Cheers!
So I did lock the phone again and flashed again the RUU.exe BUT again my Phone shows in Bootloader Software Status as Modified...and it shows as Relocked.
So how do I get it to official status again?
pyo[st said:
;74318325]So I did lock the phone again and flashed again the RUU.exe BUT again my Phone shows in Bootloader Software Status as Modified...and it shows as Relocked.
So how do I get it to official status again?
Click to expand...
Click to collapse
By buying sunshine S-OFF. Only way to see the bootloader back to "locked" instead of "relocked"
Mr Hofs said:
By buying sunshine S-OFF. Only way to see the bootloader back to "locked" instead of "relocked"
Click to expand...
Click to collapse
Ye found a thread to it. But seems I dont need it. My Phone gets shown as certified again at google play store so I assume just "relocking" the bootloader seems to be enough.
.....

fastboot relock, locks device

Hello Guys,
i have a redmi 5a and i made a rollback on rom from 10 to 9.
i had to unlock the bootloader and install previous verson of miui.
i could done that succesfully.
but i also installed twrp and root.
now i want to relock bootloader but when i do it via adb
not just the bootloader locks but the whole device too
and the phone does not start.
then i go back to fastboot and unlock the device with miflash unlock
and it works again but the bootloader is still open
what did i do wrong?
It's possible to relocked your device after rooting but relock the bootloader means locking the mod of your device, you'll lose your root. And again, if you need to root your device, you need to open the bootloader.
U cant relock the bootloader with custom recovery coz phone it doesnt start and maybe hard brick.always relock bootloader with stock recovery.also consider relocking,because u maybe cant unlock again until unofficial way found
Sent from my Redmi 5A using XDA Labs

Relock Bootloader

Greetings fellow xda member, i need some guide to relock my bootloader. I read about using miflash with clean and lock option, but one thing that make me confuse, wich rom should i use? Global or china rom? I'm on 10.0.4.0 global right now, cause i read in miui forum that i need to use Chinese rom to able to lock my bootloader.
Thanks in advance
w4y4n said:
Greetings fellow xda member, i need some guide to relock my bootloader. I read about using miflash with clean and lock option, but one thing that make me confuse, wich rom should i use? Global or china rom? I'm on 10.0.4.0 global right now, cause i read in miui forum that i need to use Chinese rom to able to lock my bootloader.
Thanks in advance
Click to expand...
Click to collapse
use global 10.0.60 you need the fastboot rom format for miflash.. google redminote 5 pro hub central. youll find links there for zip and fastboot rom
raptorddd said:
use global 10.0.60 you need the fastboot rom format for miflash.. google redminote 5 pro hub central. youll find links there for zip and fastboot rom
Click to expand...
Click to collapse
Thank you sir, i'll try and report it back later :good:
Today i manage to relock my bootloader, but clean all and lock option can't relock it. It only put my phone on stock condition with stock recovery and stock rom, just as same as clean all option. To relock bootloader, i use fastboot command "fastboot oem lock". Hope it can help whose want to relock bootloader
w4y4n said:
Today i manage to relock my bootloader, but clean all and lock option can't relock it. It only put my phone on stock condition with stock recovery and stock rom, just as same as clean all option. To relock bootloader, i use fastboot command "fastboot oem lock". Hope it can help whose want to relock bootloader
Click to expand...
Click to collapse
stranged. but good to know that command worked.

Question Oneplus 9rt fastboot and recovery not working Oxygen os13 stable

Few days back i successfully rooted my 9rt then today i unroot my 9rt and download the oxygen os 13 stable via op updater app and installed it but every time i reboot my phone it show a msg your bootloader is unlocked,device is in orange state can't be trusted reboot in 5 seconds then os boot normally but i can't access the recovery and fastboot mode to relock the bootloader plz help.
Looks like fastboot is locked in version you currently use (is it F.11?). You can't lock bootloader before next version with unlocked fastboot will be installed. The only other option is to downgrade to Android 12, then relock and upgrade again, but you will need to wipe data.
penguinus said:
Looks like fastboot is locked in version you currently use (is it F.11?). You can't lock bootloader before next version with unlocked fastboot will be installed. The only other option is to downgrade to Android 12, then relock and upgrade again, but you will need to wipe data.
Click to expand...
Click to collapse
Yes it's F11 and is there any oxygen os13 stock rom with unlocked fastboot for 9rt
Exiled_SouL said:
is there any oxygen os13 stock rom with unlocked fastboot for 9rt
Click to expand...
Click to collapse
Looks like no as of now. Probably next version will be unlocked
Update-after enable usb debugging and using "adb reboot fastboot" command i can boot into recovery mode where wipe data,reboot ar showing and my pc showing fastboot devices in cmd should i use fastboot command to relock the bootloader or wait for the unlocked fastboot stock rom.. thanks
It is fastbootd mode. Unlock/relock commands don't work in this mode, but you may use it to flash previous version of rom (fastboot rom) with unlocked bootloader.
Another option is to use this official ROM for local update. Please note it will wipe data, backup is needed.
penguinus said:
It is fastbootd mode. Unlock/relock commands don't work in this mode, but you may use it to flash previous version of rom (fastboot rom) with unlocked bootloader.
Another option is to use this official ROM for local update. Please note it will wipe data, backup is needed.
Click to expand...
Click to collapse
Thanks It Worked,downgraded from android 13 to 12 i flashed the official android12 rom via local update then relocked the bootloader and install the official android13 update for 9rt

Categories

Resources