[GUIDE] [ ROM] Step by step guide before you flash the cm13 build with M bootloader

Santhosh M

Inactive Recognized Developer / Inactive Recognize
How to flash cm13 with fp scanner version (both official/unofficial)

Requirements:

- TWRP Alka (Download here, just extract the .img and flash it via your current TWRP )

1. BACKUP!BACKUP!BACKUP!!

Before Flashing anything to your device, we need to backup our full ROM. This can be done by using the TWRP Alka i gave you. steps are in the following:

- Boot Into TWRP
- Go to Backup
- check all the partitions you have (see below)






- backup all and wait until its finished (approx 5-10 mins)


For safety purpose store the backup in sdcard or have a copy of it in your PC


2. FLASHING

CAUTION! THIS WILL RELOCK YOUR BOOTLOADER ( Irrespective of if you unlocked officially or unofficially in stock ROM it will get locked and flashing this ROM won't brick your phone or cause bootloops) TWRP will still continue to function normally with all its functions

okay now that we have already backed up all our partitions, we can flash the rom.

- go back to TWRP Main screen (suggesting that you didnt reboot after backing up) and chose Wipe
- Wipe system, Dalvik, Cache, Data
- after its done, go back to TWRP main screen.
- Install the ROM
- Install GAPPS (6.0.1 arm64)
- Reboot.

First boot takes around 5 minutes and it'll initially welcome you in the setup screen.

3. RE-UNLOCKING

Now you know that your Bootloader got relocked. But that's fine, even at a LOCKED state, your TWRP is still functioning as it should be (flashing, restoring, backup, wipe).

So its up to you if you want to unlock or not. Both options are fine and wont affect you in any way.

To unlock your bootloader you have to:

- Boot into Fastboot
- Reunlock Using MiUnlockTool
- reboot.



4. RESTORING to MIUI lollipop or older cm13 builds

if you encounter problems with the rom (stuffs doesnt work, something FC, not a daily use worthy) you can easily go back to where you were before flashing this build.

- Boot into TWRP
- Tap Restore
- check all the partitions and restore
- wait until it finished and reboot.

you should now be in your previous rom (whether its MIUI or AOSP or CM) and the bootloader should've stayed unlock.
 
Last edited:

nadavar

Senior Member
Jan 27, 2012
332
85
0
Great tutorial!
One question, I converted my SD to be internal (big mistake). Is there a way for twrp to see the SD and back stuff there?
Or otherwise revert back to external without losing all the data?

Sent from my Redmi Note 3 using Tapatalk
 

michal89chz

Senior Member
Sep 12, 2012
1,580
265
0
Manchester
Thank's for guide, working perfect, after full restore I have unlocked bootloader. I had go back to MIUI, there still is no sim card bug for me if in slots is only one SIM and is no trigger to turn off one of them, also camera is working really bad, even colours are bad yelow/black when trying to do a shot.

Sent from my Redmi Note 3 using Tapatalk
 
Last edited:

admirdante

Senior Member
Oct 25, 2014
81
22
0

1emrys1

Senior Member
May 29, 2013
720
542
93
Thanks for the tuto. Can we flash miui roms without flashing patched boot.img or else with this recovery ?
I don't know about that but you can't flash any miui lollipop rom after you flash this cm13 and lock your bootloader. You will first have to restore to cm13(older) or aosp with unlocked bootloader and only then you can flash miui.
Or you can also unlock bootloader on the new rom and the flash miui. Correct me if I'm wrong about the last part, Santosh.
 

Windslash31

Senior Member
Mar 20, 2014
217
91
28
Sorry for the messed up (the ss isnt twrp alka, but another recovery) in twrp Alka the emmc backup is aboot and aboot.bak (it has different names for other partitions, but if you backup them all it wont have any problems) ill edit the post rightaway with the proper twrp
 

Pankaj_gehloach

Senior Member
Apr 22, 2012
247
46
0
Kathua
lovingwallpapers.in
Sorry for the messed up (the ss isnt twrp alka, but another recovery) in twrp Alka the emmc backup is aboot and aboot.bak (it has different names for other partitions, but if you backup them all it wont have any problems) ill edit the post rightaway with the proper twrp
I flashed mokee ROM (which I know will lock my bootloader) but before that I backup everything using the TWRP alka. And as expected , upon restoring the backup everything is working as they were working before. Bootloader is still unlocked.
 
  • Like
Reactions: kc12

harshk60

Senior Member
Nov 16, 2013
155
40
0
Got understand all steps except 4. How to reunlock the bootloader with mi flash tool. I before unlock bootloader via mi flash tool by flashing full 7.1.8 rom with replace emcc file and then give fastboot command. So now how to reunlock it.


Sent from my kenzo using XDA-Developers mobile app