yashsingh1/xdaforums huggingface dataset:
[ONE Android Development] KINGbabasula:
Reserved

FAQ and other notes

About security

In order to make multi-booting possible, MultiROM has to sacrifice some security measures. Firstly, on secondary Android ROMs, /system is not mounted read-only. While there are other things preventing malicious software from messing with /system, this might potentialy make it easier for such software to attack that system.​

What do the ROMs share?

All ROMs are separate, except /sdcard, which is shared between all Android ROMs.​

How many ROMs can I have?/Where are the ROMs stored?

You can have as many ROMs as you can fit in your /sdcard. All the ROMs are stored in /sdcard/multirom/roms or on an USB drive. This folder is unaccessible in Android, to prevent mediascanner from scanning it. You can either in recovery, or obtain root and go to /data/media/0/multirom/roms.
​

Where can I find files from other ROMs?

http://xdaforums.com/showpost.php?p=58563378&postcount=1864
​

Can I have different versions of Android working alongside? How to use KitKat and Lollipop at the same time?

Yes. The systems are separated.

guide on Kitakt + Lollipop: http://xdaforums.com/oneplus-one/ge...ips-tricks-t3027926/post58776196#post58776196​

The menu with all the ROMs won't show up during boot, how to fix it?

Either re-flash the MultiROM zip or go to recovery, Advanced -> MultiROM -> Inject curr. boot sector.

The reason for this is that something rewrote your boot.img, which happens for example when you flash a kernel. MultiROM's boot menu is part of the boot image, so it has to be added into it again.
​

The boot animation shows after a few seconds on primary ROMs, why?

Because the framebuffer gets blanked for a few seconds after it gets closed by MultiROM.​

Can I use MultiROM without root?

Yes, if you don't use MultiROM Manager app but flash everything manually​

Will I get OTAs when I have MultiROM installed? Do I lose secondary ROMs after an OTA?

Probably not, you will have to install them manually and you'll have to reinstall MultiROM

No, you won't lose secondary ROMs​

My secondary ROM doesn't boot, what should I do?

Probably you forgot to inject current boot sector once, MultiROM didn't run, so /data SELinux context is set to secondary ROMs that are in /data/media so secondary /system has /data contexts.

Go into recovery Advanced > MultiROM > List ROMs > Choose the non booting ROM > Run restorecon

This will fix SELinux contexts and the ROM will boot again​

Help Videos

Install MultiROM

[YOUTUBE]QnhZldSpM98[/YOUTUBE]

Install OxygenOS as secondary ROM

[YOUTUBE]Y7XloIAA7iA[/YOUTUBE]
[ONE Android Development] thejaimes111:
Amazing, thank you bro!
[ONE Android Development] phoenixita:
Amazing! Reserved for impressions! :D
[ONE Android Development] bud77:
Woot !!!!!!! Donation incoming, as promised :D

Also, what kernel is yours based on ?

And finally, is it compatible with official multirom manager ?

Edit : Donation done : 2D0766769R4457313 :D
[ONE Android Development] KINGbabasula:
My kernel is cm11 (not cm11s)with kexec. So it won't work on cm11s, Paranoid android and cm11s based roms.

Tomorrow is the last time I'll use pc before leaving so I may add support in multirom manager and build an unofficial version of the app because it's not officially supported
[ONE Android Development] bud77:
Thanks, again ! :D

Did you try to get in touch with [MENTION=3418703]Tasssadar[/MENTION] for the frame buffer issue ?
[ONE Android Development] KINGbabasula:
I tried on hangouts but I guess he doesn't use it. I think I should port a few things from TWRP into MultiROM because it seems they use the same way of rendering images.
[ONE Android Development] yx868868:
Thank you very much for your efforts,
[ONE Android Development] dansou901:
That is really nice to have, am looking forward to use it. If the Multirom Manager app is usable here, will it be possible to install Ubuntu Touch or has it first to be ported to this phone? Just asking because I always wanted to try out Ubuntu...
[ONE Android Development] KINGbabasula:
First we need a working ubuntu touch port. I don't think it will be too hard to do. The opo is very similar to nexus 5
[ONE Android Development] dansou901:
I'm just about to start doing this...

---------- Post added at 04:32 PM ---------- Previous post was at 04:12 PM ----------

OK, multibooting ColorOS and MIUI doesn't work, will continue testing with other ROMs...

---------- Post added at 04:37 PM ---------- Previous post was at 04:32 PM ----------

