• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MOD][RECOVERY]MultiROM v31 with MultiROM TWRP for I9295 (development ended)

Search This thread

spegelius

Senior Member
Mar 29, 2011
779
1,443
Oulu
2vacmip.png

Intorduction
MultiROM is one-of-a-kind multi-boot mod for Galaxy S4. It can boot any Android ROM as well as other systems like Ubuntu Touch, once they are ported to that device. Besides booting from device's internal memory, MultiROM can boot from external SD card. 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 image above. ROMs are installed and managed via modified TWRP recovery. You can use standard ZIP files to install secondary Android ROMs and MultiROM even has its own installer system, which can be used to ship other Linux-based systems.

DISCLAIMER: You take responsibility of your phone and what you flash into it, not me. You are warned!

Features:
* Multiboot any number of Android ROMs
* Restore nandroid backup as secondary ROM
* Boot from Internal memory and MicroSD Card

And since i don't feel like ripping this stuff from AntaresOne's thread, go read it here (i'm lazy): http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/mod-multirom-v28-t2864469
This is basically the same, i've done some small modifications and development to get it working on I9295.

Installation
1. Via MultiROM Manager app NOT tested on I9295, propably won't work. Don't try! (But if you do, report :) )
2. Manual 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.

Note 1: Your device must not be encrypted (hint: if you don't know what it is, then it is not encrypted).

MultiROM has 3 parts you need to install:
MultiROM - download the ZIP file and flash it in recovery.
Modified recovery - download the ZIP file and flash it in recovery or Mobile Odin app to flash the recovery.img contained inside ZIP.
Patched kernel - Download the ZIP file and flash it in recovery or keep stock kernel (CM11/based ROMs with this android_kernel_samsung_jf source)

You current rom will not be erased by the installation.
Download links are in the second post.

TWRP
MultiROM TWRP can work without MultiROM installed. Obviously most MultiROM related features won't work so steer away from them.
When formatting partitions, especially /data, do keep backups handly, even from /sdcard. As /data and /sdcard are on same partition, formatting /data formats /sdcard. Note that factory reset doesn't actually format /data, it just wipes the directory clean. But when changing fs type on /data, /sdcard will be formatted also.

Credits
@Tasssadar for awesome application
@AntaresOne for jflte device tree to use as base and original thread

Known bugs
- none known currently :)


Source code
 
Last edited:

spegelius

Senior Member
Mar 29, 2011
779
1,443
Oulu
Downloads
https://drive.google.com/folderview?id=0BzJzDM42pkRvTkJVMGMxSVJiWkk&usp=sharing

Changenotes

MultiROM

multirom-20150215-v31-UNOFFICIAL-jactivelte
Changes:

20150207-v30-UNOFFICIAL-jactivelte
Changes:

20150112-v30-UNOFFICIAL-jactivelte
Changes:

20141203
  • initial release

TWRP

multirom_twrp_20150215_000001
Changes:

TWRP 20150207_174341
Changes:

TWRP 20150112_202427
Changes:

20141218_215324
  • both Odin flashable tar and CWM zip available
  • merged changes from Tassadar's repo, TWRP version 2.8.20
  • disabled screen timeout for now. Need to look at the code more to understand why wake up doesn't work
 
Last edited:

spegelius

Senior Member
Mar 29, 2011
779
1,443
Oulu
I am surely gonna try this after I read more about it and the differences with DualBootPatcher
#GoodWork!

Yes, this is quite nifty, i have CM12, CM11 and AOSP installed currently and latter two are running from my external sdcard (exfat). Granted, they are somewhat slower but for now those installations are only for testing. I ordered a miniusb to female usb adater so i can even install roms to usb stick :p. Not very handy in everyday use, but helps when you want to just test something...

Personally i use this modified TWRP quite lot now that it has f2fs and exfat support.
 

ZeroZorro

Senior Member
Nov 24, 2008
645
121
First attempt didn't work out for me....
Currently running WizCyan 4.4.2 ROM
When entering recovering mode and trying to install multirom-20141203-v30-UNOFFICIAL-jactivelte.zip from SD-card i end up with an error 7, no harm done...
Already made a nandroid backup of this rom so i think i'm gonna install patched recovery-image with Odin and after that multirom.zip through recovery.
That way i will be able to restore the Nandroid from the MultiROM menu, right?
@spegelius you say you have CM12 as primary ROM. I presume it's NOT the Dual? And it doesn't have to be patched before installing?
 
