[LG G5 ROMs, Kernels, Recoveries, & Other Developme] onestyle007:
Thanks to [MENTION=4277844]chenxiaolong[/MENTION] DualBoot is possible on LG G5 (root and twrp needed)

Original thread for DualBoot patcher is located here:

http://xdaforums.com/showthread.php?t=2447534

Bugs report or questions for the developer please post in original thread.

Questions about how to use DualBoot you can ask here.

Download patcher app from here:

https://dbp.noobdev.io/files/9.1.0....tcherAndroid-9.1.0.r38.g5d5b401-snapshot.apk

DualBoot Patcher is still under development, expect bugs.

I'm not responsible for bricked phones.

You have been warned!

How to:

First make nandroid backup in TWRP!

1. Install DualBoot patcher apk, open an app and go to ROMs section

2. Set the current running kernel as kernel for Primary ROM (app will ask you to do so)

3. Download CM13 or any different AOSP ROM, Gapps and go to "Patch zip file" section.

Use minimal Gapps if you installing on stripped /system partition.

4. Patch the CM13 ROM zip (for LG G5 choose "secondary") and patch Gapps ("secondary")

a) Go to settings of the app and install Boot UI.

25.11.2016 -> Note for H830 users,go with data slot instead of secondary until the secondary slot is fixed.

5. Flash patched ROM and Gapps in TWRP or ROMs section in DualBoot app, click red button to do it.

6. Go to ROMs in the app and tap on the rom you want to boot

7. Reboot

You second system should start. (if you get a black screen,wait a bit,first boot usually takes a while)

How to switch between ROMs:

1. Both ROMs needs DualBoot patcher installed, in "ROMs" section you should see ROMs list.

2. To switch the ROM simply tap Primary or Secondary, tick indicator should appear on ROM.

3. Reboot

To check partition sizes and free space, go to "Free space" section.

App sharing probably still don't work, I didn't try it but most likely after you try it you will need to restore your nandroid.

Location explanation :

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.

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.

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

Lockscreen security solution:

On all ROMs you must set lockscreen to have the same lock e.g. a pattern lock with the same pattern on each ROM to unlock.

The issue has something to do with the secondary ROM overwriting the gatekeeper.pattern.key file, so then when you switch to primary you have a pattern lock but with no correct pattern even set, hence why the pattern you enter is always incorrect.

Steps:

1. Set lockscreen security (what ever you decide to use, fingerprints,pin,password, pattern) in the secondary rom first.

2. Set the exact same lockscreen security in the primary rom

3. That's it,now it works on both roms

Tested on LG G5 H850, I'm running stock lg rom as Primary and CM13 as Secondary.

Tested stock roms with aroma installer,doesn't work as secondary,only as primary.

Tested on LG G5 H830, everything works now.

Stock can't be dual booted as secondary due to size,so go with other slots like,for example, data slot

If in app flashing doesn't work,use twrp to flash the patched ROM and the patched gapps

Since the 25.10.2016 the SD card bug on second rom is fixed,link above updated.

Since 25.11.2016 LG G5 H830 is supported, thanks to jeffsga88 for helping with that.

Updated: 04.12.2016