Question Can I unroot Pixel 7 Pro via Android Flash Tool? - Google Pixel 7 Pro

Hello, Pixel 7 Pro user here with unlocked bootloader and rooted on December Update.
Is it safe to wipe my device and Re-lock bootloader with a patched init_boot.img via Android Flash Tool? Or should I perform any actions before wiping my device? I am trying to unroot so i can send my device to google as it has a defective screen.
Thank you for any inputs

NIKOST said:
Hello, Pixel 7 Pro user here with unlocked bootloader and rooted on December Update.
Is it safe to wipe my device and Re-lock bootloader with a patched init_boot.img via Android Flash Tool? Or should I perform any actions before wiping my device? I am trying to unroot so i can send my device to google as it has a defective screen.
Thank you for any inputs
Click to expand...
Click to collapse
Yes. Android Flash Tool will overwrite everything, including init_boot. Just to be safe, check the Force flash all partitions box as well as Wipe device and Lock bootloader.

Related

Possible to completely reset your Honor 8? Lock bootloader, reset warning etc

Is there any way to completely reset your Honor 8?
I unlocked bootloader with code from huawei, rooted, twrp etc.
Is there any way to completely restore it to factory default?
I tried unrooting it and locked the bootloader using the tool here on the forum. But the warning is still there when you booted, that its been tampered with and is unsafe etc.
Is there no way to completely factory reset it, like it was when it was new?
nivity said:
Is there any way to completely reset your Honor 8?
I unlocked bootloader with code from huawei, rooted, twrp etc.
Is there any way to completely restore it to factory default?
I tried unrooting it and locked the bootloader using the tool here on the forum. But the warning is still there when you booted, that its been tampered with and is unsafe etc.
Is there no way to completely factory reset it, like it was when it was new?
Click to expand...
Click to collapse
I would also like to know the answer. I flashed stock and am now unrooted with stock recovery but still have unlocked bootloader warning screen on start. Tried to relock bootloader with serveral different fastboot commands, no luck!
redeyss said:
I would also like to know the answer. I flashed stock and am now unrooted with stock recovery but still have unlocked bootloader warning screen on start. Tried to relock bootloader with serveral different fastboot commands, no luck!
Click to expand...
Click to collapse
If u have L09 u should flash stock recovery and then flash stock full firmware B101 and the bootloader should be locked and warning should be gone.
I guess there is an internal counter that is tripped when bootloader is unlocked. Like Samsung's Knox.
I have L04, after updating manually root was wiped and stock recovery installed but was still getting bootloader warning. I booted into stock "erecovery" by holding volume up while booting. From there i restored stock firmware and when rebooted warning was gone. So I am now stock without unlocked warning on boot, YAY!
I unlocked my bootloader and then installed the B131 full update. Afterwards my bootloader was locked again and i had it to unlock again.
-> If you want to completely reset, install a full update and do a factory reset
@whiper: after the bootloader was locked and you unlock again, did the phone a factory reset?
Palindrom87 said:
@whiper: after the bootloader was locked and you unlock again, did the phone a factory reset?
Click to expand...
Click to collapse
Yes. The unlocking process was the same after the update as before including factory reset.
I think the B131 update includes all partitions so that the unlock flag is overwritten.
After the update all was normal, no data wipe, but bootloader locked. I had to unlock it again and all data was wiped.
When i do the next update i will try an ota version.
(With my Honor 7 i did a full update which does not lock the bootloader, so i think it depends from the partitions the update contains)
Guys, just to make it clear. I have a L04 model. i am bootloader unlocked, rooted and have TWRP installed. Is it possible to relock and go back to stock, but simply flashing the stock L04 firmware? Does Honor 8 have some inbuilt trip to notify that the bootloader is unlocked?
SpidySun said:
Guys, just to make it clear. I have a L04 model. i am bootloader unlocked, rooted and have TWRP installed. Is it possible to relock and go back to stock, but simply flashing the stock L04 firmware? Does Honor 8 have some inbuilt trip to notify that the bootloader is unlocked?
Click to expand...
Click to collapse
Yes. Just flash the whole firmware using fastboot.
Sent from my honor 5X using XDA Labs

Restoring rooted Pixel 2 to full stock factory condition

