want to put my p6p back to stock. currently rooted on stock firmware stock kernel etc. what's the best way to get it back to stock? do I need to flash back the stock boot image before I lock the bootloader?
Magisk has an option to unroot then you can lock the bootloader
Either as @spart0n proposed or flash the original factory image (for that I prefer to using the Android Flash Tool, using the fastboot method has so far always failed to work for me).... After that you are back on original stock and can proceed to relock the bootloader using "fastboot flashing lock" (detailed info on the above linked page)
whatsisnametake2 said:
want to put my p6p back to stock. currently rooted on stock firmware stock kernel etc. what's the best way to get it back to stock? do I need to flash back the stock boot image before I lock the bootloader?
Click to expand...
Click to collapse
Official Google Android Flash Tool, and then lock the bootloader after that.
Note that you should never lock the bootloader unless you're 100% stock, and flashing the full stock image is the only way of ensuring that, even if you choose to not let Official Google Android Flash Tool wipe your user data, as well.
ok thanks. so if I wasn't going to use the android flash tool, flash the full stock image, then lock bootloader?
whatsisnametake2 said:
ok thanks. so if I wasn't going to use the android flash tool, flash the full stock image, then lock bootloader?
Click to expand...
Click to collapse
Yes. I would leave the oem unlock slider at allow unlock for awhile in case it goes sideways. I would wait for the first OTA update before changing that.
TonikJDK said:
Yes. I would leave the oem unlock slider at allow unlock for awhile in case it goes sideways. I would wait for the first OTA update before changing that.
Click to expand...
Click to collapse
Great advice. Once it's stable you can flip the OEM switch and a reboot reenables all security features.
TonikJDK said:
Yes. I would leave the oem unlock slider at allow unlock for awhile in case it goes sideways. I would wait for the first OTA update before changing that.
Click to expand...
Click to collapse
you mean in developer options? I hadn't thought of that thanks. so a full factory flash with wipe doesn't set that back to off?
so,
full factory flash with wipe
lock bootloader
boot into phone and turn OEM unlocking off
factory reset from phone settings
I'm returning the phone to google so it needs to be completely stock.
whatsisnametake2 said:
you mean in developer options? I hadn't thought of that thanks. so a full factory flash with wipe doesn't set that back to off?
so,
full factory flash with wipe
lock bootloader
boot into phone and turn OEM unlocking off
factory reset from phone settings
I'm returning the phone to google so it needs to be completely stock.
Click to expand...
Click to collapse
If you are returning it them skip my advice and do your steps.
Don't worry about this too much. Google does not care if you unlocked it.
TonikJDK said:
If you are returning it them skip my advice and do your steps.
Don't worry about this too much. Google does not care if you unlocked it.
Click to expand...
Click to collapse
ok thanks. so if you flash factory image then lock bootloader, the oem unlock will still be set to on when you go into the phone?
whatsisnametake2 said:
ok thanks. so if you flash factory image then lock bootloader, the oem unlock will still be set to on when you go into the phone?
Click to expand...
Click to collapse
Correct
TonikJDK said:
Correct
Click to expand...
Click to collapse
ok cheers
Related
SO I made a n00b mistake and accidentally reloacked bootloader trying to flash a fresh system image. I wanted to go back to stock after being rooted and unlocked.
Now i get the red screen of death and it just shuts off the phone. No recovery seems to be installed.
What do I do? Do I throw it in the garbage? Or is there a way to salvage this device?
Bootloader is locked and will not let me unlock again.
Thanks.
jdubya45 said:
SO I made a n00b mistake and accidentally reloacked bootloader trying to flash a fresh system image. I wanted to go back to stock after being rooted and unlocked.
Now i get the red screen of death and it just shuts off the phone. No recovery seems to be installed.
What do I do? Do I throw it in the garbage? Or is there a way to salvage this device?
Bootloader is locked and will not let me unlock again.
Thanks.
Click to expand...
Click to collapse
Can you boot into bootloader mode what so ever?
Yes only into bootloader. Can't unlock again though. Won't let me.
stevew84 said:
Can you boot into bootloader mode what so ever?
Click to expand...
Click to collapse
Only can get into bootloader but cannot unlock again. Everything else is gone.
jdubya45 said:
Yes only into bootloader. Can't unlock again though. Won't let me.
Click to expand...
Click to collapse
Have you tried to manually do this with ADB with the command prompt?
fastboot flashing unlock
stevew84 said:
Can you boot into bootloader mode what so ever?
Click to expand...
Click to collapse
stevew84 said:
Have you tried to manually do this with ADB with the command prompt?
fastboot flashing unlock
Click to expand...
Click to collapse
Yes. Fails. Remote fail and not allowed.
jdubya45 said:
Yes. Fails. Remote fail and not allowed.
Click to expand...
Click to collapse
I don't have the Pixel, so I'm going off of what I know from the 6P.
Does the Toolkit work for the Pixel? There has to be a way to get it working if you can get into bootloader.
stevew84 said:
I don't have the Pixel, so I'm going off of what I know from the 6P.
Does the Toolkit work for the Pixel? There has to be a way to get it working if you can get into bootloader.
Click to expand...
Click to collapse
I am not sure. I think I need Unlocked bootloader.
Actually i think you just need to reunlock using depixel8. That should unlock your bootloader and allow you to flash new firmware
Did you try using dePixel8 to to unlock your bootloader back? I would try that.
Sent from my Pixel XL using XDA Labs
Marghost said:
Did you try using dePixel8 to to unlock your bootloader back? I would try that.
Sent from my Pixel XL using XDA Labs
Click to expand...
Click to collapse
You have to be booted in Android for dePixel8 to work.
Am I missing something? why can't you just flash factory image again from the bootloader and then unlock your bootloader with the depixel8?
Sent from my Pixel XL using Tapatalk
MArtyChubbs said:
Am I missing something? why can't you just flash factory image again from the bootloader and then unlock your bootloader with the depixel8?
Sent from my Pixel XL using Tapatalk
Click to expand...
Click to collapse
He said that he tried to unlock the bootloader again and it won't let him. With a locked bootloader, you can't flash the system images.
Sent from my Pixel XL using XDA-Developers mobile app
Moderator warning,
I have cleaned this thread. XDA does not allow users to discuss fraud on this site.
jdubya45 said:
SO I made a n00b mistake and accidentally reloacked bootloader trying to flash a fresh system image. I wanted to go back to stock after being rooted and unlocked.
Now i get the red screen of death and it just shuts off the phone. No recovery seems to be installed.
What do I do? Do I throw it in the garbage? Or is there a way to salvage this device?
Bootloader is locked and will not let me unlock again.
Thanks.
Click to expand...
Click to collapse
My mind is blown on how you accomplished this. Did you ERASE the partitions and then plan on flashing stock ones yourself? Why not just run the script (flash-all.bat) that would have automatically done the ENTIRE process for you, except re-locking the bootloader?
If all you did was re-lock the bootloader, it should have done a factory reset on the next boot and used the existing system partition. If you erased the system partition and then re-locked the bootloader, you are almost certainly screwed and had better hope Google has some mercy to let you RMA the phone.
Couple options you could try off the top of my head. The pixel has A/B patitions try adb sideloading an update zip to get it to switch to the backup partition that might still be there.
You could also try downloading the Factory images and extracting the system and go into fastboot and type
Code:
fastboot boot system system.img
and see if that works. Then if it boots on the temp image run deadpixel8 or whatever its called and reflash the stock image with the flash-all.bat.
have the same problem on my pixel after accidentally relocking after root before flashing back to stock.
Does anyone have the stock pixel xl recovery.img? I thinking if I boot into recovery "fast boot boot recovery.img" then I can add side load etc the ota from google.
jdubya45 said:
SO I made a n00b mistake and accidentally reloacked bootloader trying to flash a fresh system image. I wanted to go back to stock after being rooted and unlocked.
Now i get the red screen of death and it just shuts off the phone. No recovery seems to be installed.
What do I do? Do I throw it in the garbage? Or is there a way to salvage this device?
Bootloader is locked and will not let me unlock again.
Thanks.
Click to expand...
Click to collapse
Insert BRICK emoji here
Atlantian said:
Insert BRICK emoji here
Click to expand...
Click to collapse
Hello guys, I'm on LineageOS. I want to go back to Oxygen OS. But I can't because of my locked bootloader.
I did try to connect with the pc via adb: "Fastboot flash recovery recovery.img" and it's says everytime bootloader is locked enable OEM. I know the OEM is in the Developer Options but not for me. It's not available.
What to do now?
Code:
fastboot oem unlock
It will wipe all of your data.
https://forum.xda-developers.com/oneplus-5t/how-to/oneplus-5t-unlock-bootloader-flash-twrp-t3704592
djmcnz said:
It will wipe all of your data.
https://forum.xda-developers.com/oneplus-5t/how-to/oneplus-5t-unlock-bootloader-flash-twrp-t3704592
Click to expand...
Click to collapse
Just did it. And than this error.
tap build number 7 times to enable developer options, enable usb debugging, then u do the adb.
MrTalon4 said:
Just did it. And than this error.
Click to expand...
Click to collapse
Yes, that means it's not enabled in developer options.
Now you say you don't have that OEM option available in the developer options - are you sure you've turned developer options on? If not do as @gorillaCF says above.
If you have done that and still don't have the option then back everything up, do a factory reset and try again immediately after that.
Flash factory images and go back to clean stock. Boot OOS and enable oem unlock in dev options
EugenStanis said:
Flash factory images and go back to clean stock. Boot OOS and enable oem unlock in dev options
Click to expand...
Click to collapse
Flash with locked bootloader? Is this possible?
What's broken with TWRP? What happens when you boot to recovery? Do you have adb access in any sort of recovery state?
djmcnz said:
What's broken with TWRP? What happens when you boot to recovery? Do you have adb access in any sort of recovery state?
Click to expand...
Click to collapse
I can't boot in recovery I will be stuck in the OnePlus logo.
And yes, I have adb access but my bootloader locked...
MrTalon4 said:
I can't boot in recovery I will be stuck in the OnePlus logo.
And yes, I have adb access but my bootloader locked...
Click to expand...
Click to collapse
Can you boot the stock recovery using fastboot?
the Doctor said:
Can you boot the stock recovery using fastboot?
Click to expand...
Click to collapse
It always says FAILED: "unlock device to use command". (Fastboot boot recovery.img)
MrTalon4 said:
It always says FAILED: "unlock device to use command". (Fastboot boot recovery.img)
Click to expand...
Click to collapse
There is always this, but it will wipe everything and completely reset your phone:
https://forum.xda-developers.com/oneplus-5t/how-to/oneplus-5t-unbricking-tool-confirmation-t3733012
^
do that.
LineageOS 15.1 doesn't have the OEM unlock feature. Normally, if you temper with the system and lock the bootloader it won't boot at all making this option useless. At least that's what I've experienced. As others stated you can only use the unbrick tool which will definitely work or contact OnePlus for an L2 technician who will use the same tool to do so.
So how did you do this? Did you do "fastboot oem lock" with TWRP and LineageOS on the device?
Macusercom said:
LineageOS 15.1 doesn't have the OEM unlock feature. Normally, if you temper with the system and lock the bootloader it won't boot at all making this option useless. At least that's what I've experienced. As others stated you can only use the unbrick tool which will definitely work or contact OnePlus for an L2 technician who will use the same tool to do so.
Click to expand...
Click to collapse
Why the hell LineageOS 15.1 don't have the OEM unlock? This makes no sense, because now I have a big problem.
Yeah, the unbrick tool I'm lucky but for the others with different devices will not have this unbrick tool. That's very stupid. It will be last time for me, with LineageOS.
the Doctor said:
So how did you do this? Did you do "fastboot oem lock" with TWRP and LineageOS on the device?
Click to expand...
Click to collapse
I did nothing like this. It was just locked I was surprised to.
MrTalon4 said:
I did nothing like this. It was just locked I was surprised to.
Click to expand...
Click to collapse
Normally, it is impossible to lock it without fastboot. Again, it's not LOS's fault. You should never lock your bootloader if on a custom ROM or modified system. I've been running LOS 15.1 for almost a week and never had such an issue.
MrTalon4 said:
Flash with locked bootloader? Is this possible?
Click to expand...
Click to collapse
Yes, afaik You can flash factory images without unlocking bootloader
EugenStanis said:
Yes, afaik You can flash factory images without unlocking bootloader
Click to expand...
Click to collapse
Sorry sir, but the factory Images means stock ROM and stock recovery.
Can't flash both
Why there is no backdoor for this situation? Why is this not possible, that you need by Factory images no unlocked bootloader. That would fix many problems.
Hey guys,
i just want to ask if there is a tested method to relock the bootloader of a rooted A2 Lite.
I use the stock rom, just unlocked and rooted it.
I've read something about the MiFlashTool and the Clean and Lock Option.
But I'm not sure about that, because the MiFlashTool is for Miui.
So what are the steps to relock the bootloader?
Thank you for your help
Mansil234 said:
Hey guys,
i just want to ask if there is a tested method to relock the bootloader of a rooted A2 Lite.
I use the stock rom, just unlocked and rooted it.
I've read something about the MiFlashTool and the Clean and Lock Option.
But I'm not sure about that, because the MiFlashTool is for Miui.
So what are the steps to relock the bootloader?
Thank you for your help
Click to expand...
Click to collapse
The MiFlashTool is also for the Stock Rom of the Mi A2 Lite (Not only MIUI!)
Download the Stock Rom and you can flash it via MiFlash. If you choose the option, you can relock the Bootloader when you do this.
Woah there buddy, if you try to lock a rooted phone you will have a hard brick. Don't try to lock the bootloader of a phone that is rooted or have system/boot etc. modifications.
marstonpear said:
Woah there buddy, if you try to lock a rooted phone you will have a hard brick. Don't try to lock the bootloader of a phone that is rooted or have system/boot etc. modifications.
Click to expand...
Click to collapse
And If i First delete the root-rights?
Mansil234 said:
And If i First delete the root-rights?
Click to expand...
Click to collapse
Not sure if it would work, the cleanest way would be to download official fastboot ROM, flash it via MiFlash (select clean and lock option). This will erase all your data and turn your phone to stock ROM. I'm saying this is the cleanest way because you may have issues by unrooting and locking the phone. Maybe it would work. Unsure.
marstonpear said:
Not sure if it would work, the cleanest way would be to download official fastboot ROM, flash it via MiFlash (select clean and lock option). This will erase all your data and turn your phone to stock ROM. I'm saying this is the cleanest way because you may have issues by unrooting and locking the phone. Maybe it would work. Unsure.
Click to expand...
Click to collapse
But you said that this would brick my device?
Mansil234 said:
But you said that this would brick my device?
Click to expand...
Click to collapse
He meant: If you have root acces with magisk first of all uninstall root and relock bootloader
Kineceleran said:
He meant: If you have root acces with magisk first of all uninstall root and relock bootloader
Click to expand...
Click to collapse
Ok, this was a misunderstanding
If you lock your bl at a modified system, you will get the message "your system got destroyed", I once had this. But I was lucky being able to unlock again... So no hardbrick... But doing all that leads to nothing. Btw. it's always useful to have an open bl... For example, if you mess up with a magik module and stuck @boot... Just ignore the stupid message of xiaomi!
Voodoojonny said:
If you lock your bl at a modified system, you will get the message "your system got destroyed", I once had this. But I was lucky being able to unlock again... So no hardbrick... But doing all that leads to nothing. Btw. it's always useful to have an open bl... For example, if you mess up with a magik module and stuck @boot... Just ignore the stupid message of xiaomi!
Click to expand...
Click to collapse
To prevent this, i want to remove the root access in the first place.
That i have a clean stock rom.
I tried it with no-data-loss method and it says, system is destroyed, i have it to unlock it.
With root, you can relock it, but it's useless.
Mansil234 said:
To prevent this, i want to remove the root access in the first place.
That i have a clean stock rom.
Click to expand...
Click to collapse
Backup up everything first
Download MiFlash and the correct ROM (not OTA version)
Then you can flash the Stock ROM which will remove everything
You can also choose to leave unlocked or lock the bootloader (re-lock is selected by default)
As this is a somewhat new device I wouldn't tick the option to save your data.
capajga said:
Backup up everything first
Download MiFlash and the correct ROM (not OTA version)
Then you can flash the Stock ROM which will remove everything
You can also choose to leave unlocked or lock the bootloader (re-lock is selected by default)
As this is a somewhat new device I wouldn't tick the option to save your data.
Click to expand...
Click to collapse
What is the correct rom if not the OTA-Version?
Mansil234 said:
What is the correct rom if not the OTA-Version?
Click to expand...
Click to collapse
Take a look at this thread:
https://forum.xda-developers.com/mi-a2-lite/how-to/ota-v9-6-4-0-odlmiff-t3823913
you can find pretty much all ota's and fastboot rom links.
All full ROMs end with .tgz extension
like this one:
http://bigota.d.miui.com/V9.6.4.0.O...0.ODLMIFF_20180724.0000.00_8.1_4afd3431a2.tgz
you have to extract it to be able to use it with MiFlash but I'm sure you'll find all the answers in the thread above
capajga said:
Take a look at this thread:
https://forum.xda-developers.com/mi-a2-lite/how-to/ota-v9-6-4-0-odlmiff-t3823913
you can find pretty much all ota's and fastboot rom links.
All full ROMs end with .tgz extension
like this one:
http://bigota.d.miui.com/V9.6.4.0.O...0.ODLMIFF_20180724.0000.00_8.1_4afd3431a2.tgz
you have to extract it to be able to use it with MiFlash but I'm sure you'll find all the answers in the thread above
Click to expand...
Click to collapse
Thanks! Everything went fine!
Mansil234 said:
Thanks! Everything went fine!
Click to expand...
Click to collapse
Glad to hear it :laugh:
Hello there.... I am upgrading from note 10+ n976B model to note 20 ultra, and want to completely return to stick...
I know how to get it back to proper stock etc.... and i know that Knox is tripped.... but can you relock bootloader without bricking?
thanks for any replies
anyone??
biggary said:
anyone??
Click to expand...
Click to collapse
flash stock with Odin, it will lock the bootloader, the knox fuse is definitely blown - if you do it correctly it should not be an issue.
ofc all the risks are in your hands, because you are doing it
w41ru5 said:
flash stock with Odin, it will lock the bootloader, the knox fuse is definitely blown - if you do it correctly it should not be an issue.
ofc all the risks are in your hands, because you are doing it
Click to expand...
Click to collapse
flashing stock with odin does not relock the bootloader mate
Is there no option in developer settings?
biggary said:
flashing stock with odin does not relock the bootloader mate
Click to expand...
Click to collapse
it is the first step - after that you should enter download mode and choose vol up to LOCK the bootloader
it will erase everything on the phone tho
check also here - https://forum.xda-developers.com/t/guide-re-lock-bootloader-galaxy-s10-s10-s10e.3934681/
SkoreK89 said:
Is there no option in developer settings?
Click to expand...
Click to collapse
if the phone is unlocked, that option is greyed out - but to actual lock the boot loader, flash with odin is required
Need back to 100% stock. I am returning, so how to unroot, and lock BL??? Thanks!
Factory reset and flash stock image from Google directly. Finally lock bootloader
Code:
fastboot flashing lock
miravision said:
Factory reset and flash stock image from Google directly. Finally lock bootloader
Code:
fastboot flashing lock
Click to expand...
Click to collapse
Is factory reset really needed for unrooting ?
Why wouldn't just flashing the original boot.img and re-locking the bootloader be enough ?,
considering you haven't changed any system files with root.
Maybe also "fastboot flash vbmeta --enable-verity --enable-verification vbmeta.img" before
locking the bootloader to enable verity.
andreipaval said:
Is factory reset really needed for unrooting ?
Why wouldn't just flashing the original boot.img and re-locking the bootloader be enough ?,
considering you haven't changed any system files with root.
Maybe also "fastboot flash vbmeta --enable-verity --enable-verification vbmeta.img" before
locking the bootloader to enable verity.
Click to expand...
Click to collapse
Changing the status of the bootloader - from either locked to unlocked - or unlocked to locked, wipes the phone, so same as a factory reset. Also, if they're returning the phone, they'd want to factory reset anyway.
I'd also suggest Official Google Android Flash Tool, and my understanding of flashing vbmeta.img is that if you don't have it set to disable, then by default it's enabled, although using the switches might work fine too.