yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] blood_talon:
Hi chenxiaolong,

this looks promising. I am going to give it a try. Btw, could you add support for Infamous Kernel 2.0? That's the only kernel I have found so far which allows smooth dual camera on custom TW roms..

Thanks!
[Galaxy S 4 i9505 Original Android Development] Buddhism:
Thanks for this! However, can you please add support for Paranoid Android? Or is it supported? Would really love the features of it together with some TouchWiz features! Thanks again!
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
I would love to dual boot sense 5 and touchwiz when the Sense ROM is more stable

_____________________________________

If I actually did help, how bout a Thanks:D
[Galaxy S 4 i9505 Original Android Development] daddyspud:
im having trouble dual booting i got amegle rom as main but then i reboot into recovery after setting primary rom kernel i flash ur cm10 rom then wipe cache and flash dual gapp n then reboot unfortunaly my phone goes past splash screen then it just hangs on a black screen really unsure where im goin wrong
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
After you set the primary kernel and before you flashed the secondary rom, did you flash the dual boot_enable.zip file from the helper section?

_____________________________________

If I actually did help, how bout a Thanks:D
[Galaxy S 4 i9505 Original Android Development] daddyspud:
i select primary rom then reboot to recovery enabled then reboot back to main rom then bk to recovery n install cm 10

edit :::: as when i select cm 10 rom it tells me that dual boot is enabled

edit x2 :::: dont matter all booted and working fine seems the latest cm10 from chenxiaolong dosent have a bootanimation hence the reason i just got a black screen
[Galaxy S 4 i9505 Original Android Development] Sushibagel:
Has anyone done this yet on the ATT version. I saw a post about it earlier. I'm just curious if it works correctly without throwing an unofficial status or soft brick since the app is essentially switching out the kernel.

Edit: I went ahead and tried it out. Its working great thanks [MENTION=4277844]chenxiaolong[/MENTION]
[Galaxy S 4 i9505 Original Android Development] alvin551:
This would be awsome if you could include the same apps that you downloaded on one rom on the other...good job chenxiaolong youve done well with this
[Galaxy S 4 i9505 Original Android Development] Dualz:
Dual Boot Dualz :)

Hi Chenxiaolong,

Confirming Roms: cm-10.2-20130919-crDroid-build6-jfltexx_dualboot and miuiandroid_lang_jfltexx-3.9.20_dualboot worked at both sides of boot on my GT-I9505.

Currently MIUI is Primary and crDroid Secondary.Got confused with some of the instructions but i finally got it after a few goes :laugh:

+1 Thank You for this :)
[Galaxy S 4 i9505 Original Android Development] torres76:
My god that is weird I was just going to ask about those two ROMs myself, I've got both as backups on my card but I'm running crdroid at moment. Can I still do this from backups
[Galaxy S 4 i9505 Original Android Development] Dualz:
One of them has to be the secondary so a wipe/flash is needed.

I guess just back up which ever will be secondary and restore after install.

I don't know if it will conflict as I did both fresh installs of the Roms.
[Galaxy S 4 i9505 Original Android Development] Raiken_:
My switched back to my Primary ROM (Jamal GE 4.3) after messing around with my Secondary ROM (PAC), now it won't go back to the Secondary ROM, I tried flashing DualBootUtilites and booting secondary from there, but it wouldn't work. Does anybody know a fix? Also, if I want to delete the Secondary ROM, will I just use DualBootUtilites to wipe the Secondary? Thanks!
[Galaxy S 4 i9505 Original Android Development] kingzain900:
I'm running MAKTAIL's version of GE as my secondary ROM. I want to flash SuperSU to get root, but following your instructions to manually patch the zip file is a bit complicated since the updater script is actually empty in the SuperSU zip and all the code is in updater binary. Any ideas on what I should do? Thanks.
[Galaxy S 4 i9505 Original Android Development] Bejda:
SuperSu is supported by the patcher tool, normally there's no need to patch it manually unless you don't have a pc at hand.
[Galaxy S 4 i9505 Original Android Development] kingzain900:
Thanks for the info. That worked :)