And another thing... For me boot menu is visible...
[ONE Android Development] KINGbabasula:
That's because you need a kernel with kexec hardboot patch in secondary rom too. So you need a special kernel for color os and a special one for miui. You may try instlling the rom choosing "share kernel" option so it will use main rom kernel which has kexec
[ONE Android Development] KINGbabasula:
WHAT! I have black screen :|
[ONE Android Development] dansou901:
Maybe it is because you have CM 11 kernel installed? With ColorOS kernel it works...
[ONE Android Development] KINGbabasula:
Surely I have something wrong in the kernel. Thanks for telling me that
[ONE Android Development] dansou901:
If I try to share kernel between ColorOS and MIUI, MIUI won't boot (black screen after selecting it from the boot menu)...
[ONE Android Development] KINGbabasula:
Well that's expected because they use different kernels. The solution is to compile miui kernel with kexec patch and color os kernel with kexec patch. I tried only cm based roms. I'm on cm11 and I can boot slim and mahdi sharing kernel
[ONE Android Development] dansou901:
OK, so we have to find kernel sources from Color OS and MIUI for this to work...
[ONE Android Development] KINGbabasula:
Ok, guys, I just fixed that "must share kernel" problem. But I don't know why the boot menu is now split in half :/
[ONE Android Development] dansou901:
Can you upload that fixed version until Wednesday? I'll be on holiday from Wednesday until the end of August and want to multiboot a few ROMs before leaving...
[ONE Android Development] KINGbabasula:
Sure, I'm doing a few things to try to get the boot menu normal again and I'll upload it soon
[ONE Android Development] hamzahrmalik:
Oneplus made an official aosp ROM ...

I'm already using it

I just can't multiboot it
[ONE Android Development] bud77:
Oh right, I totally forgot about this one XD
[ONE Android Development] lukemo:
Thanks a lot...no idea on TWRP freezing problem?
[ONE Android Development] KINGbabasula:
No, that's why I disabled screen lock timeout
[ONE Android Development] lukemo:
I'm a genius...sorry for the noob question...the solution is very simple. I'll test immediately your new version to check if it works with cm11s...

I forgot to remark that boot menu doesn't show up with cm11s ak30b2 cm11s kernel.
[ONE Android Development] skydayzer:
Can I perform CM11 OTA or I have to flash it manually??
[ONE Android Development] KINGbabasula:
Now fixed that splitted boot menu. Everything working finally :D

Download boot image

https://goo.im/devs/KINGbabasula/OneplusOne/boot-20140818.img

MultiROM:

https://goo.im/devs/KINGbabasula/OneplusOne/multirom-20140818-v27-UNOFFICIAL-bacon.zip

The links may take sometime to be available. And if you are using ak kernel you have to wait for the new version with fixed kexec.
[ONE Android Development] KINGbabasula:
No, franco kernel still hasn't kexec patch
[ONE Android Development] hamzahrmalik:
Can we now have different kernels on secondary ROM and internal?

And can secondary have non kexec kernel
[ONE Android Development] KINGbabasula:
Yes and yes
[ONE Android Development] hamzahrmalik:
YAAAAAAAAAAYY
[ONE Android Development] KINGbabasula:
Yes but you have to wait for the fix in next release
[ONE Android Development] bud77:
I asked franco since R9 version, he said it would be in next build ... but still waiting :(

AK will probably release a new version very soon (hoping for tomorow)
[ONE Android Development] dansou901:
The links don't work for me yet, were posted one hour ago (does it take that long for them to be activated?)
[ONE Android Development] KINGbabasula:
Goo.im is weird, may take even one day, I'm thinking of switching to android file host
[ONE Android Development] hamzahrmalik:
please do lol
[ONE Android Development] skydayzer:
Please Do... Because before one day... you will be uploading a new version... LOL:silly::silly:
[ONE Android Development] itechy:
That update fixed that issue :)

Its looks like its working now :P
[ONE Android Development] dansou901:
Now it says "unauthorized", but I don't know how to authorize... could it be me using a theme?
[ONE Android Development] MMWolverine:
I'm unable to flash anything as secondary, adding new rom or re-flashing zip both fail.

I attached log, if it helps.
[ONE Android Development] laulau42400:
Hi, Problem to flash kernel with MultiROM latest version.

Tapaltak and Lollipop �� One+
[ONE Android Development] udjat:
I am having the same problem. I also tried to make a backup a secondary. It does copy but wont boot, as it ends up back at TWRP.
[ONE Android Development] itsonlym3:
can't thank you enough for the OTG support!!!!!! :good:
[ONE Android Development] KINGbabasula:
As you can see it can't find the file because of a mistake, the end of the zip name is truncated, by tomorrow I should be able to fix it

