FORUMS
Remove All Ads from XDA

[MOD] [TESTING] Simple A-B MultiBoot

729 posts
Thanks Meter: 865
 
By Nebrassy, Senior Member on 7th November 2019, 06:51 PM
Post Reply Email Thread
Code:
#include <std_disclaimer.h>

/*
 * Your warranty is now void.
 *
 * We are 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 us for messing up your device, we will laugh at you. Hard & a lot.
 *
 */

What is this?

this is a simple zip for A/B devices only that will separate the ROM in your current slot so that it won't interfere with the ROM in the opposite slot, which we'll call the primary ROM.


How does it work?

it modifies the fstab of the ROM in your current slot to have separate data and shared internal storage, data will be in /data/media/multiboot in the actual data partition.


What's the catch?

this of course comes with a few unsolvable issues such as:

1- SElinux must be permissive on the ROM you're multibooting (secondary ROM)
2- NO ENCRYPTION, do not use this on encrypted data, it will break everything.
3- don't use multiple users on the secondary ROM, it's unlikely to work (not tested)
4- Magisk modules exhibit weird behavior, such as modules from the primary ROM showing in the secondary, it is strongly recommended to use core only mode if you're using Magisk (only on the secondary ROM)
5- and most importantly, screen lock is likely to stop working on the primary ROM every time you switch and switch back, once you're back to the primary ROM, your PIN/pattern might not be recognized, same thing that happens some times when you restore the data partition, it's recommended to remove your screen lock before switching to the secondary ROM, or delete /data/system/locksettings.db once you're back.
6- and lastly, this is unlikely to work on stock/ported ROMs, not tested though, feel free to try.



and that's all OK, as this is intended for testing purposes only, maybe you want to test a new ROM or a GSI but don't want to commit to it yet, this doesn't mean you don't need to backup your data, this has only been confirmed working on ONE device, no guarantees it will work for you.


USAGE:

flash the secondary ROM normally (flash, switch slot, reboot recovery, gapps, magisk etc...)
flash this zip
flash Kernel Sepolicy Patcher and switch to permissive.
Attached Files
File Type: zip Simple_A-B_MultiBoot-1.0.zip - [Click for QR Code] (1.47 MB, 154 views)
The Following 11 Users Say Thank You to Nebrassy For This Useful Post: [ View ] Gift Nebrassy Ad-Free
9th November 2019, 01:49 AM |#2  
Member
Flag Cairo
Thanks Meter: 10
 
More
Working great on the Mi A2 booted MIUI and Evo without any issues!
The Following User Says Thank You to Rexee For This Useful Post: [ View ] Gift Rexee Ad-Free
9th November 2019, 02:02 AM |#3  
yayakuya's Avatar
Senior Member
Flag C:\Earth\Asia\Indonesia\Tangerang
Thanks Meter: 1,731
 
Donate to Me
More
Quote:
Originally Posted by Rexee

Working great on the Mi A2 booted MIUI and Evo without any issues!

which evo? pie or Q?
9th November 2019, 02:03 AM |#4  
Member
Flag Cairo
Thanks Meter: 10
 
More
Quote:
Originally Posted by yayakuya

which evo? pie or Q?

Evo 3.2 Q
The Following User Says Thank You to Rexee For This Useful Post: [ View ] Gift Rexee Ad-Free
9th November 2019, 02:22 AM |#5  
yayakuya's Avatar
Senior Member
Flag C:\Earth\Asia\Indonesia\Tangerang
Thanks Meter: 1,731
 
Donate to Me
More
Quote:
Originally Posted by Rexee

Evo 3.2 Q

so it's possible to have pie & Q running?
that's awesome...
which ROM you have as primary?

I'm on Evox 3.2 also on my slot A
need a guide to get secondary ROM
The Following User Says Thank You to yayakuya For This Useful Post: [ View ] Gift yayakuya Ad-Free
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes