Flashing ROMs. - OnePlus 5 Questions & Answers

I see people are experiences alot of problems prior to flashing custom ROMs.
I hear people saying you need to decrypt device etc.
Can anyone run me through what this means? And what exactly needs doing? I've got the jist it's something to do with user data wiping?

All current ROMs don't support encryption, that's why we have to decrypt to flash.
Decrypting involves just formatting data in TWRP...Not wiping.
In future ROMs may support encryption if that is fixed you won't need to decrypt to flash ROMs.

therohanchawla said:
All current ROMs don't support encryption, that's why we have to decrypt to flash.
Decrypting involves just formatting data in TWRP...Not wiping.
In future ROMs may support encryption if that is fixed you won't need to decrypt to flash ROMs.
Click to expand...
Click to collapse
Thanks for your info. I will continue to flash a custom ROM then... How do I just format data?

jameswalker457 said:
Thanks for your info. I will continue to flash a custom ROM then... How do I just format data?
Click to expand...
Click to collapse
Check this post!

Related

[Q] F2FS question

I'm sorry if this has been asked, but I have looked and am not able to post in the developer thread yet. I've got everything up and running on my N7 with f2fs, but I'm curious now if I update my ROM do I have to go through all the steps again? Do I always need to format data at the end and lose everything? Should I be using titanium backup to solve this? Hopefully someone can help me out.
waywardsojourner said:
I'm sorry if this has been asked, but I have looked and am not able to post in the developer thread yet. I've got everything up and running on my N7 with f2fs, but I'm curious now if I update my ROM do I have to go through all the steps again? Do I always need to format data at the end and lose everything? Should I be using titanium backup to solve this? Hopefully someone can help me out.
Click to expand...
Click to collapse
If everything is up and running on F2FS already, you can flash and restore titanium backups as normal. You just now have to make sure the ROM and/or kernel you're flashing supports F2FS or has been converted to support F2FS.
PrizmaticSmoke said:
If everything is up and running on F2FS already, you can flash and restore titanium backups as normal. You just now have to make sure the ROM and/or kernel you're flashing supports F2FS or has been converted to support F2F2.
Click to expand...
Click to collapse
Thanks for the info!
PrizmaticSmoke said:
If everything is up and running on F2FS already, you can flash and restore titanium backups as normal. You just now have to make sure the ROM and/or kernel you're flashing supports F2FS or has been converted to support F2FS.
Click to expand...
Click to collapse
I am already on Carbon Rom All-F2FS, should I switch to another F2FS rom, what wipes are necessary? And should I format my tab again to all F2FS?
Leonhan said:
I am already on Carbon Rom All-F2FS, should I switch to another F2FS rom, what wipes are necessary? And should I format my tab again to all F2FS?
Click to expand...
Click to collapse
Just do a normal clean flash like you would if you were still on ext4. No need to reformat. That's how i switched to Carbon. As far as nightlies on Carbon (or others), just dirty flash them. I've had no problems doing that.

Wipe from TWRP + Kernal install?

