Flashing custom rom and data preservation - OnePlus 6 Questions & Answers

I've unlocked the bootloader and installed a custom rom and installed magisk. I know that the data is encrypted but I wanted to know if the data will be removed if a custom rom is flashed on top of it again via TWRP?
Will it also be the case for a rom OTA or will data be preserved?

Related

How to flash OTA update on rooted phone with custom recovery?

Trying to flash 5.0 OTA from 4.4.4 without losing data on Nexus 5.
I don't know how to remove custom recovery so I can sideload the OTA zip in the stock recovery. It keeps loading into TWRP instead.
Can someone explain step by step how I flash the factory recovery.img?
That's not even possible (as far as I know)...
XDA Visitor said:
Trying to flash 5.0 OTA from 4.4.4 without losing data on Nexus 5.
I don't know how to remove custom recovery so I can sideload the OTA zip in the stock recovery. It keeps loading into TWRP instead.
Can someone explain step by step how I flash the factory recovery.img?
Click to expand...
Click to collapse
Removing a custom recovery while preserving data is not possible, you should backup all your data, remove the custom recovery, flash 5.0 and then restore your custom recovery.
Are you using the Nexus Root Toolkit? It's incredibly easy and I use it for almost all my flashing, rooting, etc.
You can't apply an OTA on a rooted phone. On Kitkat and before you could end up in a boot loop. After Lollipop the OTA changed to system-level verification, and any change to the ROM stopped the OTA - all you get is a reboot to an unchanged system.
In any case, major ROM jumps usually work best with a total wipe and clean install of the new ROM. somerandomatoms is right - back up and install the new ROM. But why go to 5? You may as well go straight to 6.0.1.

[Q] Back to stock

I flashed Lollipop 5.0.1 and rooted but am now selling the device. I did a full erase in the settings which deleted user data, but I still have the custom recovery and root (SuperSu) installed, how do I fully wipe the device back to stock recovery?

Updating firmware with rooted phone and custom kernel

I rooted my OnePlus when it first came out and had a custom kernel on it, and since then I haven't updated it. I want to update to CM13 but am not familiar with the process that needs to be done without losing any data or risk bricking my phone. I believe it has TWRP recovery and Franco kernel (I don't have the phone with me so can't verify).
Do I simply unlock the bootloader, backup data and then flash the new custom ROM? Would I be able to flash a custom ROM without losing root? I want to keep the root but go back to stock kernel.
Thanks
When you unlock your bootloader you'll lose all your data. However if your bootloader is already unlocked, proceed to flash this TWRP version (unofficial TWRP 2.8.6.0.6 by kumajaya): www.androidfilehost.com/?fid=23991606952609056
Other versions of TWRP have bugs not updating the firmware properly.
You'll lose your root but CM13 nightlies have their own root in the developer settings. Or you can flash SuperSU 2.67 on top after you flash the ROM if you prefer SuperSU.
Oh and make a TWRP nandroid backup first before you do anything. Backup the firmware partition too if it's not checked by default.

Encryption and custom rom

Hi, how does encryption and root get along?
I rooted, flashed TWRP and flashed a custom rom (decent rom) and now that I can install the email client to check work mails it asks me to encrypt the phone.
Will I be able to update the current rom if the phone is encrypted? And how about flashing a different rom?
https://forum.xda-developers.com/galaxy-s7/help/to-magisk-data-encryption-s7-t3667007
It's possible. Not sure if he figured out how to update.

How to flash custom rom?

Guys, i want flash a custom rom.
Someone write me full instructions?
Ex; Mi bootloader unlock etc.
unlock bootloader
Install twrp which i wont recommend because its unstable one and wait for official twrp if u don't want bootloop
after twrp ,mount all storage, clear all data ,cache but don't erase system data then flash Custom rom zip file and restart
Twrp is not working properly with Xioami.eu roms because Google change their code and kernel , better wait for new working TWRP and new realize
There are plenty guides on unlocking and flashing TWRP. I would suggest to not upgrade to A11 to avoid TWRP issues. What I did from stock A10 using Chinese TWRP:
Flash required stock rom base,
Flash custom rom,
Flash Gapps if required,
Flash magisk,
Format data,
Reboot.

Categories

Resources