Flashing ZIP file /sdcard/---FLASHING---/ROM/Lollipop/crdroid-5.0.2-20150227-bacon.zip
ROM: crdroid-5.0.2-20150227-bac
Preparing ZIP file...
rm: can't remove '/tmp/mr_update.zip': No such file or directory
Copying ZIP to /tmp...
sh: zip: not found
Erasing incomplete ROM...
[ONE Android Development] udjat:
Something else may be going on as well.

Renamed my roms to 2 letters (cm.zip) still fails with same results. (just another data point)

Thanks again for the work you do! =)
[ONE Android Development] tobitege:
I had to use "fastboot erase recovery" before flashing a previous recovery because without it adding secondary rom errored upon flash for unknown reason.

After recovery erase+flash of previous MultiRom TWRP I was again able to add secondaries.
[ONE Android Development] xanthrax:
I used flashify to revert to the previous recovery, it worked fine, also flashed the previous multirom and a Rom for a try. All good, awaiting for updates

sent from my Darkside of 1+1
[ONE Android Development] ek69:
where do i get the previously working multirom?

i was able to flash previous TWRP multirom zip via fastboot, but im stuck in a bootloop when trying to boot any of the secondaries (im guessing since the newest multirom is still installed, and i need to install the previous version?)

//edit

nvm i found the other multirom zips on my phone and installed jan 26 2015 one, however im still in a bootloop whenever i try to boot any of the seconary roms :confused:

any other ideas?

im on twrp multirom 2.8.4 and installed multirom jan 26 zip in both primary install method and going to the multirom menu, then inside the rom zip and installing it that way...no dice either way... :confused:
[ONE Android Development] Mikey:
Here is his folder with the previous images :)

https://www.androidfilehost.com/?w=files&flid=18015
[ONE Android Development] xanthrax:
[MENTION=785380]ek69[/MENTION]

I've flashed through flashify the previous recovery and through it the previous multirom, there were stored on sdcard, I usually keep them just in case... as I said above, a third Rom booted just fine. Isn't related to multirom, it's on your end

sent from my Darkside of 1+1
[ONE Android Development] laulau42400:
Hello, I downloaded twrp_multirom 2.8.4.0 https://www.androidfilehost.com/?w=files&flid=18015 and flashify https://play.google.com/store/apps/details?id=com.cgollner.flashifyon Play store, and finally flash recovery image reboot in recovery, I could make my updates with MultiROM. Meanwhile an update that regulates the problem. Best Regards

Tapaltak and Lollipop ? One+
[ONE Android Development] KINGbabasula:
Updated recovery

I hav now updated the recovery, so the secondary ROMs installation goes fine :good:
[ONE Android Development] laulau42400:
Installation perfect, good job. Thank you.

Tapaltak and Lollipop ? One+
[ONE Android Development] MMWolverine:
Thanks for all the fixes! Working great! :good:
[ONE Android Development] jmazzamj:
Hello everyone.

Thank you for this latest update but for some reason no secondary LP ROM will flash.

I don't know why but it just fails, it won't even display a specific error, it just deletes the incomplete flash.

Please help

Thank you
[ONE Android Development] laulau42400:
good morning

Have you installed MultiRom from play store, and check, install v31 and recovery MultiRom 2015.03.05, you have an error message when you install the update?
[ONE Android Development] udjat:
The secondary ROM installation now works fine. However, making a secondary ROM from a backup still results in a bootloop ending up at T WRP again.

Thanks again for fixing this so fast.
[ONE Android Development] itechy:
I can't install the updated TWRP. It fails to mount /cache and super su isn't denying it.
[ONE Android Development] ek69:
you mean 2015.03.04 ?

i dont see one from 2015.03.05 (even though it was updated and fixed)

i will attempt to fix my phone now with the (hopefully) correct files haha :D

i cant get any rom to boot (not any primary) so ill have to try and push the files to phone via recovery or fastboot (if you can even in fastboot mode??) lol

cheers
[ONE Android Development] laulau42400:
No 2015.03.05 :good:
[ONE Android Development] KINGbabasula:
MultiROM v32

Updated again to MultiROM v32, there are a lot of changes for encryption, but it's still not enabled
[ONE Android Development] Natakranta:
v31 works fine.

I've just installed v32 and it can't boot secondary. When I'm in primary I is MultiROM Manager app widget to chose secondary to boot, but instead it boots to TWRP. When from TWRP I chose reboot system it boots to MultiROM booting menu with the country down pop-up but when I tap aside everything disappeared and I booted primary.

Edit:

Flashed v31 but now I can't boot secondary from v31 when it previously, just an hour ago could have.

I injected MultiROM. No go.

I reflashed my primary karnel AK124 with ticked option to inject MultiROM. Still no go.