Hi all. I am moving on from my bootloader-unlocked and rooted Pixel 2 to an S10e and need to trade in my phone. Samsung just says I need to factory reset it, but I'd like to return it to full stock in case they would not accept a trade-in with an unlocked bootloader. I'm on the March security patch. What is the easiest way to return the phone to full stock condition with a locked bootloader?
My thought is that I just have to get the latest SDK and flash a walleye factory image: https://developers.google.com/android/images and then relock the bootloader. Am I correct or is it more complicated? Do I need to flash the same security patch as I'm on, or is the latest one OK?
jrbmed08 said:
Hi all. I am moving on from my bootloader-unlocked and rooted Pixel 2 to an S10e and need to trade in my phone. Samsung just says I need to factory reset it, but I'd like to return it to full stock in case they would not accept a trade-in with an unlocked bootloader. I'm on the March security patch. What is the easiest way to return the phone to full stock condition with a locked bootloader?
My thought is that I just have to get the latest SDK and flash a walleye factory image: https://developers.google.com/android/images and then relock the bootloader. Am I correct or is it more complicated? Do I need to flash the same security patch as I'm on, or is the latest one OK?
Click to expand...
Click to collapse
Flash the latest full factory image. Just use the flash all batch file without any modifications to it. Note that this will wipe the device Locking the bootloader will also wipe the device. Make sure everything boots correctly before locking the bootloader.
jd1639 said:
Flash the latest full factory image. Just use the flash all batch file without any modifications to it. Note that this will wipe the device Locking the bootloader will also wipe the device. Make sure everything boots correctly before locking the bootloader.
Click to expand...
Click to collapse
Thanks! Wiping the device is my goal so that's perfect. Appreciate the help.
download > Tool all in one. Update it. update the drivers button at the bottom. now....... choose your phone. now choose flash factory image button.
it go to page where you pick the right firmware for you phone. press the download link. go back to Tool all in one and find the file you just download and then flash it with the button.

help

Without unrooting my OnePlus 7 if i directly go to fastboot mode and use command fastboot OEM lock what will happen ( my phone is rooted with magisk without twrp)? I want to lock my OnePlus 7 bootloader as i want to sell my phone
Thanks in advance
mannulko said:
Without unrooting my OnePlus 7 if i directly go to fastboot mode and use command fastboot OEM lock what will happen ( my phone is rooted with magisk without twrp)? I want to lock my OnePlus 7 bootloader as i want to sell my phone
Thanks in advance
Click to expand...
Click to collapse
Please don't do this. Please clean install stock rom like stable OxygenOS and perform a factory reset from that rom. Now you can lock your bootloader.
strongst said:
Please don't do this. Please clean install stock rom like stable OxygenOS and perform a factory reset from that rom. Now you can lock your bootloader.
Click to expand...
Click to collapse
Ok thanks
mannulko said:
Ok thanks
Click to expand...
Click to collapse
If you need further help, just ask
Clean install means i should download stock oos rom and flash it through local upgrade method?
mannulko said:
Clean install means i should download stock oos rom and flash it through local upgrade method?
Click to expand...
Click to collapse
Exactly. Or if you are already on latest stock oos, you can do a factory reset,then boot, enable USB debugging and issue the fastboot command to lock the device(which wipes it additionally).

Downgrade to Android 9 with pending update on 10?

