How to make a clean install? - Android Q&A, Help & Troubleshooting

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.

Related

[Q] fashed a custom rom on sony lww want to flash another rom

hi friends..
i have sony lww rooted and a flashed custom rom serenity v3 and vegeyance 1.31 kernel.
now i want to try another custom rom but i have some confusion..
should i have to follow all procedure again while flashing another custom rom
i mean i don't want to loose my data and contacts again i have backup but i don't want to do it again
so if i want to flash another custom rom should i have to follow all procedure like..
-flash a kernel
- do a full wipe/factory reset
- wipe cache
- go to mount & storage>format system
- go to advance-wipe dalvik cache
- flash the rom
i know flashing kernel and flashing rom is always important and without it i cant install any custom rom
but i hate the steps to follow between these two steps.....
so friends plz tell me is this compulsory to follow all steps or is there any short way...
thanx to all in advance.....
jiturawat said:
hi friends..
i have sony lww rooted and a flashed custom rom serenity v3 and vegeyance 1.31 kernel.
now i want to try another custom rom but i have some confusion..
should i have to follow all procedure again while flashing another custom rom
i mean i don't want to loose my data and contacts again i have backup but i don't want to do it again
so if i want to flash another custom rom should i have to follow all procedure like..
-flash a kernel
- do a full wipe/factory reset
- wipe cache
- go to mount & storage>format system
- go to advance-wipe dalvik cache
- flash the rom
i know flashing kernel and flashing rom is always important and without it i cant install any custom rom
but i hate the steps to follow between these two steps.....
so friends plz tell me is this compulsory to follow all steps or is there any short way...
thanx to all in advance.....
Click to expand...
Click to collapse
If you are on an ics kernel, no need to flash a kernel again. If you want to flash CM, then you have to follow all the instructions. While switching between roms, wipe everything except the /data partition. Then install your new custom rom. There is no guarantee that the rom will boot. It is recommended to wipe everything but no harm in trying. It is much safer to backup contacts by going to contacts and export to sd card. For messages you can use Sms backup and restore on market. Use titanium backup for apps. Done!
Sent from my LT26i using xda app-developers app
I would not recommend to format /system. Otherwise you may get a getprop error. The updater-script should wipe /system automatically
Only wipe it if it's recommend in the thread of the rom :good:
follow this procedure bro...
1.Backup
So you dont want to lose data...then first backup your contacts,export it to memory card,
then backup messages using sms backup and restore,u can find that on the play store...
dont forget to make a nandroid backup..
2.Gather info about current device status and the rom u want to flash
then check whether the rom you want to flash requires a different kernel other than the one on your device right now...
if the android versions differ,definitely kernel has to be changed otherwise you can get stuck in a bootloop...
visit the rom thread,check whether there are some bugs associated with your device,download the fixes required if any...
here you might find links to the supported kernels,instructions on installing the rom i.e wipe cache,data,dalvik cache,system etc etc...
download the rom,copy it to your sdcard along with the fixes if any...
3.Start flashing
First flash the kernel...then enter recovery
wipe the partitions that were mentioned on the thread...
then select your rom and flash it..,then enter recovery again if u want to flash the fixes...
4.Restoring..
install titanium backup first,restore all your apps from the nandroid backup,then you can restore the contacts and messages...
you are done
i know its a long procedure,u can get really frustrated until you hit on a stable rom and kernel...but i dont think there is any shortcut to this..
Sometimes the updater-script in your new rom may have been set to delete data,system,cache,dalvik cache. So if u don't want them to delete u have to edit the updater-script.

[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.

Huaweii Y300 without OS

Hei Everyone , I have a router huaweii not much I forgot the password on the phone and I reset everything (data, cache it!) .. I remain locked image from Huawei and I no longer enter the OS. I "Team Win Recovery Project v2.5.0.1" and can install zip files ... A little tutorial how install a new OS on this phone, I've tried CyanogenMod 11 but do not know it install and then "FIX Permision" when reboot and give me FAILED appears. However I installed that RECOVERY from them ...
Wipe system?
J2270A said:
Wipe system?
Click to expand...
Click to collapse
Yes
Wait. The cyanogen ROM is made device specific. Was the recovery and ROM made for your model? This question may be stupid so ignore it if it's irrelevant.
Now, try redoing everything again? From flashing of recovery, to the wiping and flashing of ROM? Or check the size of your ROM zip. It should not be of a small size. If the ROM install is successful, it will show successful. If failed, it will show failed.
Also, how about installing a new version of the stock ROM? Search Google for it, on full return to stock ROM.
But cyanogenmod 11 need a new recovery system? I have Recovery System from since i ROOTING this phone :-? I installed ClockworkMod Recovery but that same system is.
Newer versions of android, from what I can remember, needs newer versions of recovery to install successfully. Try to check if there are newer versions of your recovery for your phone? That's all I can help. I'm know nothing about these things. If all else fails, all I can say is, find a way to go back to stock huawei ROM.

What is exactly a "dirty flash"?

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

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