FORUMS
Remove All Ads from XDA

[OFFICIAL]DualBootPatcher[RN4/mido]

99 posts
Thanks Meter: 180
 
Post Reply Email Thread
 DUAL BOOT PATCHER Logo
DUAL BOOT PATCHER

DualBootPatcher is an open-source app that allows multiple ROMs to be installed on a single Android device. It does its best to work with existing code and does not require explicit support from ROMs. This will allow any number of ROMs to be installed at the same time. It works by patching the secondary ROM's installation scripts and boot image to load the ROM files from an alternate location (/system/multiboot, /cache/multiboot, and /data/multiboot). Because of the way this is implemented, no changes to the primary ROM are necessary


How to use the patcher


Android

Download the patcher apk and run it. Tap "Patch Zip File" from the navigation drawer and choose the file you want to patch.

Windows (GUI)

Double click DualBootPatcher.exe and choose the file you want to patch.

--------

After patching the zip file, a new file, like some_rom_data-slot.zip file will be created. For example,

AospExtended-4.2-mido.zip

After patching would create a new
AospExtended-4.2-mido_data-slot.zip


Instructions for dual booting


Before doing anything, download the Dual Boot Patcher.apk from the download section below.

The patcher offers several locations for installing ROMs:
  • Primary: This is normally used for installing a zip to the primary ROM. It is not required, but is strongly recommended because it has code to prevent the zip from inadvertently affecting other ROMs.
  • Secondary: Secondary is the first multiboot installation location. It installs to the system partition. This is a good spot for installing a second ROM because it doesn't take any space away from the internal storage.
  • Multi-slots: There are 3 multislots: multi-slot-1, multi-slot-2, multi-slot-3. These install to the cache partition. This is specifically for devices, like the Galaxy S4, that have a massive cache partition.
  • Data-slots: There can be an unlimited number of data slots. These install to the data partition and eat up space on the internal storage. This is useful for devices where the system partition is nearly full and the cache partition is tiny. These slots are named "data-slot-[id]", where "id" is something you provide in the app.
  • Extsd-slots: There can be an unlimited number of extsd slots. These install to the external SD card, which is useful as it keeps the ROMs off of the internal storage. Note that the ROM's data files are still stored on the data partition.

With that said, let's get to the "how to"!
  1. First, boot into your primary ROM and install the Dual Boot Patcher app
  2. Open the app and go to "Roms" in the navigation drawer. It will ask if you want to set the kernel. Make sure that you do.
  3. Go to "Patch zip file" in the navigation drawer and patch the ROM or zip you want to install. You can select one of the installation locations described above.

There are two ways of flashing the patched zip file. You can either flash it normally from recovery or flash it using the in-app flashing feature. Both methods are explained below.

Flashing from recovery

To flash from recovery, just flash the patched zip file like you would for any other zip. Nice and simple.

In-app flashing

To use in-app flashing, go to "Roms" in the navigation drawer, tap the floating button on the bottom right, and add the zips you want to install. You can queue multiple zips and they will all be flashed in one go. Once you've added all the zips you want to flash, click the check mark in the action bar and they will be flashed right away.

A normal backup from recovery will backup every ROM. If you would like to back up ROMs individually you can do it using the app.


How do I...?


Switch the ROM if something doesn't work properly?
You can flash the DualBootUtilities zip from recovery. It will provide a menu interface that allows switching to the various ROMs.

If you have TWRP, you can also switch manually by tapping Install -> Images (bottom right) -> Go to /sdcard/MultiBoot/[Your ROM]/ -> flash boot.img.
Wipe /cache, /data, /system, or dalvik-cache?
The easiest way is to do it from the app while booted in another ROM. Just go to "Roms" in the navigation drawer, tap the 3 dots options menu for the ROM you want to wipe, and tap "Wipe ROM".

NOTE: Don't use the recovery's built-in wiping abilities as that may delete non-primary ROMs!
Update the primary ROM?
Patch the zip for primary and flash it. The "primary" installation target is designed so that other ROMs won't be affected when you want to flash something for the primary ROM.
Update a non-primary ROM?
Patch and flash the zip exactly like how you did it the first time.
Flash a mod or custom kernel for the primary ROM?
Patch it for primary before flashing. If the zip does not wipe /cache, it is also safe to flash it directly.
Flash a mod or custom kernel for a non-primary ROM?
Just patch and flash it


YouTube Tutorial:https://youtu.be/T44ifBaHAWs