MultiROM Manager app shows my secondary is still there.

Any ideas?

The Answer to The Ultimate Question of Life, the Universe, and Everything is: CLEAN FLASH.
[ONE Android Development] KINGbabasula:
I just tried booting a ROM from the widget and it works fine, I think it really depends on ROMs. I only tried with cm based ones. You should try posting the last kmsg
[ONE Android Development] Natakranta:
Last kmsg for the secondary that is not booting?

Could you point me where it is saved?

/proc/kmsg is 0byts - empty

Meantime being back on v31 I flashed new secondary ROM (the same as the one which is not booting since v.32 - SlimSaber LP) and it booted fine. I set it up and I can freely boot between primary and new secondary.

Original secondary is still not booting.

I flashed v32 again and the new secondary (flashed and set up under v31 in last hour) is not booting now. Primary is booting. Non of secondaries is now :(

From my side it looks like something in v.32 is breaking secondary ROMs flashed under v.31

Edit

I found last_kexec_log.txt of its any help, attached.

Last kmsg from primary attached.

I don't know where to find last kmsg from secondaries.
[ONE Android Development] seblog:
MultiRom v32 advice

I updated today to MultiRom v32

The existing secondary rom (CM12 nightly) was then not booting anymore...

I just went to TWRP and dirty flashed CM12 nighly + AK Kernel (085) + SuperSU2.44

now secondary rom boots fine! :)

hope this helps
[ONE Android Development] Natakranta:
Thanks for giving me idea!

I dirty flashed my secondary after upgrading (again) to v.32 and now it's booting.

The Answer to The Ultimate Question of Life, the Universe, and Everything is: CLEAN FLASH.
[ONE Android Development] gerciolisz:
Seems not always answer is clean install lol XD i have no problems but flashed secondary after update.. Good work
[ONE Android Development] dansou901:
[MENTION=5093942]KINGbabasula[/MENTION], someone at the oneplus forum got Ubuntu Touch working with multirom by backing up boot and data partition and choosing that backup during adding a ROM to the multirom setup as secondary. I haven't verified that yet, but will try this evening. Can you implement the changes which are necessary to Multirom app and recovery so we don't need that workaround? Thanks for your work!

EDIT: Source is here: https://forums.oneplus.net/threads/wip-ubuntu-touch-for-oneplus-one.266170/page-26 (last post on page)
[ONE Android Development] KINGbabasula:
The boot fails at init, seems a ROM's problem

There are no changes to do except switching ubuntu touch enabled flag from flase to true and putting the link to download the images. The problem are: I don't have a server with direct download with all that bandwidth where to upload the images that will be downloaded thousands of times, I probably won't be able to update the manifest with download info for the app, downloading and reuploading every time the images would be impossible for me . All things that the maintainer of Ubuntu Touch can easily do I guess, so he can do MultiROM support by himself and when ready I'll just change the flag in MultiROM Manager
[ONE Android Development] jitin02:
Guys

I have cm12 nightly as primary ROM with ak kernel and installed multi ROM using multi ROM app. Now I want to uninstall multi ROM but when trying to uninstall using app or uninstall zip I getting updater script error (screen shot attached).

Please help me out.. I have tried dirty flashing cm12 zip but multi ROM still stays as installed.

Swiped with my thumb on 1+
[ONE Android Development] MMWolverine:
You have a couple of options:

open multirom_uninstaller.zip, navigate to \META-INF\com\google\android, open "updater-script" in a text editor and delete 1st line - "assert(getprop("ro.product.device") == "bacon" || getprop("ro.build.product") == "bacon");", or put a hashtag infront "#". Save, repack and flash in recovery.

You can also replace this command with new one

Or wait for KINGbabasula to update the zip, which will probably be similar. :)
[ONE Android Development] Mikey:
I replaced the line with the new code in this zip in case someone doesnt have access to a computer to get it done.
[ONE Android Development] KINGbabasula:
Updated the uninstaller, now it should work perfectly

EDIT:

Also released v32a with encryption support enabled
[ONE Android Development] sabrefresco:
By encryption you mean /data/ encryption as discussed in the FAQ?
[ONE Android Development] KINGbabasula:
Yes, I have to update the FAQ, now data encryption is supported, at least I think so, I didn't test it but it should work
[ONE Android Development] sabrefresco:
OK. But all in all, security of the secondary ROM is sacrificed with MultiROM? The primary is unaffected just to be clear?
[ONE Android Development] KINGbabasula:
Secondary ROMs will still be encrypted because they are in /data/media (sdcard) which is encrypted but they don't know that. So never encrypt from secondary ROMs. If your device is encrupted it will be more secure on secondary ROMs too for sure
[ONE Android Development] noeticdm:
I am using Mahdi rom KK as primary rom with AK OPO CM11S gold kernel. As of now all secondary KK rom was working. But today I tried to install an LP rom in secondary. But it was not installed and returned an eroor message in modified TWRP recovery. How to deal with the issue? And how can I swap between KK n LP as primary to secondary and vise versa without much changes and trouble? Help and guide solicited.
[ONE Android Development] rajesh261092:
Hi [MENTION=5093942]KINGbabasula[/MENTION]

