[E 2015 Original Android Development] Carlos Arriaga:
Hey guys the much awaited DualBootPatcher is here for our otus don't believe me test out yourself

It can patch:

Custom kernels for multi support :D

ROMs so that they can be installed as secondary :victory:

Google Apps packages :silly:

SuperSU so that it can be used in other ROMs :cyclops:

xposed :laugh:

​

Instructions for dual booting​

Before doing anything, download the Dual Boot Patcher app and install.

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 partition and eat up space on the external storage. This is useful for devices where the system partition is nearly full and the cache partition is tiny and your data partition is getting full. These slots are named "extsd-slot-[id]", where "id" is something you provide in the app.

​

App and data sharing​

DualBootPatcher very recently got support for sharing apps and their data across ROMs. Maybe sharing is somewhat of a misleading term. The feature actually makes Android load the shared apps and data from a centralized location, /data/multiboot/_appsharing. So you're not sharing apps from one ROM to another per se. The ROMs are just loading the apps from one shared location. Let me make this clearer with an analogy.

Think of the people in a company office as ROMs. You want to share with your coworkers some documents (apps). Instead of telling them to come over to your desk to see those documents (sharing apps from one ROM to another), everyone goes to the conference room to look at the documents together (loading apps from a shared location). That's how app and data sharing is implemented.

To use app sharing, follow these steps in every ROM that you want to use app sharing:

1.Install the app you want to share

2.Open DualBootPatcher and go to "App Sharing" in the navigation drawer

3. Enable individual app sharing

4. Tap "Manage shared applications" and enable APK/data sharing for the app

Reboot

When you uninstall an app that's shared, it simply becomes unshared for the current ROM. That way, other ROMs are not affected. To continue the analogy above, if you quit your job, you won't shred the documents that everybody else was looking at.

If you unshare an app's data, it will go back to using the data it had before it was shared. In other words, you leave the conference room and go back to work on your own documents at your desk.

​

FAQ's​

Switch the ROM if something doesn't work properly?

If you have TWRP, you can switch manually by tapping Install -> Images (bottom right) -> Go to /sdcard/MultiBoot/[Your ROM]/ -> flash boot.img.

I installed a new rom and want to switch to it?

Open app, select ROMs, then select the rom you want to switch to. When the switch is successful, reboot.

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

​

Downloading:

Here

​

CREDITS​

@chenxiaolong For the app

Me for porting it for you guys

@princetrishi for the video

@Darkaidz for compiling app​

ORIGINAL THREAD

​

XDA:DevDB Information

Multiboot for otus, Device Specific App for the Moto E 2015

Contributors

Carlos Arriaga

Source Code: https://github.com/chenxiaolong/DualBootPatcher

Version Information

Status: Testing

Created 2015-11-21

Last Updated 2016-06-27