EDIT: Just to add some info, I've successfully switched secondary ROMs by flashing the various wipe secondary zips. I used Maktail GE, PA, and PAC-man ROM and all worked well. Just one slight issue that Play Store and Currents don't load data until you clear their data from manage apps (a case usually happens when ROMs get changed). Thanks a lot to chenxiaolong for this great patch!
[Galaxy S 4 i9505 Original Android Development] marcoxx626:
Did you set the kernel for secondary? If not, then just reflash the patched secondary rom (no wipes needed since) and then set the kernel using the dual boot app. Your data will all still be there as well.

if you want to change secondaries rom, just wipes all the secondary partitions using the Aroma dual boot utilities :) if you're upgrading the current right (such as a nightly) no wipes needed because the patched rom will automatically wipe the Secondary system :)
[Galaxy S 4 i9505 Original Android Development] marcoxx626:
Can we patch slim gapps or does it have to be regular gapps?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Version 1.8.1 now supports the AOSPA Paranoid Android ROM :)
[Galaxy S 4 i9505 Original Android Development] TheMorpheus:
I didn't get how many free space do I need whit a TouchWiz primary rom?

Inviato dal mio GT-N8000 con Tapatalk 4
[Galaxy S 4 i9505 Original Android Development] Bejda:
Ha,I wondered about that also.. Only Slim rom appears as supported in op but if we look at Chenxiaolong answer when someone asked:

http://xdaforums.com/showpost.php?p=45749245&postcount=106

..I guess it's ok?

Btw there's now the 4.3 aroma version of Slim gapps and you once asked about the possibility for patcher tool to support Aroma installer's zip ..I wondered about that too ;)

Another thing [MENTION=4277844]chenxiaolong[/MENTION],for peoples that wish to use a big touchwiz rom it could be useful maybe to add support (if needed?) to a minimal gapps pack such as BaNks one:

http://xdaforums.com/showthread.php?t=2012857

---------- Post added 24th September 2013 at 12:02 AM ---------- Previous post was 23rd September 2013 at 11:48 PM ----------

How many space left under /system once touchwiz rom installed.

Size of /system folder of wished secondary rom once uncompressed and same thing for gapps if needed.

All that must fit into 2.7gb.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Carbon is now supported (version 1.9) :)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The non-aroma Gapps provided by the Slim ROM team is supported :) I can add support for the aroma version and the minimal one you linked to in a little bit.
[Galaxy S 4 i9505 Original Android Development] Bejda:
Sorry I wanted to show my appreciation but I guess I reached the 8 thks to Chenxiaolong per day limit ;)
[Galaxy S 4 i9505 Original Android Development] HearMeWhisper:
Is the 3rd rom idea still in the works? I think it would be awesome to have touchwiz, pac, and miui

Sent from my PAC'd Galaxy S4
[Galaxy S 4 i9505 Original Android Development] RK:
It would be great if you can post a generic guide on the necessary modifications required to the ramdisk.. That way ppl who are familiar with coding don't have to bother you for supporting new ROMs. If its too involved or too much work to write the guide, then nvm.

Your work is greatly appreciated as is..
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
I'll try when I have a little bit more time. The problem is that the ramdisks are all different and they don't all work the same way. For example TouchWiz ramdisks have the following init targets, all of which mount the partitions listed in fstab.qcom:

init.target.rc: "on fs"

init.target.rc: "on fs_selinux"

MSM8960_lpm.rc: "on fs"

MSM8960_lpm.rc: "on fs_selinux"

It turns out that the TW init binary actually calls "on fs_selinux" from init.target.rc and everything under the other 3 targets is ignored. And then CM and other AOSP ROMs call "on fs" regardless of whether or not SELinux is enabled.