Last edited:

spegelius

Senior Member
Mar 29, 2011
779
1,443
Oulu
First attempt didn't work out for me....
Currently running WizCyan 4.4.2 ROM
When entering recovering mode and trying to install multirom-20141203-v30-UNOFFICIAL-jactivelte.zip from SD-card i end up with an error 7, no harm done...
Already made a nandroid backup of this rom so i think i'm gonna install patched recovery-image with Odin and after that multirom.zip through recovery.
That way i will be able to restore the Nandroid from the MultiROM menu, right?
@spegelius you say you have CM12 as primary ROM. I presume it's NOT the Dual? And it doesn't have to be patched before installing?

Did you install the TWRP? I haven't tried with CWM. Error 7 sounds like old recovery or something... not sure (had those problems with AOSP updater and some versions of CWM at some point).

I don't use dualboot, best not to mix it with this. Actually i think dualboot break multirom (need to flash multirom again after dualboot rom flash) and vice versa.

Haven't tried nandroid restore with MultiROM but i think it should be possible? Also if i got this right, if you restore your nandroid as an multirom installation, you'll have two instances of same rom; the main rom and the one installed from nandroid.
 
  • Like
Reactions: ZeroZorro

ZeroZorro

Senior Member
Nov 24, 2008
645
121
Just installed TWRP with Odin and after that MultiROM and it works...cause SuperWizCyan works great i'll leave it as Primary ROM for now and will install CM12 and StockROM on my SDcard...to be continued!
 

spegelius

Senior Member
Mar 29, 2011
779
1,443
Oulu
Just installed TWRP with Odin and after that MultiROM and it works...cause SuperWizCyan works great i'll leave it as Primary ROM for now and will install CM12 and StockROM on my SDcard...to be continued!

Hmm , i wonder if the latest CM12 installer works with MultiROM since it has custom partition format script which allows it to detect f2fs/ext4. Make sure you have backups before trying.
 
  • Like
Reactions: ZeroZorro

ZeroZorro

Senior Member
Nov 24, 2008
645
121
Okay, i even moved my Nandroid Backup to my PC before proceeding.....you can never be too careful!
Installing CM12 to my SD-card now.....
* I have to keep the screen 'alive' while installing CM12 with MultiROM, otherwise when the screen goes black...well i had to reset the phone....
* 2nd attempt it seems to work, no errors and after pushing the Reboot-button screen goes black again...> reset
* I can see the Boot-screen but touch-screen not working so trying to cancel Boot from Internal doesn't work so it auto-boots... >> found it ... Use Volume Buttons!
* But: i can see that CM12 is listed as 2nd ROM ;)
* So now i have to find a way to get into the menu to choose ROM to boot

And... how do i install the GAPPS for this 2nd ROM? >> found it...you can do it within TWRP>MultiROM #cool
Also installed MultiROM manager apk hoping it would give me boot options but (obvious) it doesn't work on 9295 for now.
For testing purposes i set the 2nd ROM to boot in MultiROM setting (trough TWRP)....it seems that the black screen is a problem of TWRP, not MultiROM

Oh well... booting CM12 doesn't work for now...will post multirom_log soon
 
Last edited:

ZeroZorro

Senior Member
Nov 24, 2008
645
121
Update: i'm there ;)
Now i have SuperWizCyan as Primary (internal) ROM and SammyStockTW as secondary on my SD-card
I made it harder then needed cause i forgot to make a Nandroid with TWRP instead of CWM so i had to re-install CWM to get my 1st ROM back.
(If you really wanna know what i did, please ask, for now i will spare you the details ;) )
For now, as you can see in the previous post, CM12 doesn't work for now....we'll wait and see and do some more testing!

But hey, it worked and so far so good.....1 thing i didn't read about is if there i going to be an option of app-sharing like DualPatcher does. App-sharing with data-sharing would be even better for my banking apps and Whatsapp to work on both ROM's.
Thanks again @spegelius !
 