Sorry if this has been asked (did a couple searches didn't see a thread matching) but I already have my bootloader unlocked (from flashing a factory image) but I'm wondering if I choose to install TWRP and then flash a custom kernal would either of those actions require a full wipe (as in losing all data) of my 6P?
Thank you!
USFguy said:
Sorry if this has been asked (did a couple searches didn't see a thread matching) but I already have my bootloader unlocked (from flashing a factory image) but I'm wondering if I choose to install TWRP and then flash a custom kernal would either of those actions require a full wipe (as in losing all data) of my 6P?
Thank you!
Click to expand...
Click to collapse
If you want to decrypt the internal storage, then yes, you will need to wipe. If not, you can go ahead.
DJBhardwaj said:
If you want to decrypt the internal storage, then yes, you will need to wipe. If not, you can go ahead.
Click to expand...
Click to collapse
From what I read in the guide from Heisenberg there's really no reason to decrypt anymore correct?
USFguy said:
From what I read in the guide from Heisenberg there's really no reason to decrypt anymore correct?
Click to expand...
Click to collapse
It depends upon you. There is not much difference in terms of performance.

If I flash a custom ROM to my device, will the /data partition get formatted?

I really want to flash custom ROMs to my device (like ports or LineageOS, for instance), but I really can't do without the files in my /data partition, backing up is not an option really.
So, if I flash a custom ROM to my device, will I lose my data? Does this vary from ROM to ROM? Thank you!
realpanv said:
I really want to flash custom ROMs to my device (like ports or LineageOS, for instance), but I really can't do without the files in my /data partition, backing up is not an option really.
So, if I flash a custom ROM to my device, will I lose my data? Does this vary from ROM to ROM? Thank you!
Click to expand...
Click to collapse
/data must be wiped when flashing other rom. That partition contains the apps and their data. Someone correct me if it contains something else too.
What files you're worried about? Why not backing up?
realpanv said:
I really want to flash custom ROMs to my device (like ports or LineageOS, for instance), but I really can't do without the files in my /data partition, backing up is not an option really.
So, if I flash a custom ROM to my device, will I lose my data? Does this vary from ROM to ROM? Thank you!
Click to expand...
Click to collapse
The /data partition only contains app data and things like that. All your pictures and music on the internal storage will still be there unless you wipe internal too.

Encrypt / not Encrypt data?

Pros and cons of having an encrypted data partition.
Keeping in mind you're going to have TWRP running on recovery.
I'm assuming if you're planning on switching roms in the future even though you're on stock oxygen right now you should move to a decrypted /data partition so you can flash different roms in the future.
Some custom ROMs seem to require an encrypted data partition. That may become standard or not. Depends.
vortex-5 said:
Pros and cons of having an encrypted data partition.
Keeping in mind you're going to have TWRP running on recovery.
I'm assuming if you're planning on switching roms in the future even though you're on stock oxygen right now you should move to a decrypted /data partition so you can flash different roms in the future.
Click to expand...
Click to collapse
I think it's depend on what you need to do.. or better in which rom do you want to install
So I know you can go from not encrypted to encrypted while the OS is online can you do a similar thing form encrypted to decrypted? Or are we talking about a wipe to get data back to decrypted.
vortex-5 said:
So I know you can go from not encrypted to encrypted while the OS is online can you do a similar thing form encrypted to decrypted? Or are we talking about a wipe to get data back to decrypted.
Click to expand...
Click to collapse
Decrypting will wipe all your data including internal storage. That's why it is such a PITA
Pwnycorn said:
Decrypting will wipe all your data including internal storage. That's why it is such a PITA
Click to expand...
Click to collapse
I guess that answers the question I'll start decrypted then.

Rooting my X00_TD?

I have unlocked the boot-loader and also installed TWRP recovery on my X00_TD device which has 'Pie' as it's Stock ROM.
Now, I would like to know how to proceed to do rooting on this device.
Is it necessary to run decrypt zip file before we run 'magisk-v19.1' to root?
Please advise!
Decrypt removes another variable from the process, so yeah it might be good to remove a probable failure point.
Decrypt and then Magisk?
arko9699 said:
Decrypt removes another variable from the process, so yeah it might be good to remove a probable failure point.
Click to expand...
Click to collapse
So , irrespective of the state of the device one needs to flash the decrypt file first and then flash the magisk to root the device, right?
Please advise!
Kudla said:
So , irrespective of the state of the device one needs to flash the decrypt file first and then flash the magisk to root the device, right?
Please advise!
Click to expand...
Click to collapse
When rooting mine I used the decrypt.zip . When you factory reset the phone will take some time to encrypt your data and this prevents that. It will hinder you from flashing stuff from the internal storage in TWRP. You can use magisk without it too.
Unable to Mount Storage?
arko9699 said:
When rooting mine I used the decrypt.zip . When you factory reset the phone will take some time to encrypt your data and this prevents that. It will hinder you from flashing stuff from the internal storage in TWRP. You can use magisk without it too.
Click to expand...
Click to collapse
I went ahead and flashed magisk without flashing decrypt. The root was successful!
Now, when tried to clear cache via TWRP it says 'Unable to Mount Storage'. What could be the reason here?
Is it safe to wipe dalvik/art cache?
Please advise!
Kudla said:
I went ahead and flashed magisk without flashing decrypt. The root was successful!
Now, when tried to clear cache via TWRP it says 'Unable to Mount Storage'. What could be the reason here?
Is it safe to wipe dalvik/art cache?
Please advise!
Click to expand...
Click to collapse
Try to run decrypt.zip it should fix the problem. I used a OTG device since I didn't have a SD card. Unless you run decrypt.zip you cannot use the internal storage. So I would recommend running it despite my last statement.

Categories

Resources