You are right though. I should take the time to write a guide on how to patch the ramdisks.
[Galaxy S 4 i9505 Original Android Development] RK:
Thanks.. I just hate to ask every time.. I would rather do it myself if I can..

Like the kernel in this ROM

http://xdaforums.com/showthread.php?p=44347508

Was just updated to a new release. Do I need a new ramdisk or should I use the Google edition one v that's based on an older kernel?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The kernel is actually completely separate from the ramdisk. As long as a kernel can run the binaries inside the ramdisk, they can work together, so you can always combine a newer kernel with an older ramdisk. With that said, ramdisks are not updated often. They are usually only updated when there are permissions that need to be changed (ie. the version of TW with Samsung Knox needs a new ramdisk).

The only exception to that is custom kernels that include customization scripts in the ramdisk (which IMHO should go in /system anyway), but Ausdim kernel is the only one I've seen that does this.

EDIT: I'll write up a guide on how to patch a ramdisk over the next few days. One thing to note is that this can't be done in Windows (because the Unix permissions must be preserved).
[Galaxy S 4 i9505 Original Android Development] mr wizard:
[PATCHER][APP] Dual boot any ROM on all Galaxy S4 variants!

I want to use I9505_-_Google_Edition_v6_by_Jamal2367 which is 414.7 mb as my second rom and I believe it is listed. I have a 64gb sd card with over 40 g still available.

Here is a snapshot of what you asked for

u0_a299@android:/ $ export PATH=/data/local/bin:$PATH u0_a299@android:/ $ di /system/bin/sh: di: not found 127|u0_a299@android:/ $ df Filesystem Size Used Free Blksize /dev 910M 80.0K 910M 4096 /mnt/secure 910M 0.00K 910M 4096 /mnt/asec 910M 0.00K 910M 4096 /mnt/asec/pl.idreams.pottery-1 51.1M 49.9M 1.23M 4096 /mnt/asec/com.highwindsoftware.tunesync-1 1.98M 868K 1.13M 4096 /mnt/asec/com.sega.sonic1-1 34.2M 32.4M 1.75M 4096 /mnt/asec/com.globalcanofworms.android.proweatheralert-1 1.98M 704K 1.29M 4096 /mnt/asec/com.skjm.ispy-1 1.98M 408K 1.58M 4096 /mnt/asec/com.southernstars.skysafari_pro-1 33.2M 31.3M 1.82M 4096 /mnt/asec/com.southernstars.satellite_safari-1 21.2M 19.9M 1.22M 4096 /mnt/obb 910M 0.00K 910M 4096 /persdata/absolute 8.82M 4.06M 4.76M 4096 /system 2.66G 2.13G 542M 4096 /data 9.57G 2.83G 6.74G 4096 /cache 1.99G 39.1M 1.95G 4096 /firmware 86.0M 8.75M 77.2M 16384 /firmware-mdm 86.0M 49.5M 36.5M 16384 /efs 13.4M 4.23M 9.22M 4096 /mnt/shell/container: Permission denied /mnt/shell/emulated: Permission denied /storage/emulated 910M 0.00K 910M 4096 /storage/extSdCard 59.4G 20.2G 39.3G 32768 /storage/emulated/0 9.48G 2.83G 6.64G 4096 /storage/emulated/0/Android/obb 9.48G 2.83G 6.64G 4096 /storage/emulated/legacy 9.48G 2.83G 6.64G 4096 /storage/emulated/legacy/Android/obb 9.48G 2.83G 6.64G 4096 1|u0_a299@android:/ $

Also I was getting hung up on how and what to use for patching the rom. (and what kernel would be good to use for GE rom and will that need to be patched as well) I have found this kernel but not sure if it is supported if not let me know of something else to use). I have installed the 2 apps called dual boot patcher and dual boot switcher and I also flashed the DualBootEnable.zip and have the DualBootUtilities-3.1.zip as well.