I'm currently on stock Android 10, unlocked bootloader, rooted with Magisk. There's an available update (12.7 MB) but it always gives an error message of "Couldn't update / Installation problem". Uninstalling Magisk didn't fix the issue, so I'm assuming it's due to unlocked bootloader.
If I want to downgrade to 9, is it a simple case of flashing the factory image of Android 9, or does Android 10 need to be fully up to date first? Do I need to re-lock the bootloader?
Any advice much appreciated!
ichigodango said:
I'm currently on stock Android 10, unlocked bootloader, rooted with Magisk. There's an available update (12.7 MB) but it always gives an error message of "Couldn't update / Installation problem". Uninstalling Magisk didn't fix the issue, so I'm assuming it's due to unlocked bootloader.
If I want to downgrade to 9, is it a simple case of flashing the factory image of Android 9, or does Android 10 need to be fully up to date first? Do I need to re-lock the bootloader?
Any advice much appreciated!
Click to expand...
Click to collapse
You can downgrade to 9 but you'll need to do a full wipe. Instead download the full factory image for the latest update and edit the flash-all batch file you'll find in it to remove the -w. Then run the batch file. You'll need to copy the boot.img file in the factory image to your device and then patch it with magisk to root. That patched image will need to be flashed to your device using fastboot from your pc.
I ran into the same issue as you when trying to update with the ota.
ichigodango said:
I'm currently on stock Android 10, unlocked bootloader, rooted with Magisk. There's an available update (12.7 MB) but it always gives an error message of "Couldn't update / Installation problem". Uninstalling Magisk didn't fix the issue, so I'm assuming it's due to unlocked bootloader.
If I want to downgrade to 9, is it a simple case of flashing the factory image of Android 9, or does Android 10 need to be fully up to date first? Do I need to re-lock the bootloader?
Any advice much appreciated!
Click to expand...
Click to collapse
Your problem is not due to an unlocked bootloader. I had no problems with that update following this procedure. https://github.com/topjohnwu/Magisk/blob/master/docs/tutorials.md
You would have to reinstall Magisk to follow that procedure.
You should be able to flash the full factory image of either 9 or 10, but that will wipe your phone. Here is a link to a thread regarding downgrading from 10 to 9. That thread is for an XL, but it is still applicable.
https://forum.xda-developers.com/showpost.php?p=80206785&postcount=31
Complete flashing instructions are here: https://developers.google.com/android/images#instructions
You can flash the factory image without wiping your phone by editing flash-all.bat, and removing -w from the last line. That may not fix your problem, though. You may need a wipe to fix it.
Make sure to download the latest platform tools if you decide to flash. https://developer.android.com/studio/releases/platform-tools
I would not relock the bootloader. It may be impossible to recover from a bricked phone with a locked bootloader, and the relocking process may brick the phone. You must be on a stock image to relock the bootloader.
jd1639 said:
You can downgrade to 9 but you'll need to do a full wipe. Instead download the full factory image for the latest update and edit the flash-all batch file you'll find in it to remove the -w. Then run the batch file. You'll need to copy the boot.img file in the factory image to your device and then patch it with magisk to root. That patched image will need to be flashed to your device using fastboot from your pc.
I ran into the same issue as you when trying to update with the ota.
Click to expand...
Click to collapse
I managed to figure it out, updated ota and am now back on 9 with no problems I used flash-all without removing -w but didn't lose anything important so it's all good!
dcarvil said:
Your problem is not due to an unlocked bootloader. I had no problems with that update following this procedure. https://github.com/topjohnwu/Magisk/blob/master/docs/tutorials.md
You would have to reinstall Magisk to follow that procedure.
You should be able to flash the full factory image of either 9 or 10, but that will wipe your phone. Here is a link to a thread regarding downgrading from 10 to 9. That thread is for an XL, but it is still applicable.
https://forum.xda-developers.com/showpost.php?p=80206785&postcount=31
Complete flashing instructions are here: https://developers.google.com/android/images#instructions
You can flash the factory image without wiping your phone by editing flash-all.bat, and removing -w from the last line. That may not fix your problem, though. You may need a wipe to fix it.
Make sure to download the latest platform tools if you decide to flash. https://developer.android.com/studio/releases/platform-tools
I would not relock the bootloader. It may be impossible to recover from a bricked phone with a locked bootloader, and the relocking process may brick the phone. You must be on a stock image to relock the bootloader.
Click to expand...
Click to collapse
You're totally right that my problem had nothing to do with bootloader. I realised that by rooting with Magisk, the boot.img was modified, so I downloaded the image of the version that I had, extracted boot.img, flashed it to my phone, which got ota working.
I then updated ota to the latest Android 10 just in case, before flashing Android 9 followed by root - this was probabaly more complicated than necessary and I probabaly could have skipped the ota update, but everything is working as intended
dcarvil said:
Your problem is not due to an unlocked bootloader. I had no problems with that update following this procedure. https://github.com/topjohnwu/Magisk/blob/master/docs/tutorials.md
You would have to reinstall Magisk to follow that procedure.
Click to expand...
Click to collapse
What's the difference between this method and simply flashing the phone with the stock boot.img? I just flashed stock boot.img, got ota working on 10, updated, before downgrading to 9. Will I run into any issues because I didn't use Magisk's restore image?
ichigodango said:
What's the difference between this method and simply flashing the phone with the stock boot.img? I just flashed stock boot.img, got ota working on 10, updated, before downgrading to 9. Will I run into any issues because I didn't use Magisk's restore image?
Click to expand...
Click to collapse
Flashing the stock boot image removes root, so you must re-root the phone after updating. This method removes root from the active slot, but preserves it on the alternate slot. After the OTA root is restored from the alternate slot.
The end result is the same for both cases, but following the OTA procedure is simpler and faster.
dcarvil said:
Flashing the stock boot image removes root, so you must re-root the phone after updating. This method removes root from the active slot, but preserves it on the alternate slot. After the OTA root is restored from the alternate slot.
The end result is the same for both cases, but following the OTA procedure is simpler and faster.
Click to expand...
Click to collapse
That makes sense, thanks!

oneplus 8t unroot + get back to stock

Hi,
I am currently on A11 with Oneplus 8T and unlocked bootloader + rooted stock rom.
What is the proper process to lock the bootloader and to get back the stock rom? What are the options?
Can I just factory reset the device?
Thanks,
2019registered said:
Hi,
I am currently on A11 with Oneplus 8T and unlocked bootloader + rooted stock rom.
What is the proper process to unlock the bootloader and to get back the stock rom? What are the options?
Can I just factory reset the device?
Thanks,
Click to expand...
Click to collapse
You're confusing us
You're already unlock+root
Then again ask for unlock BL!
If you want just stock then flash boot from stock that's it nothing else to do
@Mr Hassan sorry, I have just edited the first post. I want to LOCK the bootloader and get fully back to an unrooted stock rom.
2019registered said:
@Mr Hassan sorry, I have just edited the first post. I want to LOCK the bootloader and get fully back to an unrooted stock rom.
Click to expand...
Click to collapse
That's simple just flash stock rom or boot and relock it
2019registered said:
@Mr Hassan sorry, I have just edited the first post. I want to LOCK the bootloader and get fully back to an unrooted stock rom.
Click to expand...
Click to collapse
Install the latest rom for your phone from the OnePlus support site using local install. That will overwrite the Magisk patched boot you currently have installed.
After the phone reboots (you'll see that Magisk shows it's not installed) then boot into bootloader and use fastboot oem lock
Then select NO (yes, this is a bug in the OOS bootloader) and that should wipe your phone and bring it up with the bootloader locked.
if you want the easiest fastest way, just use the msm tool for the correct model.
ps. if you dont care about losing your data

Categories

Resources