[Infinix HOT 2] RendyAK:
​

Disclaimer:

Your warranty is now void.
I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.

Requirements:

1. TWRP

2. A ROM to patch

3. DualBootPatcher app

What does the app do ?

It patches...

Kernel's ramdisk for dual boot support

ROMs so that they can be installed as secondary

Google Apps packages for AOSP-based ROMs

SuperSU so that it can be used in the secondary ROM

How to use the App ?

Note:

- Some roms like Infinix 5.1 make External Storage the default disk. That also removes the writing access to the Internal storage. So, any attempt to install a secondary ROM to /data/media will likely fail. The solution is to remove your external storage (SD Card), install the rom and put it back (unless you want to install to the external storage itself).

1) Download, install and open the app

2) Swipe to the right to open the menu. Click "ROMS". Now if this is the first time you use it, it will ask you if you want to set kernel. Do so!

Note:

You might see something like "mbtool rejected connection" blablablabla, Just click OK or Continue!

3) Now swipe again and click on "Patch Zip". Click the big add (+) button and select "Add Flashable Zip" and select the ROM you want to patch and use as Dual/Multiboot.

3) Select your device in the first drop down menu. Then select the partition configuration (see more details below for this) in the next drop down menu. I suggest you choose either "Data slot" or "Extsd slot". Give a random number where it states "Enter an ID".

4) Click continue and select where to save the patched file.

5) You should see the file is being put in "Queue". Just click the confirm button to the upper right.

Note: If you want to go back, just swipe the ROM in queue to right and start over.

6) The app will patch the zip. When done, go back to "ROMs".

7) Click "Flash zip files" (the big button on the lower right). Click the plus button to add your previously patched zip file.

8) Locate the file you have patched in step 6. Unless you have changed the name there, it should be something like ROM_name_partition_config_ID.zip (like Cyanogenmod-12.1_20160724_d5110_infinix_data-slot-2.zip).

9) Click on that file and choose "Keep location". Now confirm the flash with the button on the upper right side.

Note: You can also install the patched zip files in recovery.

10) Upon finition, click back and you should see your newly installed ROM along with the Primary ROM.

Note: You can find more options by clicking on the three buttons on each ROM.

Partitions Configurations:

These are places where you can install secondary roms. In our case, I'm affraid it's limited to DATA SLOTS and EXTSD SLOTS. Which means you can only install roms to your Data partition (pratically your internal storage) and your SD Card.

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. This one installs to the System partition slot.

Dual: Dual/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. Our HOT 2 system partition size is about 2.5GB on Infinix ROM. You can probably install two light ROMs (like cyanogenmod and its variants) to it. But I haven't tested it.

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. Our HOT 2's cache partition is about 250MB which is not enough to install a rom on.

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: Same as the above, but it installs the ROMs to your external SD. Make sure you have backed up your data first!

Other how to ?

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".​

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/non-primary ROM?

Patch it for primary before flashing. If the zip does not wipe /cache, it is also safe to flash it directly.​

Downloads:

Get it from chenxiaolong's site: https://dbp.noobdev.io/

Sources

Fork of DualBootPatcher with more devices support: https://github.com/Rendyindo/DualBootPatcher

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

DualBootUtilities: https://github.com/chenxiaolong/DualBootZips

Credits:

[MENTION=4277844]chenxiaolong[/MENTION] for the awesome DualBootPatcher. [MENTION=5193140]Nonta72[/MENTION] For his thread which I copy 95% of it :p

XDA:DevDB Information

DualBootPatcher, Device Specific App for the Infinix HOT 2

Contributors

RendyAK

Version Information

Status: Stable

Created 2017-04-18

Last Updated 2017-05-11