Thanks for your help too I am sorry too about the posts. I find that mine are overlooked or at least that it seems that way and while I am waiting for a response others are posting and getting responses right away. I am really, really, trying here to learn quickly and read, read, read but some parts I don’t get that is why I ask. I am not angry or looking to blame anyone I just want some assistance.

Thanks,
[Galaxy S 4 i9505 Original Android Development] Bejda:
[MENTION=5448105]mr wizard[/MENTION],

414,7mb is the size of rom once extracted or the zip?

What matters is the size of the zip system folder once extracted, I'm not totally sure the 542mb free you have under /system are enough for a GE rom..

Got things to do right now, see you later ;)
[Galaxy S 4 i9505 Original Android Development] mr wizard:
[PATCHER][APP] Dual boot any ROM on all Galaxy S4 variants!

It's 643 mb unzip and 414.7 zip. So what would I have to do to get more space? I will wait to hear back from you later. And thanks again for helping me. Look forward to your response.

Thanks,
[Galaxy S 4 i9505 Original Android Development] gaww:
I think you problem is that you have done too much reading and are all tangled up in...... I would go back to square one.

From the OP, go back to square one here:

Before doing anything, download the Dual Boot Switcher app and the DualBootUtilities.zip from the download section below.

Note - the OP does not seem to refer to the "DualBootEnable.zip anymore. I think it is still necessary, or on flashing a duelboot patched ROM, it will simply write over the Primary ROM - happened to me after I upgraded my primary. Also download and install the patcher app.

Note: Only the secondary ROM and other zips that should be installed for the secondary ROM need to be patched. Nothing needs to be done for the primary ROM.

1. Boot into your primary ROM and install the Dual Boot Switcher app

2. Open the app and set the current kernel as the primary kernel (screenshot)

3. If the primary ROM is TouchWiz, you will need to remove some bloatware. Otherwise, two ROMs won't be able to fit on the /system partition. You can also convert some system apps to user apps with this tool: https://play.google.com/store/apps/details?id=de.j4velin.systemappmover&hl=en

4. Patch the ROM (see the "How to use the patcher" section)

5. Reboot into recovery

6. Flash the patched zip files.

7.Reboot

8. Install the Dual Boot Switcher app again in the secondary ROM. If you have a locked bootloader, set the kernel for the secondary ROM (just in case).

Enjoy!

As for TW on US TMo - if it is basically stock, you will not be able to flash any secondary ROM much larger then CM11. Even then, I had to pare down bloat per the OP above (I am on M919). I doubt you will have room for the GE ROM as secondary - but you don't really need it.

Just to make it real simple, I would start with the Android app - not the PC one. You will be asked for the file to zip (make sure it is on the supported list). Then before #5 above, I would still flash the DualBootEnable.zip. (not sure where it is ?).

I am not sure if you can skip over "duelboot" and go straight to Slot 1, but this is where you will have enough room for your preferred GE ROM (as long as you have space on you internal SD - at least a GB - preferable more). If you have to have a secondary first, simply flash noobdev ROM (which is already patched) per 7 above and do 8 & 9.

Then open the patcher app, set it for slot1, select the GE ROM you really want to patch, and let it patch it. Then do steps 5-9, and if it is a supported ROM, you are in business.

As for kernels, don't mess with any yet - see how the ROM works first. Then select and patch a supported kernel and flash it. If it messes up your GE ROM, just reflash the ROM, your data will be intact- so you are dirty flashing it back to where you were.

The above should get you going without being concerned (yet) about all the detail of what and where everything is.
[Galaxy S 4 i9505 Original Android Development] mr wizard:
[PATCHER][APP] Dual boot any ROM on all Galaxy S4 variants!

Thanks very much for the assistance. I am all tangled up reading too much I just need a straight forward response. Forgive me for saying but I am still lost on how to patch a rom and what app do I use, is it the dual boot patcher apk that I use? I have that installed and when I try the GE it says failed to patch zip file unsupported zip. Do I unzip the rom and place it on my sd card and then select what from there after I move the unzip file. So to be clear I thought the 2nd rom will be installed on the external storage card which I have more then enough room. Also after I patch the zip file and flash it won't it flash over the stock rom?

