I unlocked my phone, rooted and installed custom Rom e.g. elegancia's ROM. Now I want to relock, when I use fastboot oem lock to relock it after flashing stock recovery or leaving custom recovery. In both cases my phone does not go beyond boot loader, if i reboot it remains on boot loader does go and boot ahead, till I unlock it again using Unlock_code.bin from HTC dev. And unlocking wipes off all the settings and applications as expected.
So how can I relock the phone but it boots normally.
I previously had HTC Legend, I rooted and installed cyanogenmod and then relocked as well but it works fine. What I am doing wrong with my Desire X?
muhammad.bilal said:
I unlocked my phone, rooted and installed custom Rom e.g. elegancia's ROM. Now I want to relock, when I use fastboot oem lock to relock it after flashing stock recovery or leaving custom recovery. In both cases my phone does not go beyond boot loader, if i reboot it remains on boot loader does go and boot ahead, till I unlock it again using Unlock_code.bin from HTC dev. And unlocking wipes off all the settings and applications as expected.
So how can I relock the phone but it boots normally.
I previously had HTC Legend, I rooted and installed cyanogenmod and then relocked as well but it works fine. What I am doing wrong with my Desire X?
Click to expand...
Click to collapse
The security system might have changed since the legend. Why do u need to relock the bootloader??? Just asking.
BTW, u from pakistan?
Regards
Yasir
neXus PRIME said:
The security system might have changed since the legend. Why do u need to relock the bootloader??? Just asking.
BTW, u from pakistan?
Regards
Yasir
Click to expand...
Click to collapse
Yes, from Lahore
i'm turning in my phone so I want to do a complete wipe. I flashed the stock rom. I flashed the stock recovery. I relocked the bootloader via ADB. But when I go to do a factory reset it says in the upper left corner when trying to do it that it was modified and won't proceed with the reset. Please help me try to reset it to stock before I return it. Thanks!
Edit: I did all this last week so I've used the phone since I went back to stock and thus want to do another factory reset. .
Sent from my LG-H901 using Tapatalk
Would it be as simple as unlocking and relocking the bootloader? They could figure out the phone has been tampered with but not as easily.
Sent from my LG-H901 using Tapatalk
Hmm, i wasn't aware that it will still consider that the device has been modified, even after restoring everything and relocking the bootloader. But yeah, I guess if you unlock the bootloader again, it may factory reset again? Then yeah, relock and you should be good, especially if you are just turning the phone into a Tmo store.
So, long story short, I recently bought a Nexus 9 from ebay which arrived with factory reset protection.
I have spoken to both Google and HTC about the situation and both were of no real help except for saying a few things outright between them to give me good enough reason to believe one of two things.
That 1 - it is possible to flash factory images over a device with a locked bootloader
or 2 - it is possible to unlock the bootloader without having access to developer settings
Anyone have any experience with either of these possibilities?
https://developers.google.com/android/ota
Full OTA Images can be flashed onto devices with locked boot loaders.
You need to boot into recovery and select sideload update.
Yeah, I know how to do that, but that only goes for updates, doesn't it? I tried to sideload a previous build onto the tablet but it failed the procedure, so it doesn't really solve the issue and if I flash a more recent update I still get FRP :/ If I wanted to revert back to the 7.0, or even marshmallow, would that be possible? Or does that require an unlocked bootloader?
enriquejones666 said:
https://developers.google.com/android/ota
Full OTA Images can be flashed onto devices with locked boot loaders.
You need to boot into recovery and select sideload update.
Click to expand...
Click to collapse
Yeah, I know how to do that, but that only goes for updates, doesn't it? I tried to sideload a previous build onto the tablet but it failed the procedure, so it doesn't really solve the issue and if I flash a more recent update I still get FRP :/ If I wanted to revert back to the 7.0, or even marshmallow, would that be possible? Or does that require an unlocked bootloader?
BigDomTheFirst said:
Yeah, I know how to do that, but that only goes for updates, doesn't it? I tried to sideload a previous build onto the tablet but it failed the procedure, so it doesn't really solve the issue and if I flash a more recent update I still get FRP :/ If I wanted to revert back to the 7.0, or even marshmallow, would that be possible? Or does that require an unlocked bootloader?
Click to expand...
Click to collapse
Those are full ota images, same as factory image. Meaning full package.
BigDomTheFirst said:
Yeah, I know how to do that, but that only goes for updates, doesn't it? I tried to sideload a previous build onto the tablet but it failed the procedure, so it doesn't really solve the issue and if I flash a more recent update I still get FRP :/ If I wanted to revert back to the 7.0, or even marshmallow, would that be possible? Or does that require an unlocked bootloader?
Click to expand...
Click to collapse
Ah yes, now I see your predicament. Unfortunately, there is no "there" there. You do need an unlocked bootloader to wipe the system clean with a factory image, and as you noted, the Full OTA Image will recover you from a system that won't boot, but it won't get rid of FRP.
enriquejones666 said:
Ah yes, now I see your predicament. Unfortunately, there is no "there" there. You do need an unlocked bootloader to wipe the system clean with a factory image, and as you noted, the Full OTA Image will recover you from a system that won't boot, but it won't get rid of FRP.
Click to expand...
Click to collapse
Exactly Hence my questions as to how do the manufacturers wipe everything and flash the new image without unlocking the bootloader? Or will it always be a trade secret?...... Hmmmm
BigDomTheFirst said:
Exactly Hence my questions as to how do the manufacturers wipe everything and flash the new image without unlocking the bootloader? Or will it always be a trade secret?...... Hmmmm
Click to expand...
Click to collapse
did we ever fix this? my bootloader is locked and no os installed. Was trying to return to factory and went thru all the flashing steps successfully then at the end locked the bootloader. Now tablet says "for development purposes only not for production use" and boots back to fastboot. It will not reboot at all
Uncleheff said:
did we ever fix this? my bootloader is locked and no os installed. Was trying to return to factory and went thru all the flashing steps successfully then at the end locked the bootloader. Now tablet says "for development purposes only not for production use" and boots back to fastboot. It will not reboot at all
Click to expand...
Click to collapse
Never found out how they do this.... are you able to boot in to recovery? if you can do that you may be able to flash a recovery OTA through 'apply update from ADB'. Worth a shot
Uncleheff said:
did we ever fix this? my bootloader is locked and no os installed. Was trying to return to factory and went thru all the flashing steps successfully then at the end locked the bootloader. Now tablet says "for development purposes only not for production use" and boots back to fastboot. It will not reboot at all
Click to expand...
Click to collapse
If up dont mind my asking how did it get that way by just locking the bootloader? I was just about to flash stock and lock on my volantis, then read this...?
Bryanx86 said:
If up dont mind my asking how did it get that way by just locking the bootloader? I was just about to flash stock and lock on my volantis, then read this...?
Click to expand...
Click to collapse
definitely don't lock your bootloader. That is a horrible move and serves no purpose
madbat99 said:
definitely don't lock your bootloader. That is a horrible move and serves no purpose
Click to expand...
Click to collapse
I actually reflashed last factory stock image and relocked without issue. It is a horrible move, I agree...I already miss root, but it suits the purpose. Thanks for your reply.
Bryanx86 said:
I actually reflashed last factory stock image and relocked without issue. It is a horrible move, I agree...I already miss root, but it suits the purpose. Thanks for your reply.
Click to expand...
Click to collapse
it's only a bad move if you make a mistake and can't repair it because your bootloader is now locked. But if it goes well then you're all set.
Have tried to find a definitive answer to this but am unsure.
Ran Lineage for a few weeks and happy but looking at getting another phone (maybe Nokia)....anyway
My question is, now I have gone back to stock and all booting nicely and is not rooted, what would happen if I relock the bootloader. If it's ok to relock is it via adb or just deselect the bootloader option in settings.
Sorry if this has been answered elsehwere. I just can't find the black and white, yes no answer.
Thanks
The answer was yes. I read a lot about bootloops etc but all ok with relock for me.
In case itns of any use here is what I did.
1. Restored to stock by using the post below. Although all I did was flash boot.img, recovery.img and system.img. Let it boot then when System UI crashes hold power which restarts then select restart to stock recovery from the 5 second menu and did a factory reset.
https://forum.xda-developers.com/swift-2/how-to/marmite-wileyfox-ota-nougat-android-7-1-t3654999
2. Relocked bootloader using fastboot oem lock from the link below
https://www.theandroidsoul.com/relock-bootloader-fastboot-android/
3. Stuck phone on ebay!!!!
Possible Silly Question
Do I have to erase the phones data if I re-lock the bootloader? — I suppose I would just have to make a backup, but I'm stuck between not being able to root it and not being able to re-lock the, so far, useless features of the unlocked bootloader.
My device has been rooted, I can still relock it in settings, but what will happen if I relock it and reboot ?
I am afraid the phone will be boot loop again and the data will be lost
Huyqwerty said:
My device has been rooted, I can still relock it in settings, but what will happen if I relock it and reboot ?
I am afraid the phone will be boot loop again and the data will be lost
Click to expand...
Click to collapse
If you are rooted and relock OEM, you will get a message saying that the device has been modified and will not let you boot. So yes, all data will be lost except the things that are backed up to the cloud.