I have a working MultiROM installation with AK Kernel on Stock CM11S.

Can you please list the steps to install CM12 as a secondary ROM (and may be add the same to the OP?)

There is a lot of confusion on multi booting KitKat (primary) and Lollipop (secondary) using MultiROM (and it would be useful if you can clear things up)

Thanks
[ONE Android Development] NoobInToto:
Hello [MENTION=5093942]KINGbabasula[/MENTION]

I'm on cm12 nightlies with ak kernel. After installing any secondary ROM,phone gets into bootloop when I reboot. The only way I can get in is to power off and power on. Then it goes into multirom list. Can you fix this?
[ONE Android Development] KINGbabasula:
I pushed v32b with a small fix to framebuffer that gets the bootanimation shown on primary ROM after 7-8 seconds but shows completely

You should give me the error at least, to swap ROMs you have to go to Advanced > MultiROM > Swap ROMs > Swap primary (internal) ROM with secondary and choose the ROM you want to swap. Just try, it won't eat you

I haven't tried every possible combination, I never tried KK on primary and LP on secondary. The steps are always the same anyway

Please get me /proc/last_kmsg when you get into primary after trying to boot secondary
[ONE Android Development] noeticdm:
[MENTION=5093942]KINGbabasula[/MENTION] I did that. But I must have kexec patched hardboot kernel in that swappable LP rom too in order to boot correctly. 2nd thing, plz tell me, apart from the modem partition files which are shared files in both roms. What about flashing the NON-HLOS.bin from stock in order to use LP builds. Please clarify.
[ONE Android Development] KINGbabasula:
After swapping, just flash the kernel with kexec support.

Everything is shared except /boot, /system, /data and /cache

https://github.com/KINGbabasula/android_device_oneplus_bacon/blob/new/rootdir/etc/twrp.fstab here you have a list of the partitions
[ONE Android Development] API182:
Hi all, without trawling through 200+ pages I'll simply ask the questions instead... (though I strongly feel these should be on the FAQ)

1. Can I keep my existing CM11s, without root because I need that as my daily driver for mobile banking app (Barclays are sh1t hot on sniffing out root...)

2. If the answer is yes to the first, what about future OTAs from Cyanogen? Like when they eventually release CM12s, will this download and install just like normal?

3. If the answer to no. 2 is Yes, then my final question is will the official OTA break all of the existing MultiROM instance and will I then need to flash all the clever stuff again and possibly lose my additional roms?

I feel that these are straight forward questions that should be in the FAQ for people like myself that want to keep the official rom but play around with community lead stuff in addition...

Thanks in advance, Adam.
[ONE Android Development] KINGbabasula:
1. If you want to use MultiROM Manager, root is needed, if not you can install the recovery through fastboot and then MultiROM zip and kexec patched kernel through recovery

2. I'm not sure whether you get OTAs with a custom kernel installed

3. If yes it will obviously overwrite the kernel and probably also the recovery so you will have to flash everything again but you won't lose any secondary ROM

I'll add them to the FAQ for sure
[ONE Android Development] API182:
Answered like a champ, thanks so much for the reply! cm11s & cm12 nightlies here I come! :)
[ONE Android Development] NoobInToto:
I can boot into secondary. But opo gets into bootloop when I reboot from any ROM. Only way to get into any ROM is power off phone ,wait for 5 seconds and then power on.

There seems to be no file called last_kmsg. There is a kmsg but it's empty... What is the proper procedure to get it?
[ONE Android Development] KINGbabasula:
That's weird, not MultiROM's fault for sure, try reflashing the kernel, the last_kmsg should be there
[ONE Android Development] noeticdm:
[MENTION=5093942]KINGbabasula[/MENTION] As you asked the specific problem while installing an LP rom is given in the below screenshot (here eg. BlissPop). I found in BlissPop thread that I need to flash bacon_firmwire_update.zip and OPO_L5_aplha_flashable.zip. Can I flash them directly while Mahdi KK is my primary rom? Won't they cause any problem? Otherwise, I cannot install any LP rom.