[GUIDE] [Dual Boot Patcher] for Xiaomi Mi 5

Search This thread

Mulham82

Senior Member
Sep 13, 2010
491
89
~Dual Boot Patcher~
~Xiaomi Mi 5~

maxresdefault.jpg


The Requirements:
1- TWRP (Latest) => (https://dl.twrp.me/gemini/twrp-3.0.2-3-gemini.img.html).
2- Decrypted Data => (Format Data).
3- MIUI 8 Stable ROM => (New Installation).
4- SuperSU => (https://download.chainfire.eu/1021/SuperSU/SR3-SuperSU-v2.79-SR3-20170114223742.zip).


The Installation Steps:
1- Install the latest DBP from here => https://dbp.noobdev.io/files/9.1.0....cherAndroid-9.1.0.r136.ge7995287-snapshot.apk
2- Go to Settings=>Installed apps=>All=>Documents=>Enable.
3- Go to app and grant it a root access.
4- Click yes to update the "Primary Kernel".
5- Go to "Patch Zip File".
6- Click on "Add flashable zip".
7- Choose the required ROM such as "SlimDragon".
8- Click "OPEN".
9- Under partition configuration choose "Data slot".
10- Enter and ID as "slim".
11- Click on "Continue".
12- Click on "SAVE".
13- Click on "Right Mark" to patch the zip file.
14- Wait till the operation to finish.
15- Go to "ROMs".
16- Click on "Add patched file" to flash it.
17- Click on "Keep the current location".
18- Flash and wait till the operation to finish.
19- Go to "ROMs" to make sure that the new second ROM is added.
20- Now close the app and re-open it for refreshing.
21- Adding the "Gapps Package".
22- Go to "Patch Zip File".
23- Click on "Add flashable zip".
24- Choose the required any gapps package.
25- Click "OPEN".
26- Check and make sure that the ID in step 10 "slim" is appeared as "slim (Data slot)".
27- Repeat the steps from 11 to 18.
28- Reboot.
29- Install the DBP again.
30 - Choose the primary ROM and reboot.


Thanks.

Version Information
Status: Stable
ROM OS Version: Any

Created: 2017-01-17
Last Updated: 2017-01-18
 
Last edited:

alienn01

Member
Oct 29, 2016
7
1
How about supersu installing for data slot rom..?
I always failed try this one

Sent from my MI 5 using Tapatalk
 

Mulham82

Senior Member
Sep 13, 2010
491
89
Dear Alienn,

The SuperSU step will be performed when you flash the first time the MIUI 8 Stable ROM, so after flashing the ROM you will flash the SuperSU directly.

Note, no need to flash anymore the SuperSU in any second ROM.

Thanks.

How about supersu installing for data slot rom..?
I always failed try this one

Sent from my MI 5 using Tapatalk
 

alienn01

Member
Oct 29, 2016
7
1
Dear Alienn,

The SuperSU step will be performed when you flash the first time the MIUI 8 Stable ROM, so after flashing the ROM you will flash the SuperSU directly.

Note, no need to flash anymore the SuperSU in any second ROM.

Thanks.
So,it must be miui in the primary rom?

Sent from my MI 5 using Tapatalk
 

dennis46419

Senior Member
Dec 5, 2010
251
69
Nice Tutorial, after 28 my mit reboots to twrp :( i had miui 8.1.6 as primary rom and lineage14.1 as secondary rom in data Slot :( what is the mistake?
 

Attachments

  • Screenshot_2017-01-17-17-29-42-134_com.android.settings.png
    Screenshot_2017-01-17-17-29-42-134_com.android.settings.png
    139.6 KB · Views: 1,354
  • Screenshot_2017-01-17-17-33-53-504_com.android.settings.png
    Screenshot_2017-01-17-17-33-53-504_com.android.settings.png
    99.2 KB · Views: 1,347
  • Screenshot_2017-01-17-17-36-50-723_com.github.chenxiaolong.dualbootpatcher.snapshot.png
    Screenshot_2017-01-17-17-36-50-723_com.github.chenxiaolong.dualbootpatcher.snapshot.png
    90 KB · Views: 1,355
Last edited:

Corn Flake

Senior Member
Nov 29, 2011
259
69
I tried it to install miui as data slot(from lineage) but when i choose miui and restarts phone it bootloops until i reflash kernel from lineage and it boots back to lineage.
 
Last edited:

Mulham82

Senior Member
Sep 13, 2010
491
89
Dear Dennis,

This means that you faced the 5 times vibration and then the phone rebooted to TWRP, and this because your data is encrypted, so to fix this you have to (Format Data) from TWRP and flash back the MIUI stable from xiaomi.en

Thanks.

Nice Tutorial, after 28 my mit reboots to twrp :( i had miui 8.1.6 as primary rom and lineage14.1 as secondary rom in data Slot :( what is the mistake?
 

dennis46419

Senior Member
Dec 5, 2010
251
69
Dear Dennis,

This means that you faced the 5 times vibration and then the phone rebooted to TWRP, and this because your data is encrypted, so to fix this you have to (Format Data) from TWRP and flash back the MIUI stable from xiaomi.en

Thanks.

Thank you for the quick response.

I give it another try, should I wipe only data?
Is data always encrypted after Flash miui over twrp?
 

Mulham82

Senior Member
Sep 13, 2010
491
89
Dear Dennis,

Yes, the data will be encrypted after flashing/updating the "Official ROM", so to avoid this try to flash the ROM from (https://xiaomi.eu/community/threads/7-1-12.37476/).

Note, format the data from the TWRP and this will delete everything in the internal storage, so backup your data, and then flash the MIUI Stable ROM and SuperSU and then reboot.

Thanks.

Thank you for the quick response.

I give it another try, should I wipe only data?
Is data always encrypted after Flash miui over twrp?
 
Last edited:

dennis46419

Senior Member
Dec 5, 2010
251
69
Okay
Step 1 Flash the Rom in twrp
Step 2 wipe Data

Right?

Big thx

edit
not
wipe data just format data :)
 
Last edited:

~N.A.W.Y~

Senior Member
Apr 26, 2012
477
227
Çanakkale
Xiaomi Mi Mix 3
I did every procedure but it's still giving 5 vibrations and going to twrp.

I did noticed twrp says "data successfully decrypted using default password" does this mean my data is still encrypted?
 

dennis46419

Senior Member
Dec 5, 2010
251
69
I did every procedure but it's still giving 5 vibrations and going to twrp.

I did noticed twrp says "data successfully decrypted using default password" does this mean my data is still encrypted?

Its very simple i add 2 Screenshots
1. Go to wipe and press Format Data See Screenshot
2. Type yes and confirm

3. Install MIUI and su
4. See the the Rest of the Tutorial
 

Attachments

  • IMG_20170118_201618.jpg
    IMG_20170118_201618.jpg
    150.9 KB · Views: 566
  • IMG_20170118_201658.jpg
    IMG_20170118_201658.jpg
    184.6 KB · Views: 566
Last edited:
  • Like
Reactions: ~N.A.W.Y~
Nov 7, 2016
9
1
my primary rom is rr 7.1, I choose any other 6.0 rom as my secondary rom , but the baseband is unknown. is there any way to fix it? thx
 

mryugin89

Member
Apr 7, 2016
44
9
Dear Alienn,

The SuperSU step will be performed when you flash the first time the MIUI 8 Stable ROM, so after flashing the ROM you will flash the SuperSU directly.

Note, no need to flash anymore the SuperSU in any second ROM.

Thanks.

Ok, but can I install the SuperSu App into the secondary ROM?

And, what happens if the Supersu zip, flashed for primary ROM, is not compatible with the secondary ROM ?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    ~Dual Boot Patcher~
    ~Xiaomi Mi 5~

    maxresdefault.jpg


    The Requirements:
    1- TWRP (Latest) => (https://dl.twrp.me/gemini/twrp-3.0.2-3-gemini.img.html).
    2- Decrypted Data => (Format Data).
    3- MIUI 8 Stable ROM => (New Installation).
    4- SuperSU => (https://download.chainfire.eu/1021/SuperSU/SR3-SuperSU-v2.79-SR3-20170114223742.zip).


    The Installation Steps:
    1- Install the latest DBP from here => https://dbp.noobdev.io/files/9.1.0....cherAndroid-9.1.0.r136.ge7995287-snapshot.apk
    2- Go to Settings=>Installed apps=>All=>Documents=>Enable.
    3- Go to app and grant it a root access.
    4- Click yes to update the "Primary Kernel".
    5- Go to "Patch Zip File".
    6- Click on "Add flashable zip".
    7- Choose the required ROM such as "SlimDragon".
    8- Click "OPEN".
    9- Under partition configuration choose "Data slot".
    10- Enter and ID as "slim".
    11- Click on "Continue".
    12- Click on "SAVE".
    13- Click on "Right Mark" to patch the zip file.
    14- Wait till the operation to finish.
    15- Go to "ROMs".
    16- Click on "Add patched file" to flash it.
    17- Click on "Keep the current location".
    18- Flash and wait till the operation to finish.
    19- Go to "ROMs" to make sure that the new second ROM is added.
    20- Now close the app and re-open it for refreshing.
    21- Adding the "Gapps Package".
    22- Go to "Patch Zip File".
    23- Click on "Add flashable zip".
    24- Choose the required any gapps package.
    25- Click "OPEN".
    26- Check and make sure that the ID in step 10 "slim" is appeared as "slim (Data slot)".
    27- Repeat the steps from 11 to 18.
    28- Reboot.
    29- Install the DBP again.
    30 - Choose the primary ROM and reboot.


    Thanks.

    Version Information
    Status: Stable
    ROM OS Version: Any

    Created: 2017-01-17
    Last Updated: 2017-01-18
    1
    I did every procedure but it's still giving 5 vibrations and going to twrp.

    I did noticed twrp says "data successfully decrypted using default password" does this mean my data is still encrypted?

    Its very simple i add 2 Screenshots
    1. Go to wipe and press Format Data See Screenshot
    2. Type yes and confirm

    3. Install MIUI and su
    4. See the the Rest of the Tutorial
    1
    Ok, but can I install the SuperSu App into the secondary ROM?

    And, what happens if the Supersu zip, flashed for primary ROM, is not compatible with the secondary ROM ?
    Then use some other compatible zip, yes you can install su on secondary rom, which is actually must to boot back into primary rom.
    1
    I'd suggest backing up all partitions, copying backups to pc, formatting data (not just erasing) and then restoring backups. That should work assuming TWRP makes backups of the files in the partitions rather than the partition itself.

    An easy way to check would be to backup system, format it to another format (such as f2fs), restore system and then check what the partition format is. If it's changed back to ext4 then the above method won't work.

    @Mulham82
    @andythedev

    Hey there,
    I'm on lineage (primary) and want to install miui 8 global stable as an secondary dual boot rom.
    I've downloaded the ROM as recovery ROM and patched it successfully with the app.
    Also I did update the (primary) kernel through the app.
    But when I want to flash the patched zip, the app force closes after showing the message attached for a while.
    What may be the problem?

    Thank you for any help.

    EDIT: Worked with global dev, nougat-based. But on reboot i got the 5 vibrations.
    I guess this is because data of the MIUI rom is encrypted. But how can I decrypt it? When formatting data everything from primary rom is gone (including dbp)
    Any help?
    1
    Here is the mistake that comes out
    Thank
    3ab50e7e6144a67a68e581b3414f6617.jpg


    Inviato dal mio MI 5 utilizzando Tapatalk

    that happen because it check minimal target modem,
    flash latest firmeware via fastboot (i dont know version exactly cz im not follow miui update)
    OR
    just unzip the "patched zip" that you created, and delete the line that doing check modem in updater-script....
    after that change, make zip again.
    than flash....
    (im forgot the exact text in line and too lazy for make detail instruction... hope others can explain more when try it...)