moving from CM12.1 to MIUI 7 - Xiaomi Mi 4i

hi Everyone
Need some pointers on the safest way to move from CM12.1 to MIUI 7, without losing TWRP and Sotrage partitions.
(i ask because there are some partition changes on MIUI 7)
Can i flash MIUI 7 zip from recovery straightaway and will that ensure that the storage partition is not overwritten?
Or should i use the fastboot version instead? can i ensure that storage is not overwritten if using the fastboot?
Thanks in advance!

- Flash the stock recovery
- Flash the stock zip through recovery, once installed,
- Flash TWRP Back.
And you're done.

Hackerpunk1 said:
- Flash the stock recovery
- Flash the stock zip through recovery, once installed,
- Flash TWRP Back.
And you're done.
Click to expand...
Click to collapse
Thanks! and i am assuming this doesnt tinker the storage (sdcard partition)...

It leaves the storage partition untouched.

Related

Oneplus one stuck in boot logo while updating latest TWRP 3.0.2

Hi,
was trying to install new ROM & completly wipe out OPO (Including OS). to do so got some error in zip file execution.
So tried to update TWRP (2.8.6 to 3.0.2) and now stuck into OPO boot screen.
Please help!
Thanks in advance!
BR//
Ashok
ashokyadav668 said:
Hi,
was trying to install new ROM & completly wipe out OPO (Including OS). to do so got some error in zip file execution.
So tried to update TWRP (2.8.6 to 3.0.2) and now stuck into OPO boot screen.
Please help!
Thanks in advance!
BR//
Ashok
Click to expand...
Click to collapse
Can you boot into the recovery? Or fastboot? Also before trying to install a new ROM did you backup your previous?
Durso81 said:
Can you boot into the recovery? Or fastboot? Also before trying to install a new ROM did you backup your previous?
Click to expand...
Click to collapse
Can't boot into recovery mode, maybe something went wrong while updating TWRP to 3.0.2 but can boot into fastboot.
also had backup of previous rom but since i can't boot into TWRP now so can't restore it. Earlier on TWRP 2.8.6 i was getting zip file execution error while restoring/installing new ROM.
So for now i have only access to fastboot mode, how to proceed futher?
ashokyadav668 said:
Can't boot into recovery mode, maybe something went wrong while updating TWRP to 3.0.2 but can boot into fastboot.
also had backup of previous rom but since i can't boot into TWRP now so can't restore it. Earlier on TWRP 2.8.6 i was getting zip file execution error while restoring/installing new ROM.
So for now i have only access to fastboot mode, how to proceed futher?
Click to expand...
Click to collapse
You have 2 options you can flash the stock rom and recovery via fastboot here is a guide http://forum.xda-developers.com/oneplus-one/general/guide-return-opo-to-100-stock-t2826541 (Just skip step 4 don't relock the bootloader specially if you want to install TWRP) Make sure you download the correct file there is a 64gb and a 16gb listed in this guide or you can download the stock file straight from cynogen OS here https://cyngn.com/support
Or you can reinstall TWRP via fastboot by downloading TWRP here https://dl.twrp.me/bacon/ and install your backup if its still there. If its not there you can either download and install any custom rom you want or if you want the stock rom go with option 1 above and then re-install twrp. (Always remeber after installing TWRP don't fully boot into the system or you will loose TWRP, boot straight to recovery once its done flashing TWRP by holding the power button and volume down. )
Durso81 said:
You have 2 options you can flash the stock rom and recovery via fastboot here is a guide http://forum.xda-developers.com/oneplus-one/general/guide-return-opo-to-100-stock-t2826541 (Just skip step 4 don't relock the bootloader specially if you want to install TWRP) Make sure you download the correct file there is a 64gb and a 16gb listed in this guide or you can download the stock file straight from cynogen OS here https://cyngn.com/support
Or you can reinstall TWRP via fastboot by downloading TWRP here https://dl.twrp.me/bacon/ and install your backup if its still there. If its not there you can either download and install any custom rom you want or if you want the stock rom go with option 1 above and then re-install twrp. (Always remeber after installing TWRP don't fully boot into the system or you will loose TWRP, boot straight to recovery once its done flashing TWRP by holding the power button and volume down. )
Click to expand...
Click to collapse
Thanks!
Do you recommend any video guide for option 2 (TWRP via Fastboot).
ashokyadav668 said:
Thanks!
Do you recommend any video guide for option 2 (TWRP via Fastboot).
Click to expand...
Click to collapse
Never watched a video so can't recommend one particular. But here is a link to all guides and how to http://forum.xda-developers.com/oneplus-one/general/index-oneplus-one-resources-compilation-t2843675
Also there is a one click tool here to make it easy
http://forum.xda-developers.com/oneplus-one/development/toolbox-oneplus-one-toolbox-t2808987
ashokyadav668 said:
Thanks!
Do you recommend any video guide for option 2 (TWRP via Fastboot).
Click to expand...
Click to collapse
Thank you Durso81,
i have successfully installed TWRP & ROM.
Thanks for your time & effort for a beginner.