spegelius

Senior Member
Mar 29, 2011
779
1,443
Oulu
Update: i'm there ;)
Now i have SuperWizCyan as Primary (internal) ROM and SammyStockTW as secondary on my SD-card
I made it harder then needed cause i forgot to make a Nandroid with TWRP instead of CWM so i had to re-install CWM to get my 1st ROM back.
(If you really wanna know what i did, please ask, for now i will spare you the details ;) )
For now, as you can see in the previous post, CM12 doesn't work for now....we'll wait and see and do some more testing!

But hey, it worked and so far so good.....1 thing i didn't read about is if there i going to be an option of app-sharing like DualPatcher does. App-sharing with data-sharing would be even better for my banking apps and Whatsapp to work on both ROM's.
Thanks again @spegelius !

Great, apparently there's KEXEC_HARDBOOT patch somewhere there or it's not needed :).
For CM12, another installer zip is needed, which has the normal /system format and mount commands. I'll see if i get it done.
No app sharing, at least automatically. In the I9505 thread someone suggested moving the apps/data to sdcard or something...
 

O-T

Senior Member
Sep 28, 2010
934
389
Interested in replace CWM 6.0.5.0 with TWRP. Not sure if ready to use the rest of MultiRom setup yet. Is TWRP stand-alone capable of replacing CWM in a single ROM setup?
 
Last edited:

spegelius

Senior Member
Mar 29, 2011
779
1,443
Oulu
Interested in replace CWM 6.0.5.0 with TWRP. Not sure if ready to use the rest of mulirom setup yet. Is TWRP stand-alone capable of replacing CWM in a single ROM setup?

Yes, TWRP works without MultiROM. There are few checkboxes, like Inject MultiROM that need to be disabled when installing roms for example, but basic stuff works without multirom.
 
  • Like
Reactions: O-T

O-T

Senior Member
Sep 28, 2010
934
389
@spegelius
Ehhm, small correction for OP Installation - Modified Recovery:
It's a tar-file on your Gdrive, no zip-file for installation by recovery multirom_twrp_20141204_1838.tar.md5

Not tried Mobile Odin yet but I know PC Odin swallow tar-files.


About warning TWRP format of /data also include /sdcard. /sdcard is soft or hardlinked(?) to /data/media/0

Can the relationship between fstab of TWRP and mount points of S4A be a good place to start tracing, or is this all fuse managed?

Recovery.log of CWM 6.0.5.0 got me thinking:
W:Unable to get recovery.fstab info for /sdcard during fstab generation!
Can mount points be somewhat off? (at least for CWM) . The reason is that delete dalvik cache take less than a microsecond, as if it has not been executed. Delete cache and zip install has been good.
Will update to TWRP using Odin from PC and follow up.
 
Last edited:

ZeroZorro

Senior Member
Nov 24, 2008
645
121
In the log there was mention about kexe-hardboot failing... Is WixCyan a TW rom? Is the kernel in it KEXEC-HARDBOOT patched? That patch is in CM11, CM12 and AOSP (and other CM11 derivates) since their kernels are the same base. For TW, you'd need some modified kernel.

Yes WizCyan is TW ROM and should work....?
see: http://forum.xda-developers.com/galaxy-s4-active/development/rom-super-wizcyan-s5-style-t2874424
I'll ask @JASONRR if he can implement KEXEC-HARDBOOT in next version.

