I need to relock the bootloader so I can flash the RUU. I accidentally deleted my backup of stock and now my GPS doesn't work. Basically, I want to flash the stock ROM, copy the GPS files, and put them on my phone with the CM12 ROM. CM12 destroyed my GPS. I tried typing ./fastboot-linux oem lock and it said permission denied. When I tried to sudo the command it didn't recognise the fastboot command. Does anyone have a stock ROM or know why the terminal won't let me relock the bootloader?
Related
OTA softbricked? the device of my friend
Although the bootloader is unlocked, I was able to flash new firmware with fastboot with succes!! The device is now booting 4.1.1 (10.4.2.20)again
So, I tried to flash TWRP through fastboot (it's still responding to fastboot), but that fails:
Code:
FAILED <remote: <InvalidState>>
Thinking it is because the bootloader is locked, installed unlocking tool. Run it, at the last step, where you have to click the -normally- bar with image of locked lock to unlock, I get the dreaded network error, more importantly: the lock image is UNlocked
What could be the case now?
n/m http://forum.xda-developers.com/showthread.php?t=2037266
fastboot is available, flashing is not
As the title states...can we flash just the bootloader from 25R onto 30O using fastboot? And if so, therefore allow for the temporary boot of a custom recovery. Until now, I've only owned/flashed Samsung devices so still learning the fastboot idioms. Any ideas or nah?
You can boot a recovery without flash it .. fastboot boot recovery.img
Why are you wanting to downgrade a bootloader to 25R? There aren't any restrictions.
If you want to temporarily boot a recovery, then just type what nneves said.
Theres no need to downgrade your bootloader.
Since the firmware has been updated to 30O, this cannot be done. I used the 'boot recovery' method while on 25R, but for some reason (security?) they have blocked that exploit, hence the question at hand.
I had even tried this method I found in a Nexus forum:
Here's some instructions I compiled for doing useful things with your Nexus. Also includes instruction to root nexus 4 without installing a custom recovery. Basically, you save the customrecovery.zip file then fastboot boot into it (NOT install, and notice you have to type the full command specified below, not just "fastboot boot customrecovery.img") and then install using the custom recovery, install SuperSU.zip for unrooting:
1) Install all STOCK files:
./fastboot flash bootloader bootloader-XXX.img ./fastboot reboot-bootloader ./fastboot flash radio radio-XXX-XXX.img ./fastboot reboot-bootloader ./fastboot -w update image-XXX-XXX.zip ./fastboot oem unlock (to unlock bootloader)
2) If you want to keep stock recovery, fast boot BOOT into custom recovery and install SuperSu.zip: 3) Install SuperSu.zip file (to root)
./fastboot -c "lge.kcal=0|0|0|x" boot customrecovery.img
there used to be a 'fastboot boot recovery recovery.img' command, but Google removed it in 4.3, so now to simply boot into your custom recovery you can type 'fastboot -c "lge.kcal=0|0|0|x" boot customrecovery.img' instead and it'll do the same thing as the 'fastboot boot' command. Meaning it will revert to your stock recovery once you reboot. So boot into custom recovery, flash superuser (Koush or Chainfire's) and reboot. done.
It didn't work but maybe another code for our device is needed?
Just going to give this a little bump...
there is a stock 25R ROM zip floating around here somewhere. you should just be able to flash it via recovery using twrp, if you're just wanting to go back to flat stock. let me know if you can't find it, i think i may have it somewhere.
Wouldn't you need to unlock the bootloader to downgrade to 25R? I think that there would be some sort of check in the signed 25R OTA update that would prevent you from flashing it.
I have a serious problem: my device's partitions are all erased and formatted and the boot loader is locked which is why I can't install a recovery or anything else. fastboot oem unlock doesn't work for any reason. It just boots and does nothing. After entering fastboot again it says it's locked.
The alternative method with adb doesn't work as I don't have a recovery nor do I have a system.img on the device. I can only enter fastboot now and flash the radio. How can I flash stock CM11S now? I need to unlock the bootloader and fastboot won't let me!
h**p://forum.xda-developers.com/showpost.php?p=55952004&postcount=457
Guy with a similar problem, who found a solution... Give it a try!
How on earth did you manage to erase all the partitions?
Transmitted via Bacon
hi guys, i've unlocked the bootloader with the dc-unlocker2client , And i want to go back to the original boot loader, i've tried to re flash the 137 and eve the 129 chinese rom but the annoying message on boot startup still exist..
so how to go back?
youre mixing up two things: the bootloader and the boot image
the former (bootloader) you unlock via fastboot and the unlock code that you read out via dc-unlocker. this is the reason why u receive the message at bootup and u can relock the bootloader via fastboot as well (fastboot oem relock XXXXXXXXX)
the latter is the boot image that u have to decrypt in order to be able to root properly and not be stuck in a boot loop. the boot.img is reflashed once u install a new stock firmware. but the bootloader lock state is untouched by this, thats why u manually have to relock it using fastboot!
cheers
thats weird.. i entered the fastboot mode
and opened the minimal adb - and wrote the command : fastboot oem relock XXXXXXXXX
the XXXX is my unlock code from the dc software i guess..
and its says : failed : stat not match
so.. how can i lock it again?
http://postimg.org/image/50dz3y0vf/
U should flash stock recovery first...then relock your bootloader
Hi Folks,
Does anyone have a guide to that would get us back to stock on the oneplus one. Locked bootloader, no root, etc... and then upgrade to COS13?
Flash cos12.1 factory image via flash-all.bat here and then update to cos13 (zip in same link)
Then type this via fastboot:
fastboot oem lock -w
It will lock and wipe data and internal memory. (so you don't get bootloop)
If you like to play dangerously (jk xD) type
fastboot oem lock
Transmitted via BACON