[MOD][2014-01-19][Pre-Alpha Test] Use multiple ROMs: MultiROM Xperia M

Search This thread

aweosomeabhijeet

Senior Member
Oct 4, 2012
886
972
28
Jaipur
next2tech.net
How were you able to get it to read ROMs? I'm currently having trouble and have tried almost everything. I compared the test zip and the FXP311 zip and found out that they are completely different.
You just have to make system.img of whatever ROM you wanna use and extract ramdisk and zImage from the kernel and apply a little mind on how it boots the CM test provided. That's all. All ROM's work fine just LiquidSmooth gives systemUI fc only while multi booting else it also works fine. :good:
 

elmkzgirxp

Senior Member
May 16, 2013
724
236
You just have to make system.img of whatever ROM you wanna use and extract ramdisk and zImage from the kernel and apply a little mind on how it boots the CM test provided. That's all. All ROM's work fine just LiquidSmooth gives systemUI fc only while multi booting else it also works fine. :good:

What did you use to extract files from the kernel?

EDIT: Oh, wait, nevermind. I figured it out. Thanks anyway.
 
Last edited:

omar_m98

Member
Jun 5, 2014
45
2
I
Prerequisite: You need to unlock your bootloader and be on stock 15.1.C.2.8 firmware (Android 4.1.2),



Created 2014-01-06
Last Updated 2014-01-19

Great work! But does it work on xperia m dual? , I've always wanted to try multiple roms on my phone but I get bored of all the waiting time (downloading,flashing, looking for bugs,etc),, please can you make it work on XMD?
 
Last edited:

manoj36

Senior Member
Mar 30, 2014
418
53
30
banglore
I

Great work! But does it work on xperia m dual? , I've always wanted to try multiple roms on my phone but I get bored of all the waiting time (downloading,flashing, looking for bugs,etc),, please can you make it work on XMD?

It also work on XMD.. just c the screen shot of it u will come to know

Sent from my C2004 using XDA Premium 4 mobile app
 
  • Like
Reactions: omar_m98

manoj36

Senior Member
Mar 30, 2014
418
53
30
banglore
Same here.. Waiting for 4.3 support.. Then will flash

Sent from my C1905 using XDA Premium 4 mobile app
 

manoj36

Senior Member
Mar 30, 2014
418
53
30
banglore
Hey admin.. Do u exist or not?? Please respond.. Ur negligence towards the thread will result in '' thread closed ''...

Sent from my C2004 using XDA Premium 4 mobile app
 

elmkzgirxp

Senior Member
May 16, 2013
724
236
Hey admin.. Do u exist or not?? Please respond.. Ur negligence towards the thread will result in '' thread closed ''...

Sent from my C2004 using XDA Premium 4 mobile app
It would be a shame if we a lose a developer that got our device to what it is now. He basically started everything from scratch and contributed a huge part to this device's development. Let's just hope he's fine and nothing bad happened to him. It's the least we can do.
 
  • Like
Reactions: manoj36

alvinhochun

Senior Member
Oct 3, 2010
175
202
Hi everyone, I don't have time to continue on this in the near future, but just want you to know that I am not dead. Technically the technique should work for Android 4.1 to 4.4, but you will need to pack the ramdisk and system images on your own. I saw that someone should already be capable of this, so if any of you packed working images or can write instructions on how to pack them, please feel free to post on the forums. Just remember to give credits to the developers. :)
 

manoj36

Senior Member
Mar 30, 2014
418
53
30
banglore
Tnx for the response developer.. M just hoping either u or other person work on this technique as soon as possible.. Anyways thanks in advance..
 