ROM Flashing Sequence

I've successfully unlocked bootloader, rooted (Magisk) and installed TWRP Blu Spark on my Oneplus 6.
The next step is to flash a custom ROM, but I keep running into the instruction "Flash Rom and TWRP Installer (blu_spark)", no matter what custom ROM I'm looking at.
Is it really necessary to reflash TWRP right after the ROM, or can I skip that step since Blu Spark TWRP is already on my phone?
Borat38 said:
I've successfully unlocked bootloader, rooted (Magisk) and installed TWRP Blu Spark on my Oneplus 6.
The next step is to flash a custom ROM, but I keep running into the instruction "Flash Rom and TWRP Installer (blu_spark)", no matter what custom ROM I'm looking at.
Is it really necessary to reflash TWRP right after the ROM, or can I skip that step since Blu Spark TWRP is already on my phone?
Click to expand...
Click to collapse
You need to reflash TWRP everytime you flash a rom becuase recovery partition does not more exist and recovery is integrated in boot.img
1. Wipe everything except internal storage in TWRP.
2. Flash OOS 9.0.X in twrp and flash twrp zip
3. Now reboot to twrp and repeat step 2.
4. Now flash your rom + twrp zip and reboot to twrp.
5. Flash Gapps, magisk or any other zip you want.
You should be good now.
Apachyx said:
1. Wipe everything except internal storage in TWRP.
2. Flash OOS 9.0.X in twrp and flash twrp zip
3. Now reboot to twrp and repeat step 2.
4. Now flash your rom + twrp zip and reboot to twrp.
5. Flash Gapps, magisk or any other zip you want.
You should be good now.
Click to expand...
Click to collapse
AH! Now that's the secret sauce--flashing 2x. The guides just indicate once, which is probably why when I restart, there's no OS and I get kicked back to TWRP. Thank you sir!! :good:
Can someone explain why I have to format internal data? My guess is the encryption key is changing. And I have no pin or password when I flash.
RUNNERX said:
Can someone explain why I have to format internal data? My guess is the encryption key is changing. And I have no pin or password when I flash.
Click to expand...
Click to collapse
Your guess is correct. Encryption. It has nothing to do with FP, or code. It's Googles securety patches basically. If you don't want to format look in the decrypt guide and run in decrypted.

Help me remove twrp and install android system in system

