What is exactly a "dirty flash"? - OnePlus X Q&A, Help & Troubleshooting

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

Related

[Q] Android update

Hi!
I need some help with understanding of flashing custom roms e.t.c.
If I have 4.3 ( latest official update ), is it possible that I upgrade to CM11 4.4? Or I just can flash roms wich are based on 4.3?
Dont get it!
Thank you for responding!
If you have custom recovery installed, then you can install Compatible ROMs for your device (such as CM 4.4). If you are running stock or another ROM, then by entering custom recovery and making Nandroid backup first, you can install the ROM. To install, read the post for ROM you want to make sure compatible/whats needed (like GApps, etc), download, backup current ROM if isssue happens (to save yourself), WIPE data/factory reset, WIPE cache/dalvik cache, install ROM/etc as directed via the ROM post page. As long as you can meet these, you can flash what you'd like.
RevelationOmega said:
If you have custom recovery installed, then you can install Compatible ROMs for your device (such as CM 4.4). If you are running stock or another ROM, then by entering custom recovery and making Nandroid backup first, you can install the ROM. To install, read the post for ROM you want to make sure compatible/whats needed (like GApps, etc), download, backup current ROM if isssue happens (to save yourself), WIPE data/factory reset, WIPE cache/dalvik cache, install ROM/etc as directed via the ROM post page. As long as you can meet these, you can flash what you'd like.
Click to expand...
Click to collapse
I have cwm on my phone and made a backup yesterday so i think im ready to roll!
Thank you!!!
damarsdun said:
I have cwm on my phone and made a backup yesterday so i think im ready to roll!
Thank you!!!
Click to expand...
Click to collapse
Welcome, make sure you do your research though on flashing and the ROM in case there are issues with the ROM specifically (ex. Bluetooth not working, or something). Any one thing missing (didn't flash GApps, ROM problem, etc) can cause issue. If no issues or you can live around them if they exist, then good luck.

Error 7

I installed one latest firmwares to try it, and hate it. Anyway I went to install CM13 even blisspop and it won't install and gives error 7. I can odin stock rom but can't flash any asop is my sm-g900T dead lol.
enzodad said:
I installed one latest firmwares to try it, and hate it. Anyway I went to install CM13 even blisspop and it won't install and gives error 7. I can odin stock rom but can't flash any asop is my sm-g900T dead lol.
Click to expand...
Click to collapse
Are you doing a full wipe before installing any AOSP ROM? I.e. in TWRP, there is an option for Advanced Wipe. Before your first time installing any AOSP ROM, coming from stock ROM, you must wipe system, data, cache, and dalvik. Also when you say latest firmware, you mean FOL1, right? Because that's the latest. Finally, are you using the right ROM file. This phone's development codename is klte, as opposed to kltespr, kltedv, kltevzw, klteusc, etc.
thisisapoorusernamechoice said:
Are you doing a full wipe before installing any AOSP ROM? I.e. in TWRP, there is an option for Advanced Wipe. Before your first time installing any AOSP ROM, coming from stock ROM, you must wipe system, data, cache, and dalvik. Also when you say latest firmware, you mean FOL1, right? Because that's the latest. Finally, are you using the right ROM file. This phone's development codename is klte, as opposed to kltespr, kltedv, kltevzw, klteusc, etc.
Click to expand...
Click to collapse
Yes I've install hundreds of roms on this phone, I know it's klte I do a full advanced wipe in twrp
I believe it was FOL1- I've never had a problem before. Figured maybe new firmware made impossible flash asop or something.
enzodad said:
Yes I've install hundreds of roms on this phone, I know it's klte I do a full advanced wipe in twrp
I believe it was FOL1- I've never had a problem before. Figured maybe new firmware made impossible flash asop or something.
Click to expand...
Click to collapse
I googled it and error 7 is a problem with the assert. So double check you have the correct ROM file, then edit the first line or two out of the updater-script (located in META-INF/com/google/android/)

How to make a clean install?

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.

Can rooted(magisk root) Resurrection 6.1 be updated?

I am using the kenzo version with 3gb ram.
I am currently on resurrection remix rom 6.1 and am updating the rom via dirty flashing it. I thought about rooting the rom via magisk flash and was thinking if the device can be updated after rooting it. If yes then how?
I don't understand the question if you are asking about if you can update with magisk, yes you can, I think you have to reflash magisk after updating the rom.
Tatoh said:
I don't understand the question if you are asking about if you can update with magisk, yes you can, I think you have to reflash magisk after updating the rom.
Click to expand...
Click to collapse
Sry.
I am talking about updating my rom. Can i update it once i have rooted it? Cause i read magisk does some changes in the boot sector and i don't want that while updating my rom(via dirty flashing) causing it to bootloop.
Varun Sharda said:
Sry.
I am talking about updating my rom. Can i update it once i have rooted it? Cause i read magisk does some changes in the boot sector and i don't want that while updating my rom(via dirty flashing) causing it to bootloop.
Click to expand...
Click to collapse
yes, you can update your ROM without any problems after root it's with magisk, don't worry it's won't cause bootloop or anything, if you want to update ROM , just flash ROM , gapps , wipe cache and dalvik cache then reboot.
Zasnizas said:
yes, you can update your ROM without any problems after root it's with magisk, don't worry it's won't cause bootloop or anything, if you want to update ROM , just flash ROM , gapps , wipe cache and dalvik cache then reboot.
Click to expand...
Click to collapse
Thanks you very much
Varun Sharda said:
Thanks you very much
Click to expand...
Click to collapse
one more things I forgot to tell you , you don't need to reflash magisk after flashing update rom coz twrp will automatically flash magisk after flashing rom. however you need to flash magisk again if you make a clean flash .

How to dirty flash a custom rom?

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.

Categories

Resources