I have to do some clean install cause i can't restore my Nandroid Backups (all CWM-related). :crying:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    2vacmip.png

    Intorduction
    MultiROM is one-of-a-kind multi-boot mod for Galaxy S4. It can boot any Android ROM as well as other systems like Ubuntu Touch, once they are ported to that device. Besides booting from device's internal memory, MultiROM can boot from external SD card. 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 image above. ROMs are installed and managed via modified TWRP recovery. You can use standard ZIP files to install secondary Android ROMs and MultiROM even has its own installer system, which can be used to ship other Linux-based systems.

    DISCLAIMER: You take responsibility of your phone and what you flash into it, not me. You are warned!

    Features:
    * Multiboot any number of Android ROMs
    * Restore nandroid backup as secondary ROM
    * Boot from Internal memory and MicroSD Card

    And since i don't feel like ripping this stuff from AntaresOne's thread, go read it here (i'm lazy): http://forum.xda-developers.com/galaxy-s4/i9505-orig-develop/mod-multirom-v28-t2864469
    This is basically the same, i've done some small modifications and development to get it working on I9295.

    Installation
    1. Via MultiROM Manager app NOT tested on I9295, propably won't work. Don't try! (But if you do, report :) )
    2. Manual 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.

    Note 1: Your device must not be encrypted (hint: if you don't know what it is, then it is not encrypted).

    MultiROM has 3 parts you need to install:
    MultiROM - download the ZIP file and flash it in recovery.
    Modified recovery - download the ZIP file and flash it in recovery or Mobile Odin app to flash the recovery.img contained inside ZIP.
    Patched kernel - Download the ZIP file and flash it in recovery or keep stock kernel (CM11/based ROMs with this android_kernel_samsung_jf source)

    You current rom will not be erased by the installation.
    Download links are in the second post.

    TWRP
    MultiROM TWRP can work without MultiROM installed. Obviously most MultiROM related features won't work so steer away from them.
    When formatting partitions, especially /data, do keep backups handly, even from /sdcard. As /data and /sdcard are on same partition, formatting /data formats /sdcard. Note that factory reset doesn't actually format /data, it just wipes the directory clean. But when changing fs type on /data, /sdcard will be formatted also.

    Credits
    @Tasssadar for awesome application
    @AntaresOne for jflte device tree to use as base and original thread

    Known bugs
    - none known currently :)


    Source code
    7
    Downloads
    https://drive.google.com/folderview?id=0BzJzDM42pkRvTkJVMGMxSVJiWkk&usp=sharing

    Changenotes

    MultiROM

    multirom-20150215-v31-UNOFFICIAL-jactivelte
    Changes:

    20150207-v30-UNOFFICIAL-jactivelte
    Changes:

    20150112-v30-UNOFFICIAL-jactivelte
    Changes:

    20141203
    • initial release

    TWRP

    multirom_twrp_20150215_000001
    Changes:

    TWRP 20150207_174341
    Changes:

    TWRP 20150112_202427
    Changes:

    20141218_215324
    • both Odin flashable tar and CWM zip available
    • merged changes from Tassadar's repo, TWRP version 2.8.20
    • disabled screen timeout for now. Need to look at the code more to understand why wake up doesn't work
    5
    New MultiROM and TWRP released:

    20150207-v30-UNOFFICIAL-jactivelte
    Changes:
    All commits here: https://github.com/Tasssadar/multirom/commits/master since Jan 12, 2015

    TWRP 20150207_174341
    Changes:
    All commits here: https://github.com/spegelius/Team-Win-Recovery-Project/commits/master?page=2 since Jan 12, 2015
    Fix reboot not working (credits for the fix: @d8389)
    5
    Apparently the f2fs problems were due to the updated baseband (OI5), somehow selinux got to be even more restrictive. So i moved twrp and multirom to CM12.1 base and configured selinux permissions for recovery as permissive. With CM12.1 base, kernel and tools have been updated, which should improve overall functionality. Also i made separate f2fs builds, for both twrp and multirom. Not entirely sure separate versions are needed, but if there's problems with f2fs, do try the f2fs versions.

    New testbuilds uploading:
    multirom_twrp_20151228_165546 and multirom_twrp_f2fs_20151228_171930:
    • built on top of CM12.1 instead CM11
    • separate f2fs build, in theory should support f2fs encryption, but not tested

    multirom-20151228-v32-UNOFFICIAL-jactivelte and multirom-20151228-v32-UNOFFICIAL-jactivelte_f2fs:
    • built on top of CM12.1 instead CM11
    • separate f2fs build, might be needed when /data is formatted as f2fs
    4
    New TWRP version, 20141218_215324:
    • both Odin flashable tar and CWM zip available
    • merged changes from Tassadar's repo, TWRP version 2.8.20
    • disabled screen timeout for now. Need to look at the code more to understand why wake up doesn't work