• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

MultiROM [Beryllium][Miui/custom roms/GSI][06-12-2020]

vasishath

Senior Member
Nov 30, 2013
865
5,198
93
29
Chandigarh
Introduction



MultiROM is one-of-a-kind multi-boot mod. It can boot any Android ROM. Besides booting from device's internal memory, MultiROM can boot from USB drive connected to the device via OTG cable. The main part of MultiROM is a boot manager, which appears every time your device starts and lets you choose ROM to boot. You can see how it looks on the left image below and in gallery. ROMs are installed and managed via modified TWRP recovery. You can use standard ZIP files to install secondary Android ROMs.​
Features:​
* Multiboot any number of Android ROMs​
* Restore nandroid backup as secondary ROM​
* Boot from USB drive attached via OTG cable​

Warning!

It _is_ dangerous. This whole thing is basically one giant hack - none of these systems are made with multibooting in mind. It is no longer messing with data partition or boot sector, but it is possible that something goes wrong and you will have to flash factory images again. Make backups. Always.​

Installation
Firstly, there are videos on youtube. If you want, just search for "MultiROM installation" on youtube and watch those, big thanks to all who made them. There is also an awesome article on Linux Journal.​
You can install it from this guide:
MultiROM has 2 parts you need to install:​
  • MultiROM - download the ZIP file from second post and flash it in recovery.
  • Modified recovery - download the IMG file from second post and use fastboot or Flashify app to flash it.
    You current rom will not be erased by the installation.
    Download links are in the second post.


Adding ROMs
1. Android
Go to recovery, select Advanced -> MultiROM -> Add ROM. Select the ROM's zip file and confirm. As for the space, clean installation of stock 4.2 after first boot (with dalvik cache generated and connected to google account) takes 676mb of space.​

Using USB drive
Not tested​

Updating/changing ROMs

1. Primary ROM (Internal)
  • Flash ROM's ZIP file as usual, do factory reset if needed (it won't erase secondary ROMs)
  • Go to Advanced -> MultiROM in recovery and do Inject curr. boot sector.
2. Secondary Android ROMs
If you want to change the ROM, delete it and add new one. To update ROM, follow these steps:​
  • Go to Advanced -> MultiROM -> List ROMs and select the ROM you want to update.
  • Select "Flash ZIP" and flash ROM's ZIP file.

Source code
MultiROM - https://github.com/vasishath/multirom/commits/android-10


* There is currently no way to upgrade a secondary GSI.
* All secondary ROMs reboot to MultiROM menu upon first boot. Just boot the same ROM again it will work.
* Some visual tearing in MultiROM menu.

Please report all your issues here:
https://github.com/vasishath/multirom/issues

Thanks a lot to Tasssadar for creating this awesome utility.

Join Official POCO Telegram group

XDA:DevDB Information
Multirom, ROM for the Xiaomi Poco F1

Contributors
vasishath, shahan_mik3
Source Code: https://github.com/vasishath/multirom/commits/android-10

ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
ROM Firmware Required: Multirom TWRP is required

Version Information
Status:
Beta
Current Beta Version: v1
Beta Release Date: 2018-11-18

Created 2018-11-18
Last Updated 2019-07-14
 

Attachments

Last edited:

vasishath

Senior Member
Nov 30, 2013
865
5,198
93
29
Chandigarh
# MultiROM FAQs​

• Do I have to flash any patched kernel ?
No you dont have to flash any patched kernel

• Does it support encrypted devices ?
Yes it does. You can use it on encrypted/non-encrypted device without any issues.

• Cool. But my secondary ROM shows phone not encrypted. Why ?
Multirom handles encryption transparently and hence the second ROM will never come to known that its encrypted. Never try to encrypt phone using secondary ROM. I repeat.. Never.

• Can I use a ROM newer than my primary ROM ?
Yes you can.

• Can I use a ROM older than my primary ROM ?
If you're encrypted.. No. Because of anti rollback protection in keymaster. But if you're not encrypted.. Yes. Since multirom build 20181211, you can flash older ROMs as well.

• What will happen to my other partitions if I flash MIUI as secondary ?
If you flash MIUI as secondary then all partitions except system,vendor and data will not be overwritten. However, if u want to use a new modem image (firmware.img) from a new miui build, u can use "Set radio.img" functionality in Multirom recovery and use the new firmware.img here.
But i will still recommend flashing a new MIUI to primary first to avoid any confusion.

• How do I flash a GSI ?
Its very simple. Just extract the .img file out of the gsi zip (this step is not needed if ur gsi provides an .img file directly for download). Then use this image with "GSI image" button when adding a ROM.

• Nice. Does Magisk work ?
Yes (as of magisk v17.1). For primary ROM, you *have* to flash magisk *first* and then multirom zip in case u want to use Magisk. Reversing the order will lead to magisk not working.

For secondary ROMs, Make sure you don't uncheck "System partition Mode" checkmark during adding secondary ROM. Then use "install zip" function in multirom recovery to flash magisk zip in the usual way. Whats more.. if u flash a GSI as secondary and ur primary ROM is rooted, ur GSI becomes automatically rooted with magisk.

• Can I flash a ROM on my USB drive ?
I don't expect it to work for now. However, it maybe fixed in future.

• Can i flash a ROM on my sdcard ?
I haven't tested this. It may or may not be possible.

• Can I set a PIN/pattern/password/fingerprint/face lock on my secondary ROM ?
Yes but if u do set, make sure your primary ROM doesnt have any kind of password set. Because even if u set the same password in secondary, u will be locked out of ur primary ROM. Flash this zip (https://drive.google.com/open?id=1tz2vq8vzVNs2s3NhcLp0UFAwJ2SyPgOL) to remove the security lock if u accidentally lock it.

You can use PIN/pattern/password on primary ROM alone though. Just do not set a PIN/pattern/password on both primary and secondary.
 
Last edited:

vasishath

Senior Member
Nov 30, 2013
865
5,198
93
29
Chandigarh
Download Links

Multirom Zip
https://github.com/vasishath/multirom/releases

Multirom Recovery
https://sourceforge.net/projects/multirom-beryllium/files/recovery-20191109.img/download

Multirom Uninstaller
https://sourceforge.net/projects/multirom-beryllium/files/multirom_uninstaller.zip/download

Tested Roms:
MIUI Pie, Lineage OS, Nitrogen Os, Benzo GSI

Screenshots: thanks @ydd0ras for ss and testing



Tutorial: (How to use Multirom) by @ydd0ras
Check here
: http://en.miui.com/forum.php?mod=viewthread&tid=4124048&mobile=2
 
Last edited:

ydd0ras

Elite Member
Dec 28, 2014
1,797
883
0
At least released Vasi. Congrats for an outstanding job! Everything works as it should. But guys rather ask twice, before making any mistake. It's not complicated, but a bit tricky!
 

jakir69

Senior Member
Nov 5, 2015
90
29
18
i used to use multirom with my redmi 2 prime, primary miui and secondary mostly rr or pixel experience. now i will flash latest developer miui + latest los and give feedback