[PREVIEW] Galaxy S3 - MultiBoot project in progress

Search This thread

Phil_Suz

Senior Member
Dec 6, 2013
101
341
Montreal

For technical questions,
Please use this thread now in dev subforum
:
http://xdaforums.com/showthread.php?t=2684052
(new versions are published there)

[Updated 2014/03/10]
version 1.2
migration to twrp2.7.0.0
sizing of system/data/cache now possible
real internal/external sd mounted ( respectively in /storage/intsdcard and /storage/extsdcard )
new way to boot roms​

[Updated 2014/02/07]
version 1.1 to fix kernel injection bug ( Slimkat not starting ) - kload_hardboot

[Updated 2014/02/05]

- new version d2att-twrp-v2.6.3-mb-v1.0 :
- Xposed fixed
- new feature to reboot from android​

- new app multiboot.apk ( need d2att-twrp-v2.6.3-mb-v1.0 )

- add credits/reference at the end of message

- add zip version ( to be able to install without odin - only for d2att )​



Hi all,

I managed to make working multiboot feature on Galaxy S3.

Below are some videos preview that I did demonstrating the features ( don't look at sound, I removed it because my english is not fluent).

This project is at an early stage but already working with limitations.

If you want to try it, beware that it is dangerous (no risk to brick but if you make mistake you risk to install a zip into your internal rom), so to test it, please follow exactly the operations in videos examples.

Very important recommendations to test :


- BACKUP all your data first !
- Use only your internal if you have at least 4G available ( 7GB recommended because I create sparsed img files but if you fill all the rom, it will take 7GB )
- Use your external sd card only if :
- you have at least 7 GB free
- your filesystem is vfat or ext4 ( exfat,ntfs not supported for the moment )
- Very very important : when you use "set rom" option, you have to see "command succeded" at the end of the output. If not, don't go further and reboot.
- start by playing with recovery roms ( check video ) before testing full rom
- creating rom on vfat can take about 15 minutes (to create img files). Be patient...

The method used is an adapted kexec-hardboot method created by mkasic (http://xdaforums.com/showthread.php?t=1266827), but with a complete replacement of kexec by another userspace program ( kload-harboot ) and a very small kernel patch ( hardboot-reserve ).
Note also that this adapted method is easily portable to any android devices.

If you are interested in this project ( to help for testing, to help dev, to add features etc..), I will open a thread in the developpement subforum, to published sources and explanations.

Booting multiples ROMs demo:

Playing with recovery roms:

Creating a new rom, installing gapps ( if not done at first stage ) :


New Multiboot android app

0993e0b6-1b6b-4421-a3f7-a246821f5afb_zpsb1fa4aa9.png


Attachements :

Odin : use d2att-twrp-v2.6.3-mb-v1.1.tar
TWRP/CWM : d2att-twrp-v2.6.3-mb-v1.1.zip
Android app : Multiboot.apk ( need to allow unknown sources )
d2att-twrp2.7-mb-v1.2 : http://www.androidfilehost.com/?fid=23329332407577797



References / Credits :
mkasic : kexec-hardboot creator - http://xdaforums.com/showthread.php?t=1266827
Tassadar : MultiROM creator - best project - http://xdaforums.com/showthread.php?t=2011403 - bbootimg used
TWRP Team : http://www.teamw.in/project/twrp2

Philippe,
 

Attachments

  • Multiboot_v1.0.apk
    274.8 KB · Views: 1,051
  • d2att-recovery-mb-v1.1.tar
    7.2 MB · Views: 353
  • d2att-recovery-mb-v1.1.zip
    7.3 MB · Views: 575
Last edited:

Smash2Bash

Senior Member
Sep 10, 2012
500
147
Cleveland
Is this for the i747? Because it can cause I brick. Not trying to bust your...yeah. But I wanna try it and don't wanna send it back to AT&T with a lie :D

Edit: Got it installed. Gotta use odin guys. All good. testing multiboot soon.

EditEdit lol: tested and good.
Sent from my SAMSUNG-SGH-I747 using Tapatalk
 
Last edited:
  • Like
Reactions: Phil_Suz

Phil_Suz

Senior Member
Dec 6, 2013
101
341
Montreal
Is this for the i747? Because it can cause I brick. Not trying to bust your...yeah. But I wanna try it and don't wanna send it back to AT&T with a lie :D

Edit: Got it installed. Gotta use odin guys. All good. testing multiboot soon.

EditEdit lol: tested and good.
Sent from my SAMSUNG-SGH-I747 using Tapatalk

Hi Smash2Bash,

Sorry to answer lately. I did this program on i747M ( Bell canada provider ) with d2att cm10.2 kernel but as we share the same kernel, it should be fine. Just take care of warnings that I putted in first message. If you can share your experience and tell me if you found problems/bugs.
When I reach 10 posts, I will probalby open a dev thread.

Phil_Suz,
 
  • Like
Reactions: tarick09

Smash2Bash

Senior Member
Sep 10, 2012
500
147
Cleveland
Hi Smash2Bash,

Sorry to answer lately. I did this program on i747M ( Bell canada provider ) with d2att cm10.2 kernel but as we share the same kernel, it should be fine. Just take care of warnings that I putted in first message. If you can share your experience and tell me if you found problems/bugs.
When I reach 10 posts, I will probalby open a dev thread.

Phil_Suz,

No problem man. It's working good. I tested cm11 paranoid android and it worked good. But I tested avatar ROM 4.3 and it didn't work so well. Probably a ROM issue. And these were tested with my internal ROM as 4.3 touchwiz. You should put in the OP to flash with Odin. And I found a bug I think....

When you make a new ROM and flash the ROM in the new slot, you must swap back to internal in order for it to boot. So you can't swap to it, and then boot it.

Sent from my SAMSUNG-SGH-I747 using Tapatalk
 

Mikessv

Senior Member
Jul 31, 2012
292
43
Burlington, NJ
Is there anyway to make a regular zip for this? I don't have access to a computer for Odin

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
 

Phil_Suz

Senior Member
Dec 6, 2013
101
341
Montreal
No problem man. It's working good. I tested cm11 paranoid android and it worked good. But I tested avatar ROM 4.3 and it didn't work so well. Probably a ROM issue. And these were tested with my internal ROM as 4.3 touchwiz. You should put in the OP to flash with Odin. And I found a bug I think....

When you make a new ROM and flash the ROM in the new slot, you must swap back to internal in order for it to boot. So you can't swap to it, and then boot it.

Sent from my SAMSUNG-SGH-I747 using Tapatalk

Thank's for feedback.
I will add the information that this preview has to be installed with Odin.
In fact, it is prerequisite to go back to original rom to be able to boot a Rom that you installed on internal sdcard ( /data/media/../) .
When you select a rom, it is to make operation on it ( install, wipe etc.. ) but not to boot on it. I admit that it is not very clear...

Is there anyway to make a regular zip for this? I don't have access to a computer for Odin

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

Yes, I will do it soon.

it's a great tool for the people than change ROM all the time or the testers...well....it's my opinion....XD:laugh:

In my case, it was also to have my original rom (not rooted) for my work during work time, and use other roms outside work.
 
Last edited:
  • Like
Reactions: Mikessv

balrog558

Senior Member
Apr 11, 2012
224
56
This looks awesome I will try it out asap. Thanks for the hard work

Sent from my SAMSUNG-SGH-I747 using Tapatalk
 

ChinDaChin

Senior Member
Dec 17, 2013
97
8
Wow! This looks awesome! I'll have to try it when I grow a pair of balls haha. I'm too scared to mess with my phone any further. (Especially since I did the 4.3 OTA.)
 

jukiewalsh

Senior Member
Sep 16, 2013
866
346
It even flashes KitKat Roms without the status 7 even though it's based on twrp 2.6.3.0

Sent from my SAMSUNG-SGH-I747 using Tapatalk
 

Okaham

Senior Member
Nov 3, 2011
644
89
hey, i was wondering how one flashes this? i know it's through Odin, but do i flash through PDA? and what do i have to have checked? thanks.
 

Smash2Bash

Senior Member
Sep 10, 2012
500
147
Cleveland
It even flashes KitKat Roms without the status 7 even though it's based on twrp 2.6.3.0

Sent from my SAMSUNG-SGH-I747 using Tapatalk

That amazed me too. That was odd.

Sent from my I747 using 4G LTE! ROM stands for "Remedy of Mediocrity" (says my girlfriend)

---------- Post added at 03:20 AM ---------- Previous post was at 03:17 AM ----------

hey, i was wondering how one flashes this? i know it's through Odin, but do i flash through PDA? and what do i have to have checked? thanks.

Using PDA. Correct. Flashed it again yesterday can verify.

Sent from my I747 using 4G LTE! ROM stands for "Remedy of Mediocrity" (says my girlfriend)
 
  • Like
Reactions: Okaham

Okaham

Senior Member
Nov 3, 2011
644
89
That amazed me too. That was odd.

Sent from my I747 using 4G LTE! ROM stands for "Remedy of Mediocrity" (says my girlfriend)

---------- Post added at 03:20 AM ---------- Previous post was at 03:17 AM ----------



Using PDA. Correct. Flashed it again yesterday can verify.

Sent from my I747 using 4G LTE! ROM stands for "Remedy of Mediocrity" (says my girlfriend)

so what should i have checked? auto reboot, f. reset time...etc? thanks!
 

Smash2Bash

Senior Member
Sep 10, 2012
500
147
Cleveland
so what should i have checked? auto reboot, f. reset time...etc? thanks!

Close the program and reopen it. Use default settings. Make sure re - partition isn't checked. It normally isn't. So open odin. Click the file in PDA. Hit start. Done.

Sent from my I747 using 4G LTE! ROM stands for "Remedy of Mediocrity" (says my girlfriend)
 

saranhai

Inactive Recognized Developer
Mar 5, 2011
5,059
3,286
Nowhere
Nicely done OP! Tested and I can confirm that this does indeed work on the T-Mobile Samsung Galaxy S III SGH-T999!
One small thing though, this mod makes the recovery think that the device is an i747, therefore, T-Mobile ROMs (with the getprop in updater-scripts) cannot be flashed with this. I expect though, that this is a minor issue and can be fixed very easily. Once again, great work! :good:

-Saranhai
 
  • Like
Reactions: Smash2Bash

berryman13

Senior Member
Mar 30, 2011
1,988
1,239
San Francisco
What kind of bugs are people running into? I just saved my device's ass from a hard brick for the second time in just a few months so I don't want to flash anyting with odin right now, some stability would be nice for a ltitle bit :p

However, if people have not been having problems once you boot into either ROM, at least nothing additional to what is already a known issue, then I am flashing this sucker RIGHT away. Question, how is /system/ looking? what about build.prop and the init.d folder? are they seperate for each ROM, and if so, how are they managed when I am not booted into one for instance?
 

Smash2Bash

Senior Member
Sep 10, 2012
500
147
Cleveland
What kind of bugs are people running into? I just saved my device's ass from a hard brick for the second time in just a few months so I don't want to flash anyting with odin right now, some stability would be nice for a ltitle bit :p

However, if people have not been having problems once you boot into either ROM, at least nothing additional to what is already a known issue, then I am flashing this sucker RIGHT away. Question, how is /system/ looking? what about build.prop and the init.d folder? are they seperate for each ROM, and if so, how are they managed when I am not booted into one for instance?

8ymu7uhu.jpg


Every rom is sorted into its own folder in these incoded files. You see?

Sent from my I747 using 4G LTE! ROM stands for "Remedy of Mediocrity" (says my girlfriend)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19

    For technical questions,
    Please use this thread now in dev subforum
    :
    http://xdaforums.com/showthread.php?t=2684052
    (new versions are published there)

    [Updated 2014/03/10]
    version 1.2
    migration to twrp2.7.0.0
    sizing of system/data/cache now possible
    real internal/external sd mounted ( respectively in /storage/intsdcard and /storage/extsdcard )
    new way to boot roms​

    [Updated 2014/02/07]
    version 1.1 to fix kernel injection bug ( Slimkat not starting ) - kload_hardboot

    [Updated 2014/02/05]

    - new version d2att-twrp-v2.6.3-mb-v1.0 :
    - Xposed fixed
    - new feature to reboot from android​

    - new app multiboot.apk ( need d2att-twrp-v2.6.3-mb-v1.0 )

    - add credits/reference at the end of message

    - add zip version ( to be able to install without odin - only for d2att )​



    Hi all,

    I managed to make working multiboot feature on Galaxy S3.

    Below are some videos preview that I did demonstrating the features ( don't look at sound, I removed it because my english is not fluent).

    This project is at an early stage but already working with limitations.

    If you want to try it, beware that it is dangerous (no risk to brick but if you make mistake you risk to install a zip into your internal rom), so to test it, please follow exactly the operations in videos examples.

    Very important recommendations to test :


    - BACKUP all your data first !
    - Use only your internal if you have at least 4G available ( 7GB recommended because I create sparsed img files but if you fill all the rom, it will take 7GB )
    - Use your external sd card only if :
    - you have at least 7 GB free
    - your filesystem is vfat or ext4 ( exfat,ntfs not supported for the moment )
    - Very very important : when you use "set rom" option, you have to see "command succeded" at the end of the output. If not, don't go further and reboot.
    - start by playing with recovery roms ( check video ) before testing full rom
    - creating rom on vfat can take about 15 minutes (to create img files). Be patient...

    The method used is an adapted kexec-hardboot method created by mkasic (http://xdaforums.com/showthread.php?t=1266827), but with a complete replacement of kexec by another userspace program ( kload-harboot ) and a very small kernel patch ( hardboot-reserve ).
    Note also that this adapted method is easily portable to any android devices.

    If you are interested in this project ( to help for testing, to help dev, to add features etc..), I will open a thread in the developpement subforum, to published sources and explanations.

    Booting multiples ROMs demo:

    Playing with recovery roms:

    Creating a new rom, installing gapps ( if not done at first stage ) :


    New Multiboot android app

    0993e0b6-1b6b-4421-a3f7-a246821f5afb_zpsb1fa4aa9.png


    Attachements :

    Odin : use d2att-twrp-v2.6.3-mb-v1.1.tar
    TWRP/CWM : d2att-twrp-v2.6.3-mb-v1.1.zip
    Android app : Multiboot.apk ( need to allow unknown sources )
    d2att-twrp2.7-mb-v1.2 : http://www.androidfilehost.com/?fid=23329332407577797



    References / Credits :
    mkasic : kexec-hardboot creator - http://xdaforums.com/showthread.php?t=1266827
    Tassadar : MultiROM creator - best project - http://xdaforums.com/showthread.php?t=2011403 - bbootimg used
    TWRP Team : http://www.teamw.in/project/twrp2

    Philippe,
    7
    Hi All,

    Just to give you progress. I'm actively working on improving functionalities especially to manage roms ( and mainly to improve sizing ).
    A very good step has been reach (just proof of concept).

    Here are the improvements on which I'm working :


    • Real internal and external sdcard mounted and accessible (root) ==> Done
    • New way to boot rom ( not visible but it was prerequisite for next feature below ) ==> Done
    • qcow2 support with qemu-img : This is a huge improvement.
      ==> Working (manually tested)
      => this open a lot of optimisations
      • thin provisioning even on non sparsable fs (vfat,exfat,...)
      • snapshots/rollback
      • compression
      • liveboot Android ( like linux liveCD distrib )
      • other backend format might be supported as well (raw,vmdk,vdi..)
    • Full LiveDroid ( all rom in memory, need small rom) ==> Working (manually tested)
    • Rom management from Multiboot ==> Not started
      • Rom creation
      • Rom Management(Sizing, cloning, snapshot, renaming)
      • Zip selection (installation done from recovery automaticaly)
    • New supported fs for sdcard ( exfat, ntfs ) ==> Not started ( but not too difficult )
    • Watchdog to monitor real space left ==> Not started
    • Unionsfs and fusecompress tested but overkilled by qcow2 ==> abandonned


    Test with qcow2 format has been done an external vfat sdcard with slimkat. Without compression, all ROM (with some programs) takes only 1.2G and a compressed version, only 700MB.

    Now I need to compile different kernels to start implementation and tests. The small difference is just to add ndb block devices support.
    So far, CM versions (3.4.66, 3.4.77, 3.4.80) are compiling well but could not make working TW4.3 kernel (from kt747 git sources, compilation well but not booting). Does anybody know where I can find TW4.3 kernel sources (3.0.31) to compile or have any clue to compile TW4.3 kernel ? I will try to contact devs as well, and to ask them to compile their kernel with nbd block devices included.

    [edit] Succeed to compile TW kernels with NBD support (KT747 and DKP) . Implementation/tests of qcow2 can continue...

    Thank's
    Philippe,
    7
    Hi all,

    Integration of qcow2 support is now finished.
    Multiboot v2.0RC1 is ready. This new release will be uploaded probably this week end.

    qcow2 file format is a very famous in opensource virtualisation world ( http://en.wikipedia.org/wiki/Qcow ).
    It will be very adapted to our external sdcard where thin provisionning is not possible ( vfat for example ).

    With it, we can also :

    - compress ROMs to save space on sdcard
    - create snapshot and boot on it.
    - liveboot ROMs ( all rom and filesystem in memory )

    He are some video demo :

    - cm11 creation, boot on it, compression, reboot : http://youtu.be/z8c8Ui2PvDs
    - light tw43 creation, boot on it, compression, reboot live (in memory) : http://youtu.be/Y_z2_Lz-KGw
    - multibooting randomly among ~15 roms on sdcard : http://youtu.be/LGoTb0u5oX0


    At this time only dkp kernels are compatibles (http://xdaforums.com/showthread.php?t=2226889). Big thanks to dkp to include nbd block devices.


    Before release this new version, I have to prepare a manual and explanations about how to use it for optimal results.
    Maybe a dev thread in developpement subforum will fit better than in general section.


    NB : some part of video are boring ( during compression ) but I wanted to let it go live to have an idea of processing times.


    Philippe,
    5
    Thanks for the update. If possible can you use the latest version of twrp i.e. 2.7.0.0?

    Sent from my SAMSUNG-SGH-I747 using Tapatalk

    Hi matrixzone, yes multiboot will use twrp2.7 version.


    version 1.2 uploaded.

    This version is based on twrp2.7 ( nice update, thank's to twrp team ! ) with few new features.

    I will need beta testers for qcow2 version.
    Be aware that qcow2 is very nice but with side effects ( slow performances, hibernations problems, modified targeted kernels for ndb blocks ) that I tried to reduce with some constaints to accept... img files with loop devices are by far easier to manage but qcow2 could be an alternative especially for external sdcards. Also, I did not get a lot of answers to kernel devs to include nbd devices to their kernel so choice of kernels will be limited. On this subject big thanks to decimalman who answered very quickly to my request.


    Philippe,
    5
    That's fascinating....So actually the original rom stays UNTOUCHED and this "multiboot" rom is added onto it and within multiboot you can load others? I thought it was much more "intrusive" if you will, where you had to get rid of your rom and do an advanced fresh install of multiboot that supports 2 separate rom images....but what you explained is SO much more useful....so, no xposed but what are the other limitations?

    Would the dev please answer this? Also, where do you see development headed and what are you currently facing? I'm super interested in this it would just be a pity for it to a) never get finished/die off or b) not enough interest or users....

    I am considering using this so I can use touchwiz to watch youtube and stuff with my TV. However no xposed is kinda a stinker :( Makes sense though because if it's not a very dynamic image file w/ storage then it wouldn't save custom system stuff like xposed.

    Hi berryman13,

    Yes you are right, roms do not share data each other.

    After checked, I confirm that Xposed is not working but I think I found a fix. Next version is almost ready and will include this fix. No need to reinstall roms, Xposed will work ( I hope so... )
    A new feature will also be added : ability to swap from one rom to another from android ( no need to boot to recovery and manual action to select rom ) with an android app.
    screenshots :

    f5cfefb6-8ab3-433c-9852-a819c6050215_zpsc0db8bfc.png
    0993e0b6-1b6b-4421-a3f7-a246821f5afb_zpsb1fa4aa9.png



    Good work on this project.

    One ROM which is not booting with multiboot is Slim ROM latest release. Hope OP can nail down the issue soon..

    Sent from my SAMSUNG-SGH-I747 using Tapatalk

    Hi Matrixzone,

    Can you point the thread ( just to be sure ), I will take a look.

    Philippe,