After flashing a 7.1 AOSP rom, my TWRP was somehow replaced by Android Recovery and the bootloader was relocked. As the rom has no root, I have tried fastboot to unlock the bootloader, without success.
- "fastboot oem unlock" gives "OKAY ....", then the phone automatically reboots into Android Recovery. I go back to Fastboot and "fastboot oem device-info" shows that the bootloader is still locked.
- "fastboot boot twrp.img" gives me something like "FALIED: Device not unlocked..." Even this trick doesn't work.
- "fastboot flashing unlock" doesn't do much, just freezes.
- I also try locking and then unlocking it, still no luck.
Now, I am stuck with this unrooted rom with no Gapps, no custom recovery. Anyone has any other idea how to unlock the bootloader or at least root the rom?
Appreciate any help. Thank you.
- - -
Edit: Somehow solved it>
Tried a lot of things without success, and finally solved this mysterious issue with some magic
Came across this http://blogs.candoerz.com/question/172869/how-to-re-unlock-bootloader-for-oneplus-one.aspx and followed to this http://forum.xda-developers.com/oneplus-one/development/mod-reset-unlock-tamper-bit-t2820912 ,and thought hmm if I could get root via adb. So, I tried:
D:\>adb root
restarting adbd as root
D:\>adb shell
bacon:/ # whoami
whoami
root
Voila! I somehow got root via adb. Following the 1st mentioned page...so, here goes the rest of magic.
To set the device unlocked bit to true
bacon:/ # echo -ne "\x01" | dd bs=1 count=1 seek=1048080 of=/dev/block/platform/msm_sdcc.1/by-name/aboot
# set the device tampered bit to false
bacon:/ # echo -ne "\x00" | dd bs=1 count=1 seek=1048084 of=/dev/block/platform/msm_sdcc.1/by-name/aboot
Now, I have my life back
Related
Hi!
I unlocked my phone - but when i type in the command "adb reboot bootloader"
it goes in to fastboot for a second, and then I get "bootloader unlocked" warning and after that it boots in to android.
How can I stop at fastboot to flash a custom recovery ?
Cheers!
EDIT:
NVM fixed
I am sure it was the right way.
How did you get it fixed?
I turned it off completely and after that, it accepted the command and stayed in fastboot.
Good to know, thanks for the information.
I have owned this phone for about 5-6 months now and have never unlocked the bootloader. I know I probably should of done that when I got it but for some reason I have been able to flash TWRP, Root the phone, and install custom roms without wiping the phone no problem. I am currently on Paranoid Android 4.6 Beta 6 and TWRP 2.8 but I wanted to go back to CM11S, and I thought maybe it's time that I unlock the bootloader. I have installed the correct drivers and when I type "fastboot oem unlock", the Command Prompt said "finished in 0.06 seconds", I then rebooted and nothing happens. I also tried a Toolkit to unlock it but that didn't do anything either. Can anyone help? I don't want to Hard Brick my phone.
Thanks
It sounds like your bootloader is already unlocked.
Try running
fastboot oem device-info
to see what it says. Post your results here and somebody should be able to help you.
The right command is:
Code:
fastboot oem device-info
Transmitted via Bacon
check this
Matt7262 said:
I have owned this phone for about 5-6 months now and have never unlocked the bootloader. I know I probably should of done that when I got it but for some reason I have been able to flash TWRP, Root the phone, and install custom roms without wiping the phone no problem. I am currently on Paranoid Android 4.6 Beta 6 and TWRP 2.8 but I wanted to go back to CM11S, and I thought maybe it's time that I unlock the bootloader. I have installed the correct drivers and when I type "fastboot oem unlock", the Command Prompt said "finished in 0.06 seconds", I then rebooted and nothing happens. I also tried a Toolkit to unlock it but that didn't do anything either. Can anyone help? I don't want to Hard Brick my phone.
Thanks
Click to expand...
Click to collapse
hello ..
i have oneplus 64 that the Tampered was true and unlock false.
i have original recovery . that i cant run not signed zip
i tried everything even install coloros ( and its failed)
finaly after alot of hours the soultion very simple
1.install throw adb sideload the signed rom ... https://www.androidfilehost.com/?fid=95747613655046106
2. its take you to factory rom
3. after that u can unlock your oneplus with fastboot oem unlock
thanks
timmaaa said:
The right command is:
Code:
fastboot oem device-info
Click to expand...
Click to collapse
Thanks, edited to fix.
Ehy guys im having some trouble with my OPO.
First of all i can't boot to the OS, it just stuck in bootloop, and recovery is not accessible, but i can use fastboot.
Ive already used the MSM8974 tool, but after the flash the device is still stuck in bootloop.
I can't even unlock the bootloader, if i try the fastboot command "fastboot oem unlock" it just reboot and nothing happens.
Do you have some advice to exit this situation?? Ty for the replies
Hi everyone,
Today I decided to root my Mate 9.
I started out with turning 'OEM unlock' on and usb debugging. With ADB installed and the huawei drivers, I began to unlock my bootloader. On the 'EMUI Huawei' homepage I filled out my device details and obtained an unlock code. I opened ADB and checked with 'adb devices' if my device was there. It was. So I continued with typing 'adb reboot bootlader'. After that I typed 'fastboot devices'. My device was still showing up. I typed 'fastboot oem unlock CODE (with the code). On my screen I pressed 'Yes'. Bootloader unlocked.
After this step I tried to flash twrp with the command 'fastboot flash recovery xxxx.img'. I couldn't continue because every adb/fastboot command keeps failing (remote: command not allowed). Now when I boot up my phone it shows 'your device has been unlocked and can't be trusted'. Phone=unlocked, FRP=locked. I can't do anything.
Device: Mate 9 L29C432B198
What did I do wrong or what did I missed? :crying:
I had this issue at first to had to redownload the original rom via the phone recovery this will fix the frp lock then u have to unlock and flash twrp 3.1.01 that is linked in the threads on here
Did it format after it unlocked?
You can try fastboot oem relock UNLOCKCODE
Then go to Settings -> Dev options -> enable OEM Unlocking
Then unlock again.
It probably will fail though if FRP is locked, but worth a shot.
Edit: It's supposed to say
PHONE Unlocked FRP Unlock
Hello all
I was wondering if anyone has successfully managed to re-lock a bootloader (on a stock ROM) ?
I got an A51 that I kept as a backup but decided to give it to my aunt instead.
But I'd like to get rid of the the pesky message at boot saying "your bootloader is unlocked, dangerous, blah blah" before I give it to her.
I've flashed the latest stock ROM but it doesn't get rid of that message...
So if anyone has an idea, I'd appreciate it
Try it
adb reboot-bootloader
fastboot flashing lock
or
adb reboot-fastboot
fastboot flashing lock
Edit:
or
How to Relock Bootloader Galaxy A51
Hi, for those of you who have already unlocked the boot loader before, and if one day you change your mind to lock the bootloader again, here's how (remember, This will wipe your data again!) - Shut down your device. - attach the data cable to...
forum.xda-developers.com
Yeah, I tried that already ("fastboot oem factory-lock" for example, as well as some others), but each fastboot command just yields a "< waiting for any device >" message and nothing happens...
And when I try "adb reboot bootloader", the phone reboots in the fastboot mode, but all I get is a message "entering fastboot mode" (or something similar, I can't recall exactly).
Also, when I try sending some adb commands I often get a message saying "
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device."