Note:
  • You must always select 'Data-slots' as installation location for secondary roms on Redmi Note 4x. You can also use 'Extsd-slots' if you want to install on external storage.
  • If your using MIUI (Multirom, Xiaomi.eu, etc), you may need to enable documents app by going to Settings> Installed Apps before trying to patch any file in DBP.
  • Don't use official MIUI as primary rom.
  • If you're not able to boot to secondary rom, it might be that your data partition is encrypted, to fix this follow the instructions below:
    First backup all your data including Internal Storage, then boot to TWRP>WIPE>FOMATE DATA then type 'yes' and tap enter. Now reboot and retry DBP.
  • App sharing not working.


Source/Credits:
https://dbp.noobdev.io


DOWNLOADS


~ Hit Thanks button below if I helped you ~
The Following 42 Users Say Thank You to bad_request For This Useful Post: [ View ] Gift bad_request Ad-Free
 
 
21st May 2017, 11:55 AM |#2  
Senior Member
Flag sivakasi
Thanks Meter: 157
 
More
Thankyou for starting this useful thread.
21st May 2017, 12:18 PM |#3  
bad_request's Avatar
OP Member
Flag Kanpur
Thanks Meter: 180
 
More
Quote:
Originally Posted by drmuruga

Thankyou for starting this useful thread.

Welcome
21st May 2017, 12:39 PM |#4  
Junior Member
Thanks Meter: 4
 
More
i flash two rom,when into the primary rom, the system show the password was wrong
The Following User Says Thank You to PrayerInc For This Useful Post: [ View ] Gift PrayerInc Ad-Free
21st May 2017, 02:16 PM |#5  
bad_request's Avatar
OP Member
Flag Kanpur
Thanks Meter: 180
 
More
Quote:
Originally Posted by PrayerInc

i flash two rom,when into the primary rom, the system show the password was wrong

Boot to twrp and open filemanger, go to data>system and remove .key file(what ever you have used ex: pattern.key, password.key , etc)
One should not use any type of security lock on pimary rom.
The Following 4 Users Say Thank You to bad_request For This Useful Post: [ View ] Gift bad_request Ad-Free
21st May 2017, 06:01 PM |#6  
varunangirash's Avatar
Senior Member
Flag Karnal
Thanks Meter: 6
 
More
its not working for me
21st May 2017, 06:03 PM |#7  
bad_request's Avatar
OP Member
Flag Kanpur
Thanks Meter: 180
 
More
Quote:
Originally Posted by varunangirash

its not working for me

What's not working?
The Following User Says Thank You to bad_request For This Useful Post: [ View ] Gift bad_request Ad-Free
21st May 2017, 09:45 PM |#8  
Jack'O's Avatar
Senior Member
Flag = banana republic
Thanks Meter: 781
 
More
What at "Slot ID"?
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2017-05-21-22-40-08-674_com.github.chenxiaolong.dualbootpatcher.snapshot.png
Views:	2550
Size:	81.0 KB
ID:	4157478  
22nd May 2017, 12:57 AM |#9  
Junior Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by bad_request

Boot to twrp and open filemanger, go to data>system and remove .key file(what ever you have used ex: pattern.key, password.key , etc)
One should not use any type of security lock on pimary rom.

so i cant set fingerprint and password in primary rom, what about the secondray rom and others??? if they set fingerprint and password,what will happen??
why other type phone havent this problem???
22nd May 2017, 04:03 AM |#10  
bad_request's Avatar
OP Member
Flag Kanpur
Thanks Meter: 180
 
More
Quote:
Originally Posted by Jack'O

What at "Slot ID"?

Slot I'd is just a name. Like you are using two ROMs on data slots , you can give different names to each slots.
ex: rr, aosp, miui, lineage, etc
The Following User Says Thank You to bad_request For This Useful Post: [ View ] Gift bad_request Ad-Free
22nd May 2017, 04:09 AM |#11  
bad_request's Avatar
OP Member
Flag Kanpur
Thanks Meter: 180
 
More
Quote:
Originally Posted by PrayerInc

so i cant set fingerprint and password in primary rom, what about the secondray rom and others??? if they set fingerprint and password,what will happen??
why other type phone havent this problem???

Its a bug, you can try and test if it's working or not on secondary rom, as I don't use security locks I can't tell if it's working or not .
Post Reply Subscribe to Thread

Tags
dual booting, dualbootpatcher, mido, redmi note 4x

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes