Related
Hi, it's the first time I've rooted and changed rom to a phone (actually it's first time ever I'm using an android phone) so sorry if this question seems to be stupid
I've installed on my OPX this rom and now I want to update it, I read that I sould dirty flash the new version. What does this mean exactly? I just flash the new version without any wipe? Do I have to reflash Xsposed, gapps, ...? Thanks for the answers
FingolfinTheEldar said:
Hi, it's the first time I've rooted and changed rom to a phone (actually it's first time ever I'm using an android phone) so sorry if this question seems to be stupid
I've installed on my OPX this rom and now I want to update it, I read that I sould dirty flash the new version. What does this mean exactly? I just flash the new version without any wipe? Do I have to reflash Xsposed, gapps, ...? Thanks for the answers
Click to expand...
Click to collapse
In dirty flash
You only wipe cache and dalvik cache
You dont wipe data and system partition
For xposed you need to flash the xposed file again
And for gapps it depends, but generally you need to flash gapps again
Dirty flash is when you flash one custom ROM over an existing custom ROM on your phone (maybe the same ROM or a different one)
Off topic : clean flash is when you go back to stock ROM and then flash your new ROM zip
Does format data make a a clean install of the rom or i need something else?
I have oneplus5, i just relocked bootloader to install stock oreo, so i wiped data. And now i download and install oreo via OTA. Does this mean i have a clean rom?
And what if now i want to install a custom rom? How can i clean install it?
Tell me only this to clear it on my mind.
Now i have stock oreo, unlocked bootloader, TWRP and rooted. If i go to TWRP and wipe system and data ( and boot?? or this causes brick?? ) and then move a rom ( custom or not ) to internal memory (without exiting TWRP!!) and install it, this is a 100% clean install? Or if i wipe system, then i cant access TWRP anymore?
And last question. If the above statement is true, the rom i try to install must be the same version and the previous, if i dont want to brick my device? Cause the kernel has memorize it?
Just help me clarify these things and i think i will have my question fully answered!
Thanks i advance guys!
This link shows the steps to clean flash a rom : https://www.guidingtech.com/47725/flashing-rom-guide-twrp-android/
But this applies if your current rom and the rom you want to install have the same android version, right? What if i have android 6 and i want to clean install android 8 custom?
Someone delete this thread pls.
currently on the latest LOS 16 with latest vendor firmware. but, just wondering, if i were to flash newer firmware over my existing, would i lose all data etc and need to flash ROM / Gapps etc etc?
or should i just backup data/storage/boot, flash latest firmware then restore backup - would that work, or is it not advised?
sorry if that's a complete noob question!!
reg66 said:
currently on the latest LOS 16 with latest vendor firmware. but, just wondering, if i were to flash newer firmware over my existing, would i lose all data etc and need to flash ROM / Gapps etc etc?
or should i just backup data/storage/boot, flash latest firmware then restore backup - would that work, or is it not advised?
sorry if that's a complete noob question!!
Click to expand...
Click to collapse
I can tell you for certain that flashing of firmware/modem on OP3 does not affect the ROM, Gapps, Magisk or data. I am sure it will be the same on the F1 also.
However, it is possible that your device gets encrypted during first reboot after flashing firmware update. In this case you would have to format data to get rid of encryption, which means loss of your data. To avoid this, simply flash disable force encryption zip prior to first reboot.
mideg said:
However, it is possible that your device gets encrypted during first reboot after flashing firmware update. In this case you would have to format data to get rid of encryption, which means loss of your data. To avoid this, simply flash disable force encryption zip prior to first reboot.
Click to expand...
Click to collapse
Ah yes I forgot about encryption, it did say on first boot of Los that it was encrypting. Are you saying that I can flash decryption zip now and everything will be decrypted? Or do you mean everything is lost and I should only flash decryption before first boot of newly flashed rom?
Just reboot to twrp and see if you can read your files in clear text. If not, then your device got encrypted and you will have to format data.
To my understanding, you will get encrypted every time you chance from miui to aosp, or aosp to miui, or you flash a new vendor firmware zip, on reboot system this is. In these cases you should flash dfe zip prior to reboot system. You probably won't get encrypted changing between aosp roms. Though it won't hurt flashing dfe zip in this case either, just to be sure.
Can someone enlighten me how to dirty flash a custom rom? I mean I did it before but it was back in gingerbread days. Now that we use magisk, can someone give me the exact steps to do?
BenParz said:
Can someone enlighten me how to dirty flash a custom rom? I mean I did it before but it was back in gingerbread days. Now that we use magisk, can someone give me the exact steps to do?
Click to expand...
Click to collapse
Just flash the rom, and wipe cache thats it. But be sure ur using the same rom not another one
BenParz said:
Can someone enlighten me how to dirty flash a custom rom? I mean I did it before but it was back in gingerbread days. Now that we use magisk, can someone give me the exact steps to do?
Click to expand...
Click to collapse
wipe system,davik and cache. then dirty flash. remember not to wipe "system" if you flash OTA .zip
Okay, I have Additional questions :
1. Do I have to disable magisk modules or outright uninstall it before flashing?
2. Do I have to mount system and vendor in twrp again?
3. Do I need to install magisk again after dirty flashing?
4. Do I have to flash DFE again?
BenParz said:
Okay, I have Additional questions :
1. Do I have to disable magisk modules or outright uninstall it before flashing?
2. Do I have to mount system and vendor in twrp again?
3. Do I need to install magisk again after dirty flashing?
4. Do I have to flash DFE again?
Click to expand...
Click to collapse
1. Not necessary (unless you are using a module which may cause bootloop)
2. I never did.
3. Most of the times when dirty flashing the same ROM, twrp flashes Magisk (and GApps) automatically (atleast in my case). If it doesn't flash automatically, then you can flash it manually in order to make it certain.
4. Like I always said, flashing DFE is not necessary if you use the TWRP that supports decryption without actually decrypting your device permanently. Infact, I never suggest anyone to use a decrypted device if using it for financial purpose.
Rowdyy Ronnie said:
1. Not necessary (unless you are using a module which may cause bootloop)
2. I never did.
3. Most of the times when dirty flashing the same ROM, twrp flashes Magisk (and GApps) automatically (atleast in my case). If it doesn't flash automatically, then you can flash it manually in order to make it certain.
4. Like I always said, flashing DFE is not necessary if you use the TWRP that supports decryption without actually decrypting your device permanently. Infact, I never suggest anyone to use a decrypted device if using it for financial purpose.
Click to expand...
Click to collapse
Omg, thanks for answering my questions mate, much appreciated!
Depends, but if you are switching from a different ROM then dirty flash will most likely brick your device or cause a lot of errors and it should never be done. But if it is from the same ROM, like going from older PE to new one, then all you do is flash the newer one with the older version already installed. But it is recommended you clean flash because from my experience, dirty flash always caused errors like lag and crashing. Just use Migrate(available on Play store) and use it to backup apps. A lot of these custom ROMs are still early and in BETA so it is recommended you clean flash.
As for DFE, it is optional. Only problem is you will have to use TWRP with SD card support or one that has a working decryption so that you can flash files through the recovery . You can use apps like flashify to flash if you dont want to your device decrypted. If you got any questions you can ask me.
itscooltime said:
Depends, but if you are switching from a different ROM then dirty flash will most likely brick your device or cause a lot of errors and it should never be done. But if it is from the same ROM, like going from older PE to new one, then all you do is flash the newer one with the older version already installed. But it is recommended you clean flash because from my experience, dirty flash always caused errors like lag and crashing. Just use Migrate(available on Play store) and use it to backup apps. A lot of these custom ROMs are still early and in BETA so it is recommended you clean flash.
As for DFE, it is optional. Only problem is you will have to use TWRP with SD card support or one that has a working decryption so that you can flash files through the recovery . You can use apps like flashify to flash if you dont want to your device decrypted. If you got any questions you can ask me.
Click to expand...
Click to collapse
Actually I've got one.
I want to dirty flash a ROM (just an updated version of the same one) but I dont know how i can place a file into my phone's internal storage through TWRP without formatting de data (full wipe). My phone is not recognized by my PC on TWRP mode unless I make a full wipe.
Can you guys assist?
I have a question I'm using a custom rom with gapps, but the custom rom update that is available does not have gapps if I flash the non-gapp version on my gapp version will it cause problems?
gersomfcomiano said:
Actually I've got one.
I want to dirty flash a ROM (just an updated version of the same one) but I dont know how i can place a file into my phone's internal storage through TWRP without formatting de data (full wipe). My phone is not recognized by my PC on TWRP mode unless I make a full wipe.
Can you guys assist?
Click to expand...
Click to collapse
G3's typically have sd card storage available. athat's where I put all my roms, gapp's, other stuff which I have no trouble flashing from TWRP. Beyond that you must seek one more learned than I.
Nfury00701 said:
wipe system,davik and cache. then dirty flash. remember not to wipe "system" if you flash OTA .zip
Click to expand...
Click to collapse
in this case all data & apps will be lost ?
gajanan57 said:
in this case all data & apps will be lost ?
Click to expand...
Click to collapse
You're right. That user is wrong. Do NOT wipe system if you are dirty flashing. Otherwise you are just doing a normal flashing, not updating your rom.
fede01_8 said:
You're right. That user is wrong. Do NOT wipe system if you are dirty flashing. Otherwise you are just doing a normal flashing, not updating your rom.
Click to expand...
Click to collapse
I'd say no.
Android System partition is mounted as readonly after boot and won't be modified anymore then (unless you modify system files with adb/TWRP and mounted system partition).
Your during Android usage installed apps are stored in Data partition.
However you have to reflash gapps and magisk in case you installed them with TWRP/adb.
I am currently on Pixel Experience (Build no. : 190205) with Franco kernel. I have received the OTA update but unable to flash it from TWRP because of encryption enabled (ik I can use OTG tho) but I want to know how to disable that encryption WITHOUT flashing the data coz I don't want to rn, so is there any way to flash encryption disabker via magisk? I've searched around a bit for that but no help to force disable encryption without flashing the data first
And one more thing, after disabling the encryotion (without formating the data) can I dirty flash the OTA zip or again need to flash
A little help would really be appreciated :fingers-crossed:
dhruvsharma.dav said:
I am currently on Pixel Experience (Build no. : 190205) with Franco kernel. I have received the OTA update but unable to flash it from TWRP because of encryption enabled (ik I can use OTG tho) but I want to know how to disable that encryption WITHOUT flashing the data coz I don't want to rn, so is there any way to flash encryption disabker via magisk? I've searched around a bit for that but no help to force disable encryption without flashing the data first
And one more thing, after disabling the encryotion (without formating the data) can I dirty flash the OTA zip or again need to flash
Click to expand...
Click to collapse
I had this same question previously and did not have an answer, in my case I flash a new rom version with dirty flash, and data encryption was enabled, my new flash rom was very broken, I flashed the old version on my system and I lost access to /data, I was crazy at the moment trying to remember what I lost, but it was too late for that.
In your case you still have access to /data?
If so, backup for your notebook everything in the internal memory of your device.
If not, the only method of getting back to your device, is unfortunately, to do a Clean Flash.
PS: perhaps, there may be a good soul with a solution to it, but I did not have an answer that worked.
PS2: Always use DisableForceEncryptation after flashing some ROM, I've learned to lose things.
dhruvsharma.dav said:
I am currently on Pixel Experience (Build no. : 190205) with Franco kernel. I have received the OTA update but unable to flash it from TWRP because of encryption enabled (ik I can use OTG tho) but I want to know how to disable that encryption WITHOUT flashing the data coz I don't want to rn, so is there any way to flash encryption disabker via magisk? I've searched around a bit for that but no help to force disable encryption without flashing the data first
And one more thing, after disabling the encryotion (without formating the data) can I dirty flash the OTA zip or again need to flash
Click to expand...
Click to collapse
Backup first when you have the chance.
It seems that the official TWRP now can handle encryption/decryption. Check that and flash it, then boot back into TWRP and flash the OTA.
tnsmani said:
Backup first when you have the chance.
It seems that the official TWRP now can handle encryption/decryption. Check that and flash it, then boot back into TWRP and flash the OTA.
Click to expand...
Click to collapse
pkrename said:
I had this same question previously and did not have an answer, in my case I flash a new rom version with dirty flash, and data encryption was enabled, my new flash rom was very broken, I flashed the old version on my system and I lost access to /data, I was crazy at the moment trying to remember what I lost, but it was too late for that.
In your case you still have access to /data?
If so, backup for your notebook everything in the internal memory of your device.
If not, the only method of getting back to your device, is unfortunately, to do a Clean Flash.
PS: perhaps, there may be a good soul with a solution to it, but I did not have an answer that worked.
PS2: Always use DisableForceEncryptation after flashing some ROM, I've learned to lose things.
Click to expand...
Click to collapse
Well thanks for replying. I got a possible fix this btw ....
https://forum.xda-developers.com/poco-f1/development/recovery-twrp-3-2-3-decryption-t3853004
In this thread, the TWRP mentioned says " THIS TWRP DOES NOT DISABLE FORCE ENCRYPTION. IT WILL DECRYPT THE ENCRYPTED DATA WITHOUT THE NEED OF FORMATING IT " so I gave it a shot and it worked. Now I have encryption disabled from TWRP and working absolutely fine with internal storage mounted and needed not to format anything.
PS: just flashed that recovery via adba and viola oh and I always make a backup before tinkering with rom thanks tho