Thanks,

Thanks,
[Galaxy S 4 i9505 Original Android Development] monkteo:
I try to patch new rom BlackBox 2.2 for slot 1 , after 2 sec ready but i couldn't found the patched rom.

what is wrong ?
[Galaxy S 4 i9505 Original Android Development] gaww:
Make sure that you are using latest official patcher app (4.0 ot 4.0.1 should work ok). I am not familiar with the app - was it specifically mentioned as supported in the OP? If you use older app version, it may not have been supported by that. Do not unzip it - the patcher app does that and rezips it.

The second rom is installed in the /system partition in /system/duel. System is limited to 2.7 GB (not sure of exact size - the utility zip shows it though). The slot 1-3 ROMs are installed on the internal, so theat is why you need room.

If the GE you are using is unsupported, that the new patcher routine on the PC (again - use the latest one) can probably do it:

Android

Download the patcher apk and run it. It's very straight forward--only has one button to press ;)

Windows (GUI)

Double click PatchFileWindowsGUI.exe or drag the zip file you want to patch onto that file.

Mac (GUI)

The GUI is not supported on OS X yet. You can probably run the Windows version under Wine or Crossover though. Otherwise, you can use the command line version.

Windows (command line)

Drag the file you want to patch onto PatchFileWindows.exe

Linux or Mac (command line)

Change to the patcher's directory and run:

Code:

./patch-file.sh /path/to/file.zip

It says Google_Edition by_Jamal2367 is supported, but possibly not v6 - the list did not say. Again - try it with the latest patcher app version (as slot 1). If it sdays unsupported, then you have to try the other way above.

---------- Post added at 09:40 PM ---------- Previous post was at 09:37 PM ----------

If it is only 2 seconds, does not sound like it really did anything. Otherwise it would be where the app said it was. It should take much longer - mostly to patch the system app. Did you use latest patcher version (4.0.1 - or the latter unstable trials)?
[Galaxy S 4 i9505 Original Android Development] monkteo:
exactly 2 sec , I now it's not normal and yes I use 4.0.1(see the pictures)
[Galaxy S 4 i9505 Original Android Development] Bejda:
Probably not enough storage space where your zip is being patched.

Ok [MENTION=5448105]mr wizard[/MENTION],

No you don't have to unzip jamal rom, the unsupported zip issue is probably a simple name mismatch we'll just have to rename the zip a little.

The patcher expect a "Jamal2367" in the file name, how is named your zip?

Unless it's a simple thing for you to delete some system apps you don't need i guess we better do as Gaww said and patch Jamal rom as multislot1.

So first step for now is to open DualBootSwitcher.apk and use the "set current kernel>as primary rom" option, done already?
[Galaxy S 4 i9505 Original Android Development] mr wizard:
[PATCHER][APP] Dual boot any ROM on all Galaxy S4 variants!

It is named I9505_-_Google_Edition_v6_by_Jamal2367.zip I did change the name just to Jamal2367.zip but still got an error unsupported zip I know that name of the zip has to be just right for the patcher to work, any thoughts?

Thanks,
[Galaxy S 4 i9505 Original Android Development] Bejda:
Ah ok,I was downloading I9505_-_Official_Google_Edition_4.4.2_by_Jamal2367_Final-R1.1.zip lol but it will allows me to check things better anyway.

Time for me to finish download and test and I'll let you know.

Erm.. [MENTION=5448105]mr wizard[/MENTION],

I didn't get it was such an old build (ok 4.2.2..now i see lol sorry).

I can't see why unsupported right now but the fact that this build is prior to Chen dualboot solution existence could be part of it..

...don't you want another rom mr wizard?..please? ;)

