Lately i'm experiencing problems with flashing custom roms (i.e. UltimaROM , Xperianze, whatever)
What i did is:
1: flash the latest CWM , touch and non -touch with Odin
2: download ROM of choice , copy to internal SD-card
3: reboot recovery, fact-reset, wipe cache + dalvik
4: flash rom ( with aroma installer )
5: boot phone
with booting it keeps hanging on the Samsung i9300 logo txt. It doesnt matter which rom i flash. it always keeps hanging.
I've tried alternative methods like flashing TWRP and do the same as above but again, no success. I also tried factory-reset after flash, cache wipe etc. no success.
The weirdest thing is: when i try to flash CM or MIUI ( current running MIUI ) , it works like a charm, but normal "custom" roms are not approved it seems.
does anyone have a suggestion for me what to do? or explain what i am doing wrong , or even better, can explain why CM-based ROMS work?
Have you checked the MD5 of your downloaded ROMs when they are on your SD card? Format system, data and pre-load before flashing? Tried flashing an alternative kernel/radio before you boot the first time?
If only stock based ROMs are a problem then it maybe something that is unique to them, probably a direct hardware hit via the kernel.
Try returning completely to stock to test, flashing Samsung's vanilla EMB5 via Odin - including stock recovery and full wipe. If that doesn't work then you may have a hardware issue that CM or MIUI doesn't use.
yeah good idea to return to stock and try all over again.
to your other questions: no i didnt flash another kernel after i flashed the custom rom. i've tried with several kernels which options were given to me in aroma installer ( boeffla, syah, stock )
md5: did that
format system and data: nope. kinda relied on the fact-reset + cache/dalvik
what do u mean with pre-load?
if I were you I would format data & system again manually after the fac. reset thing, or even more clean use the mega wipe flashable zip to have a clean slate to start from (it will format anything but the ext. sd-card). Then flash the rom from your ext. sd-card and see how it goes.
additional possibly helpful hints
hi there,
i'm not entirely sure if this will help you but generally speaking i came made a few observations about the fact that some people, mostly repeatingly the same users, encounter problems with their custom roms and/or flashing them, while others don't, albeit they are using the same devices.
i my selfe use 3 different devices, all rooted and running on pac 4.3, always lates nightly, as there are GT-N7100 - GT-I9100 - Nexus 4
not to the point
a) other than most other users i usually clean cache and dalvik cache as well before and after flashing the new rom and/or new nightly
and never encountrer any problems except those which everybody, using the same rom and nightly encounters.
b) whenever i flash an totally different rom and/or upgrade and/or downgrade to another level of android os, i.e. from 4.2.2 to 4.3, i perform
a clean install, including not only a factory reset, but as well a format sd-card, format cache and format system etc., again i cannot proof
which of these steps make a or the differnce but however, i never have problems others than thosw which everyone has with a version.
c) when using cusome kernels and due to the fact that some roms come with a kernel included, as well as with a custom recovery included,
it is strongly recommended not to forget to flas the kernel again after each flashing the new rom. one good example ist dorimanx kernel
for GT-I9100 which will not boot into recovery and reluctantly boot at all after a new flash of a pac nightly without reflashing the kernel.
d) try to fix permissions on reboot instead of doing it from recovery. one reason is that not every recovery has this option and further i
found that when fixing permissions before the first boot after flashing a new rom, there might be bootloops, albeit i cannot explain exactly
why that should, but however, sometimes it's better to be on the safe sid.
e) try to run whether the lastes version of custom recovery for your device, and or the use the included custom recovery of the rom or the
kernel. this again is one thing that can help to avoid some unexpected and hard to explain bootproblems and/or fc's etc.
hope that i could give you some new ideas how to avoid trouble while using custom roms and other hacks
magnamentis said:
try to fix permissions on reboot instead of doing it from recovery. one reason is that not every recovery has this option and further i
found that when fixing permissions before the first boot after flashing a new rom, there might be bootloops, albeit i cannot explain exactly
Click to expand...
Click to collapse
Fix permissions was removed because its useless. All permissions are set when flashing by way of updater-script. Fix permissions via recovery "guesses" the permissions which causes issues...
If permissions need fixing, then the updater-script is poor which means you should probably avoid flashing it.
Sent from my GT-I9300 using Tapatalk 4
rootSU said:
Fix permissions was removed because its useless. All permissions are set when flashing by way of updater-script. Fix permissions via recovery "guesses" the permissions which causes issues...
If permissions need fixing, then the updater-script is poor which means you should probably avoid flashing it.
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
thanks for the explanation which makes totally sense, so my feeling which i could not explain was right always better to learn exactly why than just guessing
no thanks button found in your post however, so i want to thank you this way.
regards
Related
Hi
I am new on the SGS2 though i have one Android Tablet.
I have been reading a lot and there is something i have not been able to find.
I want to root, , install CMW and install this custom ROM: Dynamic
http://forum.xda-developers.com/showthread.php?t=1582217
1.- Do i need to install first the CF-ROOT kernel matching my actual Firm to make the root or can i install the Siyah kernel at this will make the root anyway?
2.- If i install the CF-root using ODIN, do i need to install an specific kernel for that ROM? Or most kernels work with most rom?
Thanks.
I suggest you flashing the cf-root kernel with odin then you can install your custom rom from the modified recovery mode flashing the .zip file of the rom.
You can flash the siyah kernel after that, because generally custom roms mount a custom kernel which supports CWM (Clock Work Mod, the custom recovery).
If i helped u, press thanks.
if you are on ics you should be good flashing siyah but most of us here started with cf root
darkpollo said:
Hi
I am new on the SGS2 though i have one Android Tablet.
I have been reading a lot and there is something i have not been able to find.
I want to root, , install CMW and install this custom ROM: Dynamic
http://forum.xda-developers.com/showthread.php?t=1582217
1.- Do i need to install first the CF-ROOT kernel matching my actual Firm to make the root or can i install the Siyah kernel at this will make the root anyway?
2.- If i install the CF-root using ODIN, do i need to install an specific kernel for that ROM? Or most kernels work with most rom?
Thanks.
Click to expand...
Click to collapse
1/ follow the install notes stated for that rom also siyah kernel if flashed thru odin will give you root and install cwm/superuser
2/if you install cf root again follow install notes within that thread and it does say best to use same cf as your stock kernel or find one close to it to match
i prefer to use siyah less hassle but each to there own and everyone has there own choice
Thank you all.
I decided to go safe and try with CF-Root. Now i am rooted and i have installed the rom using the CWM.
Do you recommend to change the kernel again? I think that the rom has its own kernel but i am not sure.
Also something weird happen (little off topic), after wipe and reinstall the rom, i have some apps installed by default, some of them where on the old ROM.
I thought that all the apps will be deleted with the installation of the new rom.
Not sure how to fix it.
Thanks again
Apps will only be deleted by doing a full wipe in cwm. And you dont need to flash another kernel if you only want the root feature.. i think all the custom roms use a rooted kernel... some use cf-root, some siyah, some speedmod etc...
Well, i really prefer to use the features offered by other kernels. I was not sure if i can change the kernel keeping the Roms or if i need to reinstall everything afterwards.
How do i make a Full Wipe? most of the apps are bloatware and i do not want them.
Thanks
im also a noob and i use siyah without changing much
just OC to 1400 and choosing en demand for governor
darkpollo said:
Well, i really prefer to use the features offered by other kernels. I was not sure if i can change the kernel keeping the Roms or if i need to reinstall everything afterwards.
How do i make a Full Wipe? most of the apps are bloatware and i do not want them.
Thanks
Click to expand...
Click to collapse
You must go in the custom recovery and press "Data wipe/factory reset", so you wil have only the system apps, but you must start the phone configuration again.
U can flash another kernel if you want, there's no problem with the rom, but remember to do a dalvik wipe.
If youre thinking about to flash a new kernel, i would prefer to flash the kernel first (now) and then do a full wipe and dalvik wipe. Otherwise youre doing some work twice...
And if youre yet haveing some "bloatware" (e.g. from a provider branded firmware) after wipeing, you can delete them (be careful with system apps) with root explorer... (in "\system\app" folder....
darkpollo said:
Thank you all.
I decided to go safe and try with CF-Root. Now i am rooted and i have installed the rom using the CWM.
Do you recommend to change the kernel again? I think that the rom has its own kernel but i am not sure.
Also something weird happen (little off topic), after wipe and reinstall the rom, i have some apps installed by default, some of them where on the old ROM.
I thought that all the apps will be deleted with the installation of the new rom.
Not sure how to fix it.
Thanks again
Click to expand...
Click to collapse
If your happy with the results you get form using CF then by all means stay with it otherwise follow the thread in which your rom is based on users will often leave feedback on there selected kernels and setups like my signature for example check im sure theres users within your choosen thread with the same
I can advise using the kernel cleaning script after changing to another kernel. http://forum.xda-developers.com/showthread.php?t=1363738
This will prevent problems that left behind files from the old kernel can cause.
After flashing the file/script install the desired kernel
Thank you to everyone!
Ubbabubba said:
You must go in the custom recovery and press "Data wipe/factory reset", so you wil have only the system apps, but you must start the phone configuration again.
U can flash another kernel if you want, there's no problem with the rom, but remember to do a dalvik wipe.
Click to expand...
Click to collapse
I did the Data wipe/factory reset and everything as per the instructions:
*For a clean installation and no problem
- Download the ROM and put it on your S2.
- Go to Recovery
- Wipe data factory reset, wipe cache.
- In Advance: wipe dalvik cache and wipe battery stats.
- In mount and storage - format data , system and cache
- Install the zip file and you will get the CWM install completed message.
- Select Reboot Now and let the phone boot up to an Android setup screen.
- If there are Update, download it, put it on the phone, go to recovery and install it. Don't do wipes.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1582217
glowfinger said:
If youre thinking about to flash a new kernel, i would prefer to flash the kernel first (now) and then do a full wipe and dalvik wipe. Otherwise youre doing some work twice...
Click to expand...
Click to collapse
I think i am going to make it more than twice.
I will go to other kernel to try them. The battery on CF is not as good as i would like.
glowfinger said:
And if youre yet haveing some "bloatware" (e.g. from a provider branded firmware) after wipeing, you can delete them (be careful with system apps) with root explorer... (in "\system\app" folder....
Click to expand...
Click to collapse
That is the strange thing. I am not using any branded firmware, i came from one, but i thought everything was to be erased after the wipes and formats.
Spunkynitro said:
I can advise using the kernel cleaning script after changing to another kernel. http://forum.xda-developers.com/showthread.php?t=1363738
This will prevent problems that left behind files from the old kernel can cause.
After flashing the file/script install the desired kernel
Click to expand...
Click to collapse
I will use this on my next try this weekend.
If i do not understand wrong this is what i need to do:
Review the rom to find a kernel that suits it.
Use the kernel cleaning script
Install the new kernel.
Follow the instructions to flash the desired ROM with all the wipes and formats required.
Anything else?
Installed king kang rom on my i717 4.0.4 from the development page and got a boot loop. wtf I'm so sick of boot loops. luckily i made a backup, restoring now.
This happen to anyone else? how can one fix that?
Boot loops are of course common. but can generally be blamed on the device not being clean when flashing a new build.
Wiping the old data is critical before flashing new roms.
Wipe cache
Dalvik cache
Data
System
Kernels, and other images being flashed to the device before or after the ROM can also give you problems.
Review the OP in the ROM thread carefully that you intend to flash, as it often contains information that will prevent such an occurence.
1000's of users are running this ROM without any boot loops, so it must be a dirty device, or the wrong data being left, or placed during the flash.
And always verify the MD5 sum of the build with your downloaded copy, to verify a good file has been copied......g
gregsarg said:
Boot loops are of course common. but can generally be blamed on the device not being clean when flashing a new build.
Wiping the old data is critical before flashing new roms.
Wipe cache
Dalvik cache
Data
System
Kernels, and other images being flashed to the device before or after the ROM can also give you problems.
Review the OP in the ROM thread carefully that you intend to flash, as it often contains information that will prevent such an occurence.
1000's of users are running this ROM without any boot loops, so it must be a dirty device, or the wrong data being left, or placed during the flash.
And always verify the MD5 sum of the build with your downloaded copy, to verify a good file has been copied......g
Click to expand...
Click to collapse
Hmmm okay i'll try the MD5 thing. Though I get the links for the downloads right off the developer's threads and they don't always have it.
All That wiping is redundant... if you look at the log in recovery you'll see Wiping data as in a factory reset also wipes /cache
And dalvik is on the data partition so it's also wiped.
And any dev who's Rom is worthy of flashing will have the script format /system.
All I do is wipe data/factory rest(same option on recovery not separate choices) then flash Rom.
I'd lean more toward corrupted download over anything else, improperly wiping would more likely cause instability in a Rom than cause it to bootloop completely, from my experience anyhow.
Whereas corruption in the Rom zip could easily do it... just one .apk or .jar in the the /system/framework folder for example.
If no md5 is available, go ahead and download the Rom again fresh.
And as Greg said.. if you're flashing anything after the Rom, consult the op for compatibility.
Or better yet, just flash the Rom and let it settle... then once you see its working correctly and only then, flash anything else.
thanks for the tips...i reset and reinstalled and its working great now! had a few bugs but fixed them by searching the forums here. this rom is friggin powerful. im gonna finish setting it up and make a nandroid backup!
Which recovery is the most hassle-free for the verizon GS4?
My current issue:
I currently have TWRP 2.5.0.2 installed (via goomanager) when I intially rooted my phone -- still on stock, haven't updated to ME7 but looking to finally flash a ROM this week.
Reading through threads, I am picking up bits and pieces of people soft bricking their phone due to a wipe done with TWRP, requiring an ODIN flash to get the phone to boot. Is this a problem only with TWRP 2.6, or with all versions?
What are the advantages/disadvantages to TWRP and CWM.
Thanks for you help
They both essentially do the same thing. It comes down to personal preference in my opinion. Alot of people say twrp is easier to use but like you I have read about the bootloop issues associated with it. And i really dont like the look of twrp either. Now me I like cwm. I have been using it for over 2 years on 4 different devices and have never had a single problem.
Sent from my SCH-I545 using Tapatalk 2
TWRP v2.5.0.2 seems more stable than the current 6.2 version. The 2.5.02 works perfectly far as I know. TWRP seems most recommended, but they both do the same job very well.
hexitnow said:
Now me I like cwm. I have been using it for over 2 years on 4 different devices and have never had a single problem.
Click to expand...
Click to collapse
Mmm Hmm! I like me some CWM!
I use twrp 2.5.0.2. CWM's menu layout is garbage.
sent from my Verizon Galaxy s4
Philz CWM supports extFAT and reports the correct date/time.
Sent from my Nexus 7 using Tapatalk 2
With TWRP 2.5.0.2 I was able to corrupt my data partition by formatting it. Over and over again this happened. When you format it (the one where you have to type "yes") screws things up pretty bad. At first formatting it again would fix it but then it got to the point where rebooting my phone would result in it getting stuck at the logo. When I went into recovery it would ask me for a password to access /DATA. If you do not format DATA you might not have a problem. I don't do it often but the first time you do things could eventually require ODIN and starting over.
I have been using the PhilZ recovery (modified CWM) and its been working great. It has a feature where you can "Wipe to flash new ROM". It will get things clean for a new flash pretty good.
That being said I like how TWRP is laid out better, with larger buttons, and especially doing flashes of multiple ZIPs is more efficient. But in the end I went with the one that was more stable. I might give TWRP a try again and just stay away from the hard wipe. Things have been stable enough where I have not had to do that for a while.
For a long time I used CWM. However once I made the move to TWRP I never looked back. Now with that said I use 2.5.0.2 as I have read many issues with 2.6 and 2.5.0.2 has been perfect for me.
Not knocking CWM but I've had no issues with exFat and twrp 2.5.0.2.
I've used TWRP to flash several ROMs, to make backups, restore backups, etc. etc. etc. and have never had any problem with any version.
As far as CWM, it's also always worked perfectly for me but I find TWRP slightly easier to use.
Thanks everyone who replied!
Quite a mix bag of results -- but most people say the TWRP works fine. Diaftia -- the issues you ran into are exactly what I have read and really don't want to deal with them.
To all who use TWRP as the recovery -- what are the steps you use to CLEAN flash a new rom (ME7 based). One reply I read in a thread somewhere said don't use TWRP to upgrade to a ME7 based ROM as it causes those hang-ups that diaftia explained. Are there any don't do's --i.e. wipe data? etc.
I will probably flash this weekend -- still shopping around for the ROM that suits me the best.
Thanks again so much everyone -- really appreciate the feedback,
-thebeen
thebeen said:
Thanks everyone who replied!
Quite a mix bag of results -- but most people say the TWRP works fine. Diaftia -- the issues you ran into are exactly what I have read and really don't want to deal with them.
To all who use TWRP as the recovery -- what are the steps you use to CLEAN flash a new rom (ME7 based). One reply I read in a thread somewhere said don't use TWRP to upgrade to a ME7 based ROM as it causes those hang-ups that diaftia explained. Are there any don't do's --i.e. wipe data? etc.
I will probably flash this weekend -- still shopping around for the ROM that suits me the best.
Thanks again so much everyone -- really appreciate the feedback,
-thebeen
Click to expand...
Click to collapse
Im on twrp 2.5.0.2 and just flashed a stock root me7. Flashed with twrp and everything is working smoothly. But i should add that just prior to this I used a factory image and went back to mdk so my partitions would be formatted. Then immediately got root and installed twrp 2.5.0.2 and flashed the mE7 rom.
Also I find the file manager in twrp a valuable tool I just couldn't give up.
Sent from my SCH-I545 using xda app-developers app
I've been using cwm since my ogdroid. I used it on thunderbolt. I had to use twrp on the bionic. Twrp was easy to use but I jumped back to cwm on the sg4. I just really like how cwm manages. I personally don't see need to have multi roms loaded. Cwm assures I do proper install of each new rom I use I feel.
ghostrigger on to the next show
I had used TWRP and been fine for 3 roms, then the 4th rom installation soft-bricked my phone. It would boot the first time, but you could not restart it. I wiped several times and resinstalled, verifying MD5's and using multiple versions... same problem each time. Finally, I had to figure out how to use ADB again (I'd forgotten years ago) and I installed CWM and started again from scratch. Each mod install has been flawless, save for me forgetting that the power button is now where the volume rockers used to be on the Rezound a few times. I soft bricked with TWRP and CWM fixed it, so that's where my current loyalty goes.
thanks everyone for the replies. I ended up going to homebase and using PhilZ touch CWM and worked flawlessly. Don't think i'll be going to the TWRP bandwagon for a while.
Thanks! Hope this thread helps any future users on their decision
-thebeen
If new users see this and are reading, it seems most of the devs for this phone are using TWRP 2.5.0.2. Those guys flash way more than even the average crack flasher. If that seems to be their go to recovery must be something to it. The others are probably fine too. Some times it comes down to preference. I've seen posts for all the recoveries good and bad. That being said, it was also asked what are the steps for flashing with TWRP.
Here goes.
For TouchWiz and AOSP 4.2.2 roms
1. Factory Reset under wipe, then tap advanced and check the boxes beside system, Data, Cache, and davlik. Do both of these x3.
2. Flashed ROM and gapps (if not included with the ROM.)
3. Reboot system.
For AOSP 4.3 ROM.
1. Factory Reset under wipe, then tap advanced and check the boxes beside system, Data, Cache, and davlik. Do both of these x3.
2. Flashed ROM and gapps (if not included with the ROM.)
3. Wipe Davlik and cache.
4. Reboot into Recovery.
5.Wipe Davlik and cache under advanced.
6. Reboot system.
In addition follow any additional instructions from the OP for the ROM your flashing. They are mostly the same but you should always read to be sure.
I've had 100% success with the above.
Dubsy if you see this maybe you could post your process for flashing with TWRP. Might be different, simpler, or better. You would be flashing way more than me.
Sent from my SCH-I545 using xda app-developers app
Mightycaptain said:
If new users see this and are reading, it seems most of the devs for this phone are using TWRP 2.5.0.2. Those guys flash way more than even the average crack flasher. If that seems to be their go to recovery must be something to it. The others are probably fine too. Some times it comes down to preference. I've seen posts for all the recoveries good and bad. That being said, it was also asked what are the steps for flashing with TWRP.
Here goes.
For TouchWiz and AOSP 4.2.2 roms
1. Factory Reset under wipe, then tap advanced and check the boxes beside system, Data, Cache, and davlik. Do both of these x3.
2. Flashed ROM and gapps (if not included with the ROM.)
3. Reboot system.
For AOSP 4.3 ROM.
1. Factory Reset under wipe, then tap advanced and check the boxes beside system, Data, Cache, and davlik. Do both of these x3.
2. Flashed ROM and gapps (if not included with the ROM.)
3. Wipe Davlik and cache.
4. Reboot into Recovery.
5.Wipe Davlik and cache under advanced.
6. Reboot system.
In addition follow any additional instructions from the OP for the ROM your flashing. They are mostly the same but you should always read to be sure.
I've had 100% success with the above.
Dubsy if you see this maybe you could post your process for flashing with TWRP. Might be different, simpler, or better. You would be flashing way more than me.
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
Im not a dev, but I do make my own mods and personal roms and ive used every recovery possible, in fact Ive made my own zip of every recovery after loki flashing and put them in my sd for a rainy day (think I even posted most of them somewhere recently) . I use twrp because of the file manager and terminal (mainly terminal though). Most issues I can fix in recovery by either setting permissions for or removing/moving apks (also doable in terminal >>adb>>chmod 755/644 etc,etc). Terminal with adb gives you the ability to do almost everything. That and i like to see the logs of what's happenin'. Ive never had an issue a using exfat either after formating using linux.
Fwiw my method is:
1. Format system
2. Flash rom
3. Wipe/format cache and dalvik
4. Fix permissions (if rom contains custom kernel)
5. Reboot
hello all,
After upgrate cm-10.1.0-galaxysmtd.zip to cm-10.1.2-galaxysmtd.zip i dont have recovery mode, playstore and rom manager...
how to repair all ?
thanks in advance.
after some manipulation i have just a mode download....:crying:
problems with flashing roms and/or booting in to recovery
hi there,
i'm not entirely sure if this will help you but generally speaking i came made a few observations about the fact that some people, mostly repeatingly the same users, encounter problems with their custom roms and/or flashing them, while others don't, albeit they are using the same devices.
i my selfe use 3 different devices, all rooted and running on pac 4.3, always lates nightly, as there are GT-N7100 - GT-I9100 - Nexus 4
not to the point
a) other than most other users i usually clean cache and dalvik cache as well before and after flashing the new rom and/or new nightly
and never encountrer any problems except those which everybody, using the same rom and nightly encounters.
b) whenever i flash an totally different rom and/or upgrade and/or downgrade to another level of android os, i.e. from 4.2.2 to 4.3, i perform
a clean install, including not only a factory reset, but as well a format sd-card, format cache and format system etc., again i cannot proof
which of these steps make a or the differnce but however, i never have problems others than thosw which everyone has with a version.
c) when using cusome kernels and due to the fact that some roms come with a kernel included, as well as with a custom recovery included,
it is strongly recommended not to forget to flas the kernel again after each flashing the new rom. one good example ist dorimanx kernel
for GT-I9100 which will not boot into recovery and reluctantly boot at all after a new flash of a pac nightly without reflashing the kernel.
d) try to fix permissions on reboot instead of doing it from recovery. one reason is that not every recovery has this option and further i
found that when fixing permissions before the first boot after flashing a new rom, there might be bootloops, albeit i cannot explain exactly
why that should, but however, sometimes it's better to be on the safe sid.
e) try to run whether the lastes version of custom recovery for your device, and or the use the included custom recovery of the rom or the
kernel. this again is one thing that can help to avoid some unexpected and hard to explain bootproblems and/or fc's etc.
hope that i could give you some new ideas how to avoid trouble while using custom roms and other hacks
Here's a quick guide to some of the basics.
Which recovery.
----------------------------
Use the latest from here.
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
Do not use Orange Fox unless you intend to stick with stock MIUI. Orange Fox has extra features, which are almost all aimed at MIUI, but it often causes issues flashing custom ROMs, so it's a long way from the best option if you want to use custom ROMs. Orange Fox, along with other TWRP derivatives, allow complete access to virtually all of the phone, so it is very easy to accidentally hard brick the phone if you don't fully understand what your doing.
Ignore anyone who tells you to use Orange Fox when using custom ROMs.
Do I need to permanently disable encryption
-------------------------------------------------------------------------
No.
There is not a single reason to permanently remove encryption, other than personal preference.
It is recommended to have encryption removed when flashing, but this is easily done by temporarily removing lock screen security before flashing and adding it back after.
Ignore anyone who tells you that you need to flash a DFE (disable force encrypt) script.
Should I wipe all my partitions when flashing
------------------------------------------------------------------------------
No.
When clean flashing you only need to do a factory reset in TWRP.
There is absolutely no need to wipe system or vendor partitions. Ordinarily, when flashing, there is no need to go into the advanced wipe menu. I've had this phone 15 months and have never used the advanced wipe menu and have never had any issues.
When you flash a custom ROM, it will automatically wipe system first, so you don't need to do this yourself.
When you flash a vendor file, it will automatically wipe vendor first, so you don't need to do this yourself.
Even though almost all (it may actually be all) ROM flashing instruction tell you to wipe system, it is not needed.
Ignore anyone who tells you to wipe anything more than data, cache and dalvik.
Do I need to update my vendor and firmware when flashing a new ROM
-----------------------------------------------------------------------------------------------
Probably not.
If you currently have MIUI installed and it's up to date, then you will have the latest firmware and vendor and won't need to flash them.
If you're moving from one custom ROM to another, then it depends on how up to date your current ROM is. If the vendor and firmware requirements of the new ROM match the requirements of your current ROM, then will have the current vendor and firmware already installed and so do not need to flash them again.
Only when the new ROM needs a later version of vendor and firmware than you have currently installed will you need to flash them. This isn't such a common occurrence, so you'll not need to flash vendor and firmware often.
How to install a custom ROM over MIUI and remain encrypted
-------------------------------------------------------------------------------------------------
Assuming you have already unlocked the bootloader.
1 Boot into fastboot
2 Flash TWRP (fastboot flash recovery <path to TWRP file>
3 Immediately boot to TWRP (fastboot oem reboot-recovery)
4 Select Wipe Menu and Factory Reset
5 Return to Wipe Menu and Format Data
6 Return to Main Menu, then select Boot Menu
7 Select Boot to Recovery (this reboots TWRP to ensure the data partition is properly mounted after formatting)
8 Copy ROM and extras over to phone and flash them.
9 Reboot and enjoy.
Do not add any extra steps, do not miss any steps out
How to dirty flash a custom ROM update when encrypted
---------------------------------------------------------------------------------------------
1 Remove lockscreen security (this removes encryption)
2 Boot to TWRP
3 Flash the ROM update (plus vendor and firmware if the requirements for these have changed in the updated ROM)
4 Select to wipe cache and dalvik when the update finishes.
5 Reboot the ROM
6 Restore lockscreen security
How to clean flash a new custom ROM over another custom ROM
--------------------------------------------------------------------------------------------------------
1 Remove lockscreen security
2 Boot to TWRP
3 Select Wipe Menu and Factory Reset
4 Flash the ROM plus the extras you want (this includes new vendor and firmware if the requirements are different to your current ROM)
5 Reboot the ROM
6 Add lockscreen security
Thank you
Thank you very much for this. I just bought the device last week . Since i am upgrading from a lenovo vibe k5 plus (which also had a decent amountt of development support) i have a few questions. With the vibe k5 plus, installing a custom rom was very simple. flash cutsom recovery-factory reset (i used to wipe the internal storage too)-flash custom rom-flash magisk and you're done. My question(s) are 1) What is this "Force encryption" that we have to disable/keep enabled. 2) what are vendors and firmwares. I'm currently on MIUI10 (Got a Nov 2019 unit), it's pretty decent for now.
AkashNP said:
Thank you very much for this. I just bought the device last week . Since i am upgrading from a lenovo vibe k5 plus (which also had a decent amountt of development support) i have a few questions. With the vibe k5 plus, installing a custom rom was very simple. flash cutsom recovery-factory reset (i used to wipe the internal storage too)-flash custom rom-flash magisk and you're done. My question(s) are 1) What is this "Force encryption" that we have to disable/keep enabled. 2) what are vendors and firmwares. I'm currently on MIUI10 (Got a Nov 2019 unit), it's pretty decent for now.
Click to expand...
Click to collapse
Since, I think, Android Marshmallow, Google have added forced encryption. Before this you had the security menu option to encrypt your phone storage, which required a separate password to be entered on every reboot. Now encryption is done as standard and uses your lockscreen security PIN/password as the key.
Initially your phone will be unencrypted, but as soon as you first set-up lockscreen security the phone will be automatically encrypted.
Many people see this as a good thing. Should you lose the phone, you data is secure and cannot be accessed without the lockscreen PIN/password. Other people don't care about this and so prefer to disable encryption, as it makes life a little easier when flashing custom ROMs.
Some people, incorrectly, believe that disabling encryption is necessary when flashing custom ROMs, or that disabling encryption is the only solution to problems seen when flashing. This is not true and disabling encryption should only be about a users personal choice to be unencrypted.
Think of vendor and firmware as the equivalent to device drivers for PC components. They are a collection of compiled code files, provided by component manufacturers and the phone manufacturer, to allow Android to communicate with the hardware components in a standard way. Occasionally these files might get updated, as part of a MIUI update, to fix a bug or to add extra functionality. When these files are updated, custom ROM devs will include them so that they get the bug fixes or extra functionality. When this happens they will update the minimum vendor and firmware version requirements for their custom ROM - the version will be the actual MIUI version in which the vendor and firmware files were updated.
Thanks that was a really good explanation. I have one last question, so right now I'm on MIUI10 I've got the MIUI12 update notification but I want to try MIUI11 first. I've got the ROM file from the xiaomifirmwareupdater website, how do I flash it?
AkashNP said:
Thanks that was a really good explanation. I have one last question, so right now I'm on MIUI10 I've got the MIUI12 update notification but I want to try MIUI11 first. I've got the ROM file from the xiaomifirmwareupdater website, how do I flash it?
Click to expand...
Click to collapse
Follow this guide, assuming you've downloaded the recovery ROM.
https://c.mi.com/oc/miuidownload/detail?guide=1
If you view this on a mobile, it might be a blank page. In this case, you need to change the mobile browser to desktop mode when viewing this page.
The most simplest and right guide on the xda forum, well done! Thank You
Noob here
Are decrypted devices faster? Also please suggest stable roms. Also has anyone used 81hz extensively? Does it damage screen? Does it drain more battery?
jaydeep0712 said:
Are decrypted devices faster? Also please suggest stable roms. Also has anyone used 81hz extensively? Does it damage screen? Does it drain more battery?
Click to expand...
Click to collapse
As far as I'm aware, there shouldn't be any noticeable difference in speed. The whole data partition is encrypted as a block, so, in use, accessing files is done on an already unencrypted partition. The individual files are not encrypted/decrypted on demand on an individual basis.
All of the popular ROMs will be stable enough for daily use. Which one to go for depends on what you prefer - more AOSP, more Pixel Phone, more heavily customisable, etc., etc.
I've never gone for the screen refresh rate mods, so can't comment on them.
Thanks for replying.
Robbo.5000 said:
All of the popular ROMs will be stable enough for daily use. Which one to go for depends on what you prefer - more AOSP, more Pixel Phone, more heavily customisable, etc., etc.
Click to expand...
Click to collapse
Which custom rom do you use? Does it have any bugs (Like under screen fingerprint not working)?
jaydeep0712 said:
Which custom rom do you use? Does it have any bugs (Like under screen fingerprint not working)?
Click to expand...
Click to collapse
I'm currently using LOS. It's mostly bug free. There seems to be a current issue with wired headphones - on calls it is using the phone mic instead of the headphone mic. For my use, I don't see any other issues, but there could be other things around functionality I don't use.
Fingerprint recognition is about as good as it gets on custom ROMs. Not quite as good as MIUI, but good enough.
Thank you so much for busting so many myths, I was dying for someone to speak up but couldn't muster the courage myself. Hats off, and I support everything you said 100%.
Robbo.5000 said:
With the latest Flipkart sale, there have been a number of new owners asking a lot of old questions.
Here's a quick guide to some of the basics.
Which recovery.
----------------------------
Use the latest from here.
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
Do not use Orange Fox unless you intend to stick with stock MIUI. Orange Fox has extra features, which are almost all aimed at MIUI, but it often causes issues flashing custom ROMs, so it's a long way from the best option if you want to use custom ROMs.
Ignore anyone who tells you to use Orange Fox when using custom ROMs.
Do I need to permanently disable encryption
-------------------------------------------------------------------------
No.
There is not a single reason to permanently remove encryption, other than personal preference.
Ignore anyone who tells you that you need to flash a DFE (disable force encrypt) script.
Should I wipe all my partitions when flashing
------------------------------------------------------------------------------
No.
When clean flashing you only need to do a factory reset in TWRP.
There is absolutely no need to wipe system or vendor partitions. Ordinarily, when flashing, there is no need to go into the advanced wipe menu. I've had this phone 15 months and have never used the advanced wipe menu and have never had any issues.
When you flash a custom ROM, it will automatically wipe system first, so you don't need to do this yourself.
When you flash a vendor file, it will automatically wipe vendor first, so you don't need to do this yourself.
Even though almost all (it may actually be all) ROM flashing instruction tell you to wipe system, it is not needed.
Ignore anyone who tells you to wipe anything more than data, cache and dalvik.
How to install a custom ROM over MIUI and remain encrypted
-------------------------------------------------------------------------------------------------
Assuming you have already unlocked the bootloader.
1 Boot into fastboot
2 Flash TWRP (fastboot flash recovery <path to TWRP file>
3 Immediately boot to TWRP (fastboot oem reboot-recovery)
4 Select Wipe Menu and Factory Reset
5 Return to Wipe Menu and Format Data
6 Return to Main Menu, then select Boot Menu
7 Select Boot to Recovery (this reboots TWRP to ensure the data partition is properly mounted after formatting)
8 Copy ROM and extras over to phone and flash them.
9 Reboot and enjoy.
Do not add any extra steps, do not miss any steps out
How to dirty flash a custom ROM update when encrypted
---------------------------------------------------------------------------------------------
1 Remove lockscreen security (this removes encryption)
2 Boot to TWRP
3 Flash the ROM update (plus vendor and firmware if the requirements for these have changed in the updated ROM)
4 Select to wipe cache and dalvik when the update finishes.
5 Reboot the ROM
6 Restore lockscreen security
How to clean flash a new custom ROM over another custom ROM
--------------------------------------------------------------------------------------------------------
1 Remove lockscreen security
2 Boot to TWRP
3 Select Wipe Menu and Factory Reset
4 Flash the ROM plus the extras you want (this includes new vendor and firmware if the requirements are different to your current ROM)
5 Reboot the ROM
6 Add lockscreen security
Click to expand...
Click to collapse
Good Day!
I installed Pixel Experience over MIUI and its stuck on Loading with Google Logo in it, it has been 30mins aprox after i first booted the device, any suggestion?
Or should i continue waiting?
Thanks in advance
XXXLR8 said:
Good Day!
I installed Pixel Experience over MIUI and its stuck on Loading with Google Logo in it, it has been 30mins aprox after i first booted the device, any suggestion?
Or should i continue waiting?
Thanks in advance
Click to expand...
Click to collapse
The first boot will take a bit longer, but only a minute or 2 at most. Something has gone wrong. Make sure you follow the guide exactly.
The most common issue is not formatting the data partition. This is not the same as wiping the partition. When formatting TWRP will ask you to type 'yes' to continue. When flashing over MIUI this is necessary to fully remove encryption before flashing.
Another common problem is wiping partitions unnecessarily. There is no need to wipe anything. Just do the factory reset, this wipes what's needed and nothing more, then format data.
Robbo.5000 said:
The first boot will take a bit longer, but only a minute or 2 at most. Something has gone wrong. Make sure you follow the guide exactly.
The most common issue is not formatting the data partition. This is not the same as wiping the partition. When formatting TWRP will ask you to type 'yes' to continue. When flashing over MIUI this is necessary to fully remove encryption before flashing.
Another common problem is wiping partitions unnecessarily. There is no need to wipe anything. Just do the factory reset, this wipes what's needed and nothing more, then format data.
Click to expand...
Click to collapse
I did the TWRP format (which prompted me to type yes to continue) and wipe data partition,but didnt wipe the partition itself, rebooted, installed pixel experience, and still same, i even got into a boot loop, which i got out to, by forcing my way out by fastboot, and reinstalled MIUI,
Im currently at MIUI, currently stable.
So Im going to try again some other time about this, when i have another available device to use while i reinstall pixel experience in Mi9T Pro
But, your guide is helpful, it failed on me probably because of a mistake I made.
Thanks anyways!
Best Regards.
hi,
in your guide, you do not have added a step for flashing the vendor.
is this intended ?
FuriousFrodo said:
hi,
in your guide, you do not have added a step for flashing the vendor.
is this intended ?
Click to expand...
Click to collapse
Flashing over MIUI, I've made the assumption that you'll be on the latest version of MIUI and the original region, which should therefore already have an appropriate vendor and firmware for the new ROM.
If you've not kept MIUI up to date or have flashed a different region of MIUI, then you may need to flash the correct vendor and firmware file(s)
Robbo.5000 said:
Flashing over MIUI, I've made the assumption that you'll be on the latest version of MIUI and the original region, which should therefore already have an appropriate vendor and firmware for the new ROM.
If you've not kept MIUI up to date or have flashed a different region of MIUI, then you may need to flash the correct vendor and firmware file(s)
Click to expand...
Click to collapse
thanks for that. i followed as you said and i was able to flash Evolution X
however, while flashing i got a warning in TWRP E:Unable to decrypt FBE device. The ROM booted fine but I think I have made a mistake. Additionally the folder I had created to transfer the ROM is gone after the phone booted.
What could be the issue ? and how to resolve this ?
FYI, I'm using Mauroonofrio's TWRP
FuriousFrodo said:
thanks for that. i followed as you said and i was able to flash Evolution X
however, while flashing i got a warning in TWRP E:Unable to decrypt FBE device. The ROM booted fine but I think I have made a mistake. Additionally the folder I had created to transfer the ROM is gone after the phone booted.
What could be the issue ? and how to resolve this ?
FYI, I'm using Mauroonofrio's TWRP
Click to expand...
Click to collapse
I've had that error a few times. It's normally from when your first boot into TWRP. All output from TWRP gets written to the same output screen, so when it is shown you are not seeing output from just the last command but for the whole session. If you had looked in more detail, you would have probably realised that the error was from before you started flashing.
With the ROM files going missing, that is a known problem. Actually anything copied before flashing gets lost. The first time it happened to me I had copied all my backed up data at the same time as the ROMs and it all got wiped. I can't remember exactly the details now, it's just something I've got used to. But if I remember correctly, the data disappears when you first boot into the new ROM. After it happened the first time, I checked in TWRP the next time, after flashing, but before booting the new ROM and the files were still there. It was only after booting to the ROM that they disappeared. (My memory is a bit vague now as it was over a year ago, but I think it might actually happen when you set up lockscreen security and the phone is encrypted in the new ROM for the first time). Maybe someone else can confirm or give the correct explanation.
Robbo.5000 said:
I've had that error a few times. It's normally from when your first boot into TWRP. All output from TWRP gets written to the same output screen, so when it is shown you are not seeing output from just the last command but for the whole session. If you had looked in more detail, you would have probably realised that the error was from before you started flashing.
With the ROM files going missing, that is a known problem. Actually anything copied before flashing gets lost. The first time it happened to me I had copied all my backed up data at the same time as the ROMs and it all got wiped. I can't remember exactly the details now, it's just something I've got used to. But if I remember correctly, the data disappears when you first boot into the new ROM. After it happened the first time, I checked in TWRP the next time, after flashing, but before booting the new ROM and the files were still there. It was only after booting to the ROM that they disappeared. (My memory is a bit vague now as it was over a year ago, but I think it might actually happen when you set up lockscreen security and the phone is encrypted in the new ROM for the first time). Maybe someone else can confirm or give the correct explanation.
Click to expand...
Click to collapse
So what you are saying is its quite normal, is it?
fearing I may have to do the whole process again, I haven't set anything up.[emoji3]
Sent from my [device_name] using XDA-Developers Legacy app
FuriousFrodo said:
So what you are saying is its quite normal, is it?
fearing I may have to do the whole process again, I haven't set anything up.[emoji3]
Click to expand...
Click to collapse
Yes, both things are normal. You should be good to go with your new ROM. No need to reinstall it.