I was tring to to root my Xiaomi note 5 plus (vince) and by mistake i flashed my recovery and my main Android system with TWRP and i know that its not just going to recovery because both are a different version twrp so basically now i have twrp for both system and for recovery so i need someone's help to remove twrp from system and put some android stock rom in it so i can have an android system and twrp for recovery its been 6hours of trying someone please help before i accidentally brick my phone.:crying::crying:
deviladdy99 said:
I was tring to to root my Xiaomi note 5 plus (vince) and by mistake i flashed my recovery and my main Android system with TWRP and i know that its not just going to recovery because both are a different version twrp so basically now i have twrp for both system and for recovery so i need someone's help to remove twrp from system and put some android stock rom in it so i can have an android system and twrp for recovery its been 6hours of trying someone please help before i accidentally brick my phone.:crying::crying:
Click to expand...
Click to collapse
Can you boot into TWRP? If so, all you need to do is download any custom ROM made for your specific model number then flash that ROM file via TWRP.
If you can not boot into TWRP, can you boot into bootloader/fastboot mode? If so, download your stock firmware then extract it to find a copy of your stock system.img, then flash the extracted stock system.img via fastboot.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
Can you boot into TWRP? If so, all you need to do is download any custom ROM made for your specific model number then flash that ROM file via TWRP.
If you can not boot into TWRP, can you boot into bootloader/fastboot mode? If so, download your stock firmware then extract it to find a copy of your stock system.img, then flash the extracted stock system.img via fastboot.
Click to expand...
Click to collapse
I was able to boot in twrp but can't mount onto my internal storage so I installed a micro SD card to do the job thanks though
deviladdy99 said:
I was able to boot in twrp but can't mount onto my internal storage so I installed a micro SD card to do the job thanks though
Click to expand...
Click to collapse
I never said anything about using internal storage, it is always best to use an extsdcard. We take that to be the standard way of doing it around here, I'm sorry that you didn't understand that by default or that it wasn't obvious to you.
Sent from my SM-S767VL using Tapatalk

TWRP encrypted sdcard but I didn't have encryption on

What I did:
Wiped all but data
Flashed latest OOS
Rebooted and lost TWRP
Booted to fastboot and booted from TWRP
Flashed TWRP
Rebooted to TWRP
Now all the data is encrypted (gibberish names)
How can it be?
What can I do now? from what I read I just lost all of my data... How do I proceed?
Now I'm attempting to sideload the official ROM... maybe after flashing the ROM, OOS will be able to read the files (I never activated any encryption on my device)
Alonzzo2 said:
Now I'm attempting to sideload the official ROM... maybe after flashing the ROM, OOS will be able to read the files (I never activated any encryption on my device)
Click to expand...
Click to collapse
How I install OOS.
Boot twrp
Flash OOS 10.3.6
Flash TWRP installer zip
Flash finalize
Format data
Reboot system.
On AB partition devices which is everything made now recovery and boot image are in same place so you must always install twrp installer zip when you flash a rom to have twrp otherwise it gets taken away. Formatting data when doing a clean installation at the end before you reboot system will allow you to then see your sdcard files afterwards..
Sent from my OnePlus6T using XDA Labs

recovery broken after format system and reboot - how to unbrick?

It's an old device. I got it for free since it was just laying around in friend's home. Worked OK after factory reset with stock ROM. Wanted to upgrade Android.
Previously successfully flashed TWRP from andi34.github.io/recoveries_tab2.html for Samsung Galaxy Tab 2 GT-P3100 using heimdall on Linux. Could start the TWRP recovery. Then I followed FAQ andi34.github.io/faq.html
backup all important files (e.g. contacts) and store them on your MicroSD-Card or on your PC/Laptop
copy the rom and gapps you like to install to your MicroSD-Card (make sure Gapps match the Android version of the Rom!)
boot into your custom recovery
make a backup of your current running rom and store it on your MicroSD-Card or on your PC/Laptop (some of the following are named slight different depending on the recovery you use)
wipe cache
wipe dalvic cache
wipe/format system
wipe/format data
reboot your recovery once!
Click to expand...
Click to collapse
After reboot, I could no longer start recovery.
Perhaps I should not have formatted system?
Perhaps I should not have rebooted before flashing the ROM zip?
I can still enter download (ODIN) mode. Re-flashed the TWRP recovery. Rebooted. Still cannot enter TWRP. But can still enter download mode.
What do you recommend now?
Can I flash LinageOS ROM zip from andi34.github.io/roms_tab2_lineage.html using heimdall? But heimdall does not really support zip files? It's harder than that? Any guide for that?
Or do I have to re-flash the stock ROM? Can I flash the stock ROM using heimdall?
Get the stock rom for the device then use ODIN to flash the stock rom back, the stock rom should fix it as it also flashes the stock recovery back.
Did you reboot System instead of Recovery? What TWRP version was this? I also thought of scenarios like this.
Can you still boot to recovery (twrp)

Categories

Resources