Migratinon From Decuro Rom (w/o Data Wipe)


LeafMeElectric

Members
Nov 14, 2016
10
11
Hi @all,

this is a tiny guide how to avoid data partition wiping on a rom-exchange. This works well in my case (from Android 5.0 -> 5.0; MIUI v7 -> v8).

What I have before:
A Redmi Note 2 32GiB version with installed latest decuro Rom (miuidecuro_HMNote2_5.11.26_5.0.zip) and original recovery.

What I want after:
The same mobile with xiaomi.eu V8.0.2 (stable rom) and SuperSU.

What is needed to do it:
- Rom (xiaomi.eu_multi_HMNote2_V8.0.2.0.LHMCNDG_v8-5.0.zip)
- SuperSU (SuperSU-v2.78-201609011115.zip)
- A notebook / PC + USB cable
- On PC: TWRP (twrp-3.0.2-0-hermes.img)
- On PC: adb (1.0.36)
- On PC: fastboot

First: Create Backup(s)! If anything goes wrong, it's better to have one.
The following step-by-step guide works, but I don't guarantee anything. It's on your risk.

0. Prepare
- copy Rom and SuperSU zip files on your mobile
- charge battery to >75%

1. Install TWRP on your recovery partition (skip if TWRP in installed)
- boot in fastboot mode (turn on phone with VolDown key pressed)
- connect mobile to PC and install TWRP
> fastboot flash recovery twrp-3.0.2-0-hermes.img
(If you not sure what is todo exactly: There are a lot of guides/howtos easy to find...)

2. Boot into recovery / TWRP

3. Do a backup of data/system/boot
- check twice that you have the new Rom (zip file) on your phone

4. Remove data/miui folder
- connect your phone
- start adb shell
> su
> rm /data/miui -R

5. Wipe /system (TWRP)
- choose "Wipe" -> "Advanced Wipe"
- check "Dalvik Cache" + "Cache" + "System" UNCHECK others
- swipe to wipe

6. Install new Rom
- choose "Install"
- select sdcard (or external sdcard)
- select Rom (xiaomi.eu_multi_HMNote2_V8.0.2.0.LHMCNDG_v8-5.0.zip)
- check 'signature verification'
- swipe to install and wait a few minutes

7. Install SuperSu
- install SuperSU-v2.78-201609011115.zip

8. Reboot phone
- wait for first (realy long) boot. I can see various update messages...

9. Enjoy

After this procedure I got a shiny new MIUI v8 with the same screens and apps like before (plus a extra screen with SuperSU, Authenticator and Video). Almost all settings are kept, but I lost the lock screen background picture...

I wrote this short guide, because I don't found similar on the net. In almost all cases it's written: "wipe data" / "factory reset" and restore data afterwards. But why wiping and restoring after? In my case both roms based on the same Android 5.0, so all apps should work well - and I prove this: 100% success ;-)

Jan