Top Liked Posts

  • There are no posts matching your filters.
  • 20
    Disclaimer
    I (alvinhochun) am NOT responsible for events including but not limited to bricking any electronic or non-electronic devices, losing data, fever, heart attack, thermonuclear war, or the cooling down of the Sun, either caused by or not caused by downloading or installing this mod.

    You are expected to back up all your data by your own means before installing this mod.

    You should always only follow tested instructions and install only tested ROMs with a tested setup, or else you should have extended knowledge in the inner workings of Android, Linux and MultiROM Xperia.​

    Notice
    This is an unofficial port of MultiROM.

    Before anything else, I would like to say thanks to @Tasssadar who developed the original MultiROM (thread for Nexus 7). Without him, this mod wouldn't be here.

    Unless otherwise specified, anything that is designed for just "MultiROM" (without "Xperia" after it) will not work for this because there are some operational differences between "MultiROM" (original) and "MultiROM Xperia" (this mod).​

    Introduction
    Perhaps you want to try the new CyanogenMod 11 ROM, but don't want to erase your phone to flash it because you need to keep your stock ROM and all your data, and don't want to bother backing up and restoring every single time? Don't worry! MultiROM Xperia can help you.

    MultiROM Xperia is a mod which lets you install alternative Android ROMs to your internal memory, microSD cards or USB storage connected via OTG and boot them. Together with a kernel with kexec-hardboot patch, you can even boot ROMs with kernels different from the one you've installed!

    The idea is that you can install ROMs to external storage spaces via a modified TWRP recovery, but it is not ready yet.

    This mod is mostly ready for testing, but since the installer is not ready yet, I've uploaded the boot image (to be flashed with `fastboot flash boot`) and the files of unofficial CM11 Beta 1 (Thanks to @PecanCM) to be placed on the microSD card or USB device in the form of a zip archive. At the time being, they can only be used when you have stock 15.1.C.2.8 firmware (Android 4.1.2) installed.

    Warning
    This mod is basically one giant hack. Neither the ROMs nor the device itself is designed with multiboot in mind so there is no absolute guarantee that it will work properly. Technically, installing it only modifies the boot partition (sometimes casually called the kernel) which is the same thing that custom kernel is installed to, and in the worse case you only need to (re-)flash a stock or custom kernel or flash an ftf to remove MultiROM Xperia, but the MultiROM booting mechanism is hacky and is not guaranteed to always work.

    Always make backup, frequently, like you should do even if not using MultiROM Xperia.​

    Features
    • Boot any number of alternative Android ROMs installed onto microSD cards and USB storage
    • Support alternative "internal storages": For every ROMs (including internal ROM), you can have multiple separated "profiles", which is represented by an entire "emulated" /data partition. Technically, the profiles can also support encryption.

    Installation
    This instruction is reviewed on 2014-01-09.

    Prerequisite: You need to unlock your bootloader and be on stock 15.1.C.2.8 firmware (Android 4.1.2),

    1. Download multirom-boot-********-c1905-test.img and multirom-cm11beta1-********-c1905-test.zip.
    2. Use fastboot to flash the boot image:
      Code:
      fastboot flash boot multirom-boot-********-c1905-test.img
    3. Extract multirom-cm11beta1-********-c1905-test.zip directly to the root of a microSD Card or USB flash drive.
      Currently, these filesystem formats are supported: vfat (FAT16/FAT32), ext2, ext3, ext4.
    ******** represents the date of the release.​

    Usage
    To boot a ROM (including internal stock ROM), insert the microSD card or connect the USB flash drive and switch on the phone, then select the corresponding ROM and press "boot". (Note, the first boot of an external ROM may take very long depending on the speed of the storage device.)

    To enter CWM recovery, switch on the phone, select "Misc" tab and press "Recovery". Alternatively, you can execute `adb reboot recovery`. The included CWM recovery is the same as the one in unofficial CM11 Alpha 2 (Thanks to @PecanCM).
    Note: Do NOT attempt to use any existing recovery to flash any ROMs unless you don't want to keep MultiROM Xperia and your existing data!
    [/LIST]​

    Downloads

    Screenshots

    Source code
    MultiROM Xperia:
    https://github.com/alvinhochun/multirom-nicki
    Device tree (used to build MultiROM Xperia):
    https://github.com/alvinhochun/cyanogenmod_device_sony_nicki/tree/multirom
    Kexec-hardboot patch:
    See http://xdaforums.com/showthread.php?t=2568151
    Stock kernel with kexec-hardboot patch:
    https://github.com/alvinhochun/sony-xperia-m-kernel
    CM11 kernel:
    See original unofficial CM11 Beta 1 thread​

    XDA:DevDB Information
    MultiROM Xperia M, Tool/Utility for the Sony Xperia M

    Contributors
    alvinhochun, Tasssadar

    Version Information
    Status: Testing

    Created 2014-01-06
    Last Updated 2014-11-04
    12
    Changelog and technical information

    Changelog
    2014-01-08
    • Added option to update/rescan for ROMs

    2014-01-07
    • First public test release

    Technical information
    It works by extracting the boot ramdisk to root and patching init.rc files after boot selection.
    More to be added​

    Changes from the original MultiROM
    This port is based on the original MultiROM by @Tasssadar, which is available for multiple devices including the Nexus 4, 5 and 7. However, since his original port did not account for supporting external SD cards, and also didn't handle most Xperia devices without a recovery partition, I've rewritten some part of his original MultiROM to handle these things.

    Differences include:
    • All binaries are placed in the ramdisk altogether instead of the internal storage.
    • MultiROM Xperia does not mount the partitions before starting the real Android init. Instead, it generates a script and patches some files (including init.rc) to trick the target system to mount filesystem images (loop mounting loop devices).
    • One ROM can contain multiple user profiles (i.e. data, cache and persist).
    • The code to boot generic (non-Android) Linux ROMs is removed due to heavy rewrite of parts from the original MultiROM.
    • It currently only support using partition filesystem images, neither symlink nor bind mount is supported.
    5
    Uploaded test package with unofficial CM11 Beta 1. Just extract it to SD card, just like the previous test release.

    Although I don't expect daily usage on a pre-alpha test release, if you want to keep your data in CM11 Alpha 1, copy the `default` directory from cm11-alpha2 and replace the one in cm11-beta1.

    Just a little update, I am coding as I type this, but you cannot expect the alpha release of MultiROM Xperia to be here in a short time 'cause there is a lot to do. You can still try the test packages at the moment.
    5
    I've added an option in the "Misc" tab to rescan for ROMs as a temporary measure. Flash the new boot image to get it. Please refer to the first post for download.

    Sent from my Sony Xperia M (C1905)
    4
    @itsnie
    I am back and hopefully have fixed the errors, This time there were lesser problems

    Try and report whenever free

    You have to flash boot.img and state whether the device boots or not

    Edit : Only for stock 4.3!