Is there any way to reset to factory in custom recovery without losing root or unlocked boot loader?
joeyac02 said:
Is there any way to reset to factory in custom recovery without losing root or unlocked boot loader?
Click to expand...
Click to collapse
If you mean a factory reset, as in a full wipe, then you can do this from TWRP and it will not affect root nor your bootloader status.
On the other hand, if you mean re-flashing the factory image, then no, you can not do it from recovery. And you will loose root. But your bootloader will remain unlocked. FWIW, if you are unencrypted, flashing the factory image will also encrypt your kernel again.
Related
Wiping the XZ always lasts so long and the factory reset? Or because the boot loader is closed?
P900 said:
Wiping the XZ always lasts so long and the factory reset? Or because the boot loader is closed?
Click to expand...
Click to collapse
on a locked bootloader cwm will always take its time to wipe also there is a know fault on locked that you shouldnt factory it due to it has a problem mounting cache and the fails and skips
With an unlocked BL is faster and safer?
P900 said:
With an unlocked BL is faster and safer?
Click to expand...
Click to collapse
they are working on it but yer on a unlocked bl it is quicker but i am not 100% sure about cache problem, if you are unlocking bl dont forget to back up your TA partion
I tried the instructions posted at the Motorola site here:
https://motorola-global-portal.cust...r_detail/a_id/94936/p/30,6720,8696/reg/348778
It doesn't matter if I do the software reset from within android or the external reset, it won't work.
If I try the reset within android, it reboots and then boots normally.
If I try the external reset, I can get to the bootloader but when I choose 'factory' it reboots normally, not to recovery.
Device is rooted.
Any help?
Nevemind - just flashed stock recovery and was back in business.
dvation191 said:
Nevemind - just flashed stock recovery and was back in business.
Click to expand...
Click to collapse
Where did you get the stock recovery and how did you flash? I'm stuck in FC look and can't factory reset.
yamaha83 said:
Where did you get the stock recovery and how did you flash? I'm stuck in FC look and can't factory reset.
Click to expand...
Click to collapse
I got the image from here:
http://sbf.droid-developers.org/ghost_rcica/list.php
Booted the phone to the bootloader (adb reboot bootloader) and then used fastboot to flash the stock recovery:
fastboot flash system recovery.img
Then I was able to do a factory reset using the typical instructions posted in the OP
If I have a P9 on Nougat B391, I receive an OTA, am currently rooted on Magisk v14. If I install the OTA anyway? What will happen? I know I will lose root, but will my bootloader be relocked? Am I going to lose any data?
Would like to know what will happen next as I am thinking of installing it. thanks!
there are 2 posible outcomes, maybe 3.
1. update will be successfull and you will lose root, twrp, bootloader can be locked too, but on fastboot it will shown as unlocked, if you cant instal twrp, then you need to unlock bootloader even if there is tuped unlocked.
2. update will fail and you will be back on same build you was.
3. never hapened to me, but are possible, that phone got bricked!
Arnys said:
there are 2 posible outcomes, maybe 3.
1. update will be successfull and you will lose root, twrp, bootloader can be locked too, but on fastboot it will shown as unlocked, if you cant instal twrp, then you need to unlock bootloader even if there is tuped unlocked.
2. update will fail and you will be back on same build you was.
3. never hapened to me, but are possible, that phone got bricked!
Click to expand...
Click to collapse
IMO, (2) is most possible utcome. (3) may happen if you force DLOAD and other manual methods.
Better:
1) unroot by Magisk Uninstaller, find the download link in the post https://forum.xda-developers.com/showpost.php?p=74913863&postcount=1
2) flash from TWRP original stock boot img
3) wipe Dalwik and Cache from TWRP
3) flash from fastboot original stock recovery
4) let it make OTA update but select in the System Update settings to use Full (not differential) update - it will not delete your apps and settings
Of course, you will loose root and TWRP but bootloader will remain unlocked and you will not risk bricking the phone.
Arnys said:
there are 2 posible outcomes, maybe 3.
1. update will be successfull and you will lose root, twrp, bootloader can be locked too, but on fastboot it will shown as unlocked, if you cant instal twrp, then you need to unlock bootloader even if there is tuped unlocked.
2. update will fail and you will be back on same build you was.
3. never hapened to me, but are possible, that phone got bricked!
Click to expand...
Click to collapse
thanks, this roughly gives me an idea on what would happen and the risks it contains! thanks a lot!
zgfg said:
IMO, (2) is most possible utcome. (3) may happen if you force DLOAD and other manual methods.
Better:
1) unroot by Magisk Uninstaller, find the download link in the post https://forum.xda-developers.com/showpost.php?p=74913863&postcount=1
2) flash from TWRP original stock boot img
3) wipe Dalwik and Cache from TWRP
3) flash from fastboot original stock recovery
4) let it make OTA update but select in the System Update settings to use Full (not differential) update - it will not delete your apps and settings
Of course, you will loose root and TWRP but bootloader will remain unlocked and you will not risk bricking the phone.
Click to expand...
Click to collapse
thanks a lot! it's useful to know how to unroot my phone as there isn't any particular guide for this phone model haha. anyway, is there a way to unroot and lock my bootloader without wiping my phone?
roottree said:
thanks a lot! it's useful to know how to unroot my phone as there isn't any particular guide for this phone model haha. anyway, is there a way to unroot and lock my bootloader without wiping my phone?
Click to expand...
Click to collapse
Magisk Uninstaller does not wipe your phone.
However, unlocking or relocking Bootloader (from Fastboot) triggers Factory restore
After I did a factory reset via twrp, the phone is now saying a message after booting up "Decryption unsuccesful"
It says that it was able to use a password but that the data is corrupted. It ask to perform a factory reset but since my recovery img is twrp it just goes back to twrp and even after doing factory reset via twrp again i still get the same message.
Slowbeatle said:
After I did a factory reset via twrp, the phone is now saying a message after booting up "Decryption unsuccesful"
It says that it was able to use a password but that the data is corrupted. It ask to perform a factory reset but since my recovery img is twrp it just goes back to twrp and even after doing factory reset via twrp again i still get the same message.
Click to expand...
Click to collapse
You need to replace TWRP with your stock boot.image after performing a data wipe not just a factory reset.
Ainz_Ooal_Gown said:
You need to replace TWRP with your stock boot.image after performing a data wipe not just a factory reset.
Click to expand...
Click to collapse
I don't have the stock boot.image.
If possible, can you pm me with link?
Solved
Extracted from the kdz
I have to perform a factory reset on a rooted pixel 5.
Before I do, have I to flash the original boot.img to avoid bootloop?
nostromo12 said:
I have to perform a factory reset on a rooted pixel 5.
Before I do, have I to flash the original boot.img to avoid bootloop?
Click to expand...
Click to collapse
No, a factory reset just wipes data.
If you are trying to return your phone completely back to stock, I recommend using the Android Flash Tool. Your bootloader must be unlocked. Use the tool to flash the latest factory image; make sure you check the "Wipe data", "Force flash all partitions", and "Lock Bootloader" options.