On another side the latest Jamal GE build i downloaded gives same issue as reported here:

And it's not due to a lack of storage space so i was probably wrong here:

Edit: [MENTION=4277844]chenxiaolong[/MENTION],about this 2 sec "successful" patch with Jamal latest GE and android patcher 4.0.1 used on a TW rom here's a log:

http://pastebin.com/aexwQ5fr

It fails to extract boot.img apparently,the zip is an Aroma installer with a kernel folder at zip root containing Alucard and ktoonsez. Here's META-INF and kernel folder if needed:

https://app.box.com/s/o7mvwt95mva9umqusnul

Maybe it's ok on PC though (there was such stories with some GE roms iirc?) but i can't test right now..
[Galaxy S 4 i9505 Original Android Development] mr wizard:
[PATCHER][APP] Dual boot any ROM on all Galaxy S4 variants!

Ok I was just playing around with CM10 on the dual boot patcher 4.0.1 and it is working to patch the rom right now. So I need to figure out how to rename I9505_-_Google_Edition_v6_by_Jamal2367.zip to make this work. Any thoughts?

Thanks,

Edit Update: I am running CM 10.1.3 as the 2ndary rom with ktoonsez kernel and running stock TW with stock kernel as primary. It was working but now some issues. First when using the dual boot switch app to go into 2nd rom it would take me back to 1st rom when I restart the phone.The first step was I changed the kernel to 2nd and then next step changed the rom to CM 10.When I restarted it just loaded back to stock rom. Then I tried the dual boot utilities flash zip it work through there changing roms but after trying a few times with it, it would just kept bringing back to stock rom which is 1st. Also when I go back into CM 10 it will reset like i have to sign in all over again but everything stays the same on 1st rom like normal. Any thoughts?

Also I still would like to use I9505_-_Google_Edition_v6_by_Jamal2367.zip instead of CM 10 so any thoughts too on how to get boot patcher to recognize it?
[Galaxy S 4 i9505 Original Android Development] Alxoom33:
I tried patching Omega v. 19 as my primary and CM11. When I tried to boot into CM11 I got an error message three it is trying to load a non vzw os and failed. Also since the secondary rom is just the zip, kernel and gapps, where do you get the data for the secondary rom?

---------- Post added at 07:32 PM ---------- Previous post was at 07:31 PM ----------

That:) not three.
[Galaxy S 4 i9505 Original Android Development] gaww:
You would not patch your primary - just flash it. You would patch the CM11 as secondary - did you?

Data, as with any ROM - is reloaded through Google after you boot up the secondary (if you have backed it up with them) or with apps like titanium (do not restore any system stuff like settings). Then again, you can share user apps with the primary.
[Galaxy S 4 i9505 Original Android Development] alvin551:
+1 same thing happens here
[Galaxy S 4 i9505 Original Android Development] monkteo:
[MENTION=3648432]Bejda[/MENTION] , thanks for your answer but........

first answer (16Gb - more than 10GB free)

second on the row what can I do to use the BlackBox 2.2 rom?

THX
[Galaxy S 4 i9505 Original Android Development] Bejda:
Yeah I had same story soon after when I tested latest Jamal GE rom, not a storage issue.

BlackBox use an Aroma Installer also it seems?
[Galaxy S 4 i9505 Original Android Development] gaww:
Is the free space above on the internal SD ?
[Galaxy S 4 i9505 Original Android Development] monkteo:
Take a look.
[Galaxy S 4 i9505 Original Android Development] gaww:
The slots go on internal and you also have a bunch of space there - lol.
[Galaxy S 4 i9505 Original Android Development] monkteo:
OK perfect , but how can I fix the problem for this rom ?

HELP
[Galaxy S 4 i9505 Original Android Development] mr wizard:
[PATCHER][APP] Dual boot any ROM on all Galaxy S4 variants!

Not to be a bother but did anyone get a chance to read my post on page 200 Yesterday, 05:46 PM?

Thanks,