yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] Arpit_Gupta:
Help!

Every time i try to set default kernel, it shows: Failed to run command. What to do?
[Galaxy S 4 i9505 Original Android Development] tabish84:
Hi I just exchanged my 9500 with 9505 because of the ROM support. All I wanna know is there a way to share apps between the two ROMs because garaks dual boot supported that in 9500? Thanks in advance
[Galaxy S 4 i9505 Original Android Development] arnes_king:
If i try to patch it without renaming i get an error on the beginning of the process, if i rename it to Dandroid.zip (like i did before and it worked) it gets to the end of the process and says "Failed to patch the file" and Error: successfully patched file o.O But i can't find it anywhere and i don't know if it patched or not :S
[Galaxy S 4 i9505 Original Android Development] DevastatorTNT:
How did you root the dandroid ROM?

I tried with the last supersu zip but doesn't support... I also renamed the zip but the same :(
[Galaxy S 4 i9505 Original Android Development] tabish84:
I want to install cm11 as my second ROM so do I have to patch gapps using android patcher too?
[Galaxy S 4 i9505 Original Android Development] terminator1983:
Yes
[Galaxy S 4 i9505 Original Android Development] monkteo:
What version of patcher do you us?4.0.0 beta13 ?
[Galaxy S 4 i9505 Original Android Development] terminator1983:
can we share apps b/w roms.
[Galaxy S 4 i9505 Original Android Development] monkteo:
You don't need root, it's all ready rooted.
[Galaxy S 4 i9505 Original Android Development] arnes_king:
Oh, i just saw it, it's 3.2.2 :S

Edit: where is the download for 4.0.0 beta?
[Galaxy S 4 i9505 Original Android Development] terminator1983:
Download link of beta 13 is on this post

http://xdaforums.com/showpost.php?p=49315141&postcount=1779
[Galaxy S 4 i9505 Original Android Development] Cr4zY95:
Can add support for bobcat rom and taxelop kernel ?
[Galaxy S 4 i9505 Original Android Development] gaww:
You will have to search - there was a post a few days ago (might be a link in the OP now). Not only share duel-boot, but 3 more. I am sharing on Slot 2.
[Galaxy S 4 i9505 Original Android Development] DevastatorTNT:
No, it isn't. Super SU v1.89 isn't on play store yet...

Edit: solved renamed the zip "UPDATE-SuperSU-v1.80"
[Galaxy S 4 i9505 Original Android Development] Arpit_Gupta:
Every time i try to set default kernel, it shows: Failed to run command. What to do?
[Galaxy S 4 i9505 Original Android Development] visanciprian:
Oh, mate! It's looking incredible awesome!

Goodjob!:good:

Can't wait to test it ^_^

Cheers!:cowboy:
[Galaxy S 4 i9505 Original Android Development] gaww:
Had not focused on the fact that the noobdev ROM was being repatched for slot 1. Is it possible to copy and paste the data from secondary to slot1 ?

If not currently - would be a great feature to add to the Utility app.
[Galaxy S 4 i9505 Original Android Development] Mussels84:
anyone know if this will work with the new samsung leaked TW 4.4?

would like to install it as primary and then dual boot to GE, but not sure if it will work since the bootloader and such has changed
[Galaxy S 4 i9505 Original Android Development] visanciprian:
it should work, yes.

if you set your TW4.4.2 as primary, you can make use of your dual/multi-boot slots :)

the bootloader it is changed, but you can flash a custom recovery.

Cheers!:fingers-crossed:
[Galaxy S 4 i9505 Original Android Development] Mussels84:
ok so i'm willing to test the new 4.4 rom now that a kernel is out that lets me stay on the old bootloader, but if it doesnt work out i want to be able to restore my current rom.

how can i backup a primary rom to either

A: move it to secondary slot if 4.4 works out well

B: restore it to primary if 4.4 does not work out well

edit: requests for dual boot patching support on two files

1. Echoe V14 (touchwiz 4.4.2) - will upload required files for you to look at, if someone can tell me what they are

2. alien 'test' kernel they're using to get working wifi for above rom + old 4.2 bootloader https://www.dropbox.com/s/4rfyz1poy8c6pdk/test1.zip

additional edit:

filename for echoe v14 is "Echoe_v14_Jan182014"

boot.img was the needed file wasnt it?

meta inf added as well
[Galaxy S 4 i9505 Original Android Development] Bejda:
[MENTION=5269805]Mussels84[/MENTION],

Usually META-INF folder is needed also at least updater-script i guess but where does it fails with Echoe v14 and 4.0.0beta13 patcher version?

Unsupported zip? Rather something with Ramdisk maybe? I tend to think the only change needed for patcher support is justly something with boot.img wich are both stock Touchwiz 4.4.2 more or less modified ones.

So could you tell what error you get with patcher please, it's not that I'm able to help I'm just curious lol ;)
[Galaxy S 4 i9505 Original Android Development] visanciprian:
well yeah indeed, the only thing needed is the TW 4.4.2 kernel ramdisk modified. But I suggest you all wait for the official TW 4.4.2 with kernel's sources made public. Its release is rumored for the end of january, so not too long to wait :)

Cheers!:good:
[Galaxy S 4 i9505 Original Android Development] terminator1983:
i have installed the zip of shared apps for dual boot given in this thread. My question is that does the shared app zip install the apk on both rom's app folder or its sharing apps from the primary rom bcoz from wht i can see that the apps that i have installed after flashing the zip are appearing in both rom folders /data/apps and /raw-data/apps.
[Galaxy S 4 i9505 Original Android Development] Mussels84:
thanks, editing it into the post.

unsupported zip at first.

i renamed it to a previous echoE and just got a wall of text with mentions to the ramdisk

the previous echoe's were either 4.4GE, or 4.3TW - this is a new 4.4TW so i'm guessing changes are needed.
[Galaxy S 4 i9505 Original Android Development] Powerplayer1025:
Hi there I am fairly new to the community and I'm kind of a newb but I was wondering if you could ad support for sacs custom rom by chance it's a very popular tw rom and I was also wondering if there was a stupefied guide for a newb like myself thanks again for this awesome development and for not shunning me for asking these question's. TIA
[Galaxy S 4 i9505 Original Android Development] Powerplayer1025:
Thanks I figured out how to get sacs to work with another room I just made it the primary rom. I still would greatly appreciate a patch for sacs this is really some great work Thank you
[Galaxy S 4 i9505 Original Android Development] tabish84:
I could not find how to share apps between two rom . can anyone help me out here
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Version 4.0 final is finally done! I've been doing a ton of testing with the new GUI for the past week and it should be pretty stable now. It works great on just about every Linux distro and also on XP, Win7, and Win8. The GUI won't directly run on OS X though because I don't have a Mac to compile PyQt on, but the Windows version should run just fine under Wine or Crossover.

Downloads will be in tomorrow's post where I write the huge 3.2.2-to-4.0.0 changelog :D

One more thing: starting from the 4.0 release, my server will build unstable versions of the patcher (which I call "instantlies") as soon as I make any change. Those builds will let you see what's "next" and will also include support for ROMs that may not have reached a stable version yet.

EDIT: The 4.0 final release support no more ROMs than the last beta did. I only focused on stability and the GUI.

EDIT2: Source code commited for the impatient :) https://github.com/chenxiaolong/DualBootPatcher/commit/3f327640d67187addb87e683e710eb5c5f3f99d5
[Galaxy S 4 i9505 Original Android Development] tabish84:
Can you add support for mahdi ROM?

---------- Post added at 12:37 PM ---------- Previous post was at 12:36 PM ----------

http://xdaforums.com/showthread.php?t=2582596
[Galaxy S 4 i9505 Original Android Development] gaww:
You have to do some searching before you ask a question like this (again?). This was covered by several posts a while back. Go to #1793 and start reading.
[Galaxy S 4 i9505 Original Android Development] Mussels84:
thanks for the hard work on the new UI/fixes chen.

I hate to ask a second time, but is there a rough ETA for when the next patch that adds new roms will be? i'm hankering to try the new echoe rom i posted links to earlier.
[Galaxy S 4 i9505 Original Android Development] gaww:
I think this was mentioned earlier - but for now, why not swap the above and make 4.4 Echoe TW primary ? KitKat 4.4 is patchable now and works good that way.
[Galaxy S 4 i9505 Original Android Development] Mussels84:
because i'm so happy with the GE kitkat as my primary, and got it all setup perfectly.

if i could back it up and move it to secondary i would do it in a heartbeat, but i havent found a way to do that yet.
[Galaxy S 4 i9505 Original Android Development] gaww:
First in any case - make a new nandroid of your current setup.

I don't know if it is possible to copy and paste the data from your current folder to a secondary data folder or multiboot data folder, but with either or both Google backup/restore of apps and/or titanium - you could try restoring your user apps and data after you patch it and flash the secondary (per the OP).

First flash 4.4 TW (you might try dirty flashing first - it normally works) but format /system first. If not, wipe data, reflash, and restore data per the above.

I would give it a shot and see if you are back in business in a reasonable time without issues. Otherwise, restore you nandroid and wait for the TW to be patchable.
[Galaxy S 4 i9505 Original Android Development] bubba949:
The new patcher update shows the patching process and shows finished and location of patched file but when I go to find it it isn't there.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Which zip are you trying to patch? (Link please) Also, Windows, Linux, or Mac? Thanks!
[Galaxy S 4 i9505 Original Android Development] bubba949:
http://xdaforums.com/showthread.php?t=2544474 and I'm using the apk.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
It looks like the developer moved quite a few files around in the zip. I'll fix that in a little bit.
[Galaxy S 4 i9505 Original Android Development] bubba949:
OK Thank you.
[Galaxy S 4 i9505 Original Android Development] royredman:
Where is the new switcher apk for download (4.0)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
3.0 of the switcher is the latest :good:
[Galaxy S 4 i9505 Original Android Development] royredman:
Oh, my switcher app was outdated. Haha. Hey, how would I update from switcher 2.0 to the 3.0 version without having to wipe the phone and restart the process over again at linking the switcher with both roms?

Can I just install it over the outdated one and save the hassle?
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
Download the .apk. Make sure you have side loading allowed in security. Run the apk. Done.
[Galaxy S 4 i9505 Original Android Development] HearMeWhisper:
Will the delta updates from omni work of omni is on a slot?
[Galaxy S 4 i9505 Original Android Development] Mussels84:
wow the new 4.0 release looks amazing compared to the old one.

big thanks, you've put a hell of a lot of effort into this.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
It doesn't right now. The delta updates will only work for my ROM right now. I'm not sure how I'll handle Omni's updates yet since /system/app/OpenDelta.apk will need to be modified.
[Galaxy S 4 i9505 Original Android Development] royredman:
How do you make sure sideloading is enabled in security? There is nothing called sideloading in security?
[Galaxy S 4 i9505 Original Android Development] HearMeWhisper:
Make sure unknown sources is checked
[Galaxy S 4 i9505 Original Android Development] gaww:
How does one get into the auto patch mode ? All I get is unsupported zip - thought final version would give option to try to patch Roms not on the list.
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
Are you using windows patcher or apk?

AFAIK its only on windows.
[Galaxy S 4 i9505 Original Android Development] Technical:
Worked almost 100% with SlimKat (primary) and CM 11 (secondary) at GT-I9505.

Some zip for the 2nd are not supported: SuperSu 1.89, CM Gapps 4.4, PA Gapps mini 4.4, etc.

Is there a way to remove all secondary files using the DualBoot Aroma at recovery?

Thanks.
[Galaxy S 4 i9505 Original Android Development] Mussels84:
trying to patch some kernels for 4.4 tw, and they dont seem to work. tried a variety of settings but it all boils down to no boot.img in the zip files :/

any ideas on how to patch these?
[Galaxy S 4 i9505 Original Android Development] gaww:
Oops - did not see that.

Update:

Downloaded (on PC this time) Echoe_v14_Jan182014 and patched it for Slot 3 successfully - great job OP !

Flashed it OK, but it would not boot up. I think that is a function of the ROM vs my TMo US modem. Users in general are having issues with the new base of v14 if they do not have a compatible modem.

Going to try v13 which was setup on an earlier base.
[Galaxy S 4 i9505 Original Android Development] RK:
I tried patching kangkat and got this:

Detected Kangabean/Kangakat

--- Please wait. This may take a while ---

Modifying ramdisk ...Traceback (most recent call last):

File "C:\Users\rkamalapurkar\Copy\Android\AndroidTools\DualBootPatcher-4.0.0-j

flte\scripts\patchfile.py", line 90, in <module>

newfile = patcher.patch_zip(filename, file_info, partition_config)

File "C:\Users\rkamalapurkar\Copy\Android\AndroidTools\DualBootPatcher-4.0.0-j

flte\scripts\multiboot\patcher.py", line 250, in patch_zip

partition_config)

File "C:\Users\rkamalapurkar\Copy\Android\AndroidTools\DualBootPatcher-4.0.0-j

flte\scripts\multiboot\patcher.py", line 104, in patch_boot_image

partition_config

File "C:\Users\rkamalapurkar\Copy\Android\AndroidTools\DualBootPatcher-4.0.0-j

flte\scripts\multiboot\ramdisk.py", line 26, in process_def

os.path.join(OS.ramdiskdir, path))

File "C:\Users\rkamalapurkar\Copy\Android\AndroidTools\DualBootPatcher-4.0.0-j

flte\pythonportable\lib\imp.py", line 119, in load_source

_LoadSourceCompatibility(name, pathname, file).load_module(name)

File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper

File "<frozen importlib._bootstrap>", line 1022, in load_module

File "<frozen importlib._bootstrap>", line 1003, in load_module

File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper

File "<frozen importlib._bootstrap>", line 868, in _load_module

File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed

File "C:\Users\rkamalapurkar\Copy\Android\AndroidTools\DualBootPatcher-4.0.0-j

flte\scripts\multiboot\..\..\ramdisks\jflte/GoogleEdition/GoogleEdition.py", lin

e 4, in <module>

import multiboot.exit as exit

ImportError: No module named 'multiboot.exit'

Press Enter to exit.

any ideas?
[Galaxy S 4 i9505 Original Android Development] Mussels84:
i'm also having trouble with echoe v14 (which is TW 4.4) - v13 was TW 4.3.

the problem with v14 is that the kernel isnt flashing with the rom for some reason, for me it always boots back to the primary rom and the rom switcher app says no kernel is installed in the secondary.
[Galaxy S 4 i9505 Original Android Development] gaww:
I could not get it to patch when I set the ramdisk to TW. When I selected AOSP it patched ok ??? Probably why it would not boot.

Are you sure it (v13-v14) is TW - I submitted Wicked 9 to patch with TW ramdisk and it took ok\
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Darn it, I knew I was gonna screw up something... Anyway, it is fixed in version 4.0.1. I've attached that version to this post since I can't upload to http://d-h.st from school for some reason.

EDIT: I have a gigabit internet connection here at school and I can't upload a 13 MB file :/ The apk is attached to this post. I'll have to wait until I get home to upload the PC version.

EDIT2: Dropbox is awesome:

http://dl.dropbox.com/u/486665/Patcher/DualBootPatcher-4.0.1-jflte.zip

http://dl.dropbox.com/u/486665/Patcher/DualBootPatcherAndroid-4.0.1-jflte-signed.apk
[Galaxy S 4 i9505 Original Android Development] RK:
lol I know.. no matter how hard you check, there is always a typo somewhere.. :) Thanks for your efforts!
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
All the TouchWiz 4.4 ROMs are failing because I haven't had a chance to even look at the ramdisk yet :)

EDIT: Can someone please send me the boot.img from a TW 4.4 ROM?
[Galaxy S 4 i9505 Original Android Development] gaww:
https://www.dropbox.com/s/0cjb28ton4lu51v/boot.img
[Galaxy S 4 i9505 Original Android Development] bubba949:
Hi, after using dual boot utilities to remove a rom (liquid smooth) I have one folder from it remaining which I can't delete (see picture) why is that?
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
Did you try using Root Explorer to delete?
[Galaxy S 4 i9505 Original Android Development] bubba949:
Yes, I've tried changing permissions also with no luck. And tried using another app to delete it but still doesn't.
[Galaxy S 4 i9505 Original Android Development] gogua:
Thank you, but i can't see OmniRom at first post.

bye
[Galaxy S 4 i9505 Original Android Development] VillainDivine:
deleted
[Galaxy S 4 i9505 Original Android Development] Mussels84:
i just got sent some 4.4 roms to beta test before release, so having that patched would be wonderful :D

heres a link to the specific 4.4 TW kernel i'm trying to use (its for people on the old bootloader, so i cant use the stock one), in case your patcher cant recognise it.
[Galaxy S 4 i9505 Original Android Development] toxicpaulution:
I keep getting this. Primary rom is golden eye and secondary is PA Beta 3. I'm on PA and trying to switch back to GE but it's not turning out for me. Am I completely boned where I'll need to reflash both roms?
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
Did you set primary kernel while in primary ROM?

Also make sure you have root
[Galaxy S 4 i9505 Original Android Development] toxicpaulution:
Yeah I messed up the first time and didn't set it. But reflashed my backup and set the kernel then I rebooted and flashed the secondary rom. Set the kernel for that as well and when to swap to TW(primary) to make sure my nfc was working(I guess nfc is broken in PA) but when I went to swap it wouldn't let me. This isn't the first time using the duelboot but it's been awhile and changed a ton haha :p
[Galaxy S 4 i9505 Original Android Development] Bejda:
Check it you have /sdcard/MultiKernels/ with primary and secondary.img within.

It shouldn't be under /(raw-)system/dual-kernels/ anymore since DualBootSwitcher 3.0.0beta2 (3.0.0 from OP download link)

If your kernel are still stored under /system you should reflash primary rom and set kernel again or maybe try a previous DualBootSwitcher version just to switch,make sure you have latest switcher version installed on primary and set kernel again (+check if you now have /sdcard/MultiKernels/primary.img ).
[Galaxy S 4 i9505 Original Android Development] montolla:
My linux distro to try

Hello

I was try my own LFS, debian 7, ubuntu and arch.

Thanks
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Just copy the boot.img file from the GoldenEye zip to the "MultiKernels" folder on the internal storage (rename to "primary.img"). Then, you should be able to switch :)

EDIT: If you could tell me what''s inside the following folders, that would be great. I just want to make sure there isn't a bug in the app ;)

/raw-data/media/0/MultiKernels

/data/media/0/MultiKernels

/raw-system/dual-kernels

/system/dual-kernels
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Best Project ever. come such a long way from since I had my galaxy s 4, it makes me want to go back to it. Would there be any way that this could be used on the note 3???
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
Just to clarify is 3 beta 2 the latest on the switcher? Or 3 was officially released and is later than beta 2?
[Galaxy S 4 i9505 Original Android Development] naria01:
New to the S4, kind of confused...

So, if I'm understanding this right, this dual-boot method is for ALL variants with the Qualcomm? Now, I have a Rogers variants of the S4, SGH-I337M and I have attempted trying this (made backups just in case, and have had to revert). Is the Stock touchwiz ROM a no no? I'm attempting to use the Stock touchwiz ROM and a cyanogenmod 11 nightly. I have patched the files required to be the second ROM, and had ensured I made the touchwiz kernel and ROM the primary.

When I install the CM11 nightly, everything looks good... Recovery says that it's not installing as the primary ROM, and boots just fine. I set the CM11 ROM at the secondary ROM in the switcher app, and have tried making the kernel the secondary once, and leaving it alone the second attempt. When I boot back into recovery and use the ROM utility zip to switch to touchwiz, it says the kernel cannot be found, and asks me if I forgot to make it primary yada yada...

So I guess my major question is, is it even possible at the moment to do this on my phone?

Thank you for any help.
[Galaxy S 4 i9505 Original Android Development] gaww:
Not sure about your phone, but if patched cm 11 works OK.....

If you have a tw kernel only you can flash, do so. It should boot into primary. Then set it as primary kernel.

Don't know why you are switching roms in recovery - that is what the switcher is for.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Version 3.0.0 is the latest version, but it doesn't really matter because nothing has changed since beta 2.
[Galaxy S 4 i9505 Original Android Development] Mussels84:
had any luck with 4.4 TW?

since i feel like i'm nagging, a donation is coming your way

edit: 3X2474462M955572C
[Galaxy S 4 i9505 Original Android Development] Jsilver73:
Yes, I've had the same experience with aosp/ge ROM in first slot, manage to get second ROM booted then no way back as when I try to boot to either first or second slot it just takes me back to secondary ROM - only easy back is to wipe and reinstall primary/nandroid.

I would love to use dual boot so any help much appreciated, I can see many others see to be using this without much difficulty.
[Galaxy S 4 i9505 Original Android Development] gaww:
Again - if you flash primary kernel only (this leaves /system including/system /duel intact). it should boot up.

Note - in reflashing primary to update it, I have found at times duel boot flashing does no work right when reflashing the secondary. In TWRP, you should see it indicate duel boot enabled when you flash the secondary. At times this does no show, so the secondary apparently replaces the primary in /system. Just to be safe, I now always reflash enable duelboot before flashing duel boot secondary after flashing the primary.
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
If I'm not mistaking Chen added the enable multiboot script in his own cm builds so if you have that as primary its not an issue updating secondary. Other Roms he can't do anything about so that's why there is the flashable enable zip...
[Galaxy S 4 i9505 Original Android Development] bastardociccio:
is there a method to "switch to secondary rom" from shell script ?

i want to automatize with tasker or autoload from kernel...
[Galaxy S 4 i9505 Original Android Development] gaww:
If that is the case, then it is very odd.

I have only used his CM11 patched ROMs as secondary, but a number of times on flashing it did not show duelboot was enabled nor the next line in TWRP that shows it formatting /system/duel. When that happened, the primary was gone.

Maybe occasionally the is a problem with the script.
[Galaxy S 4 i9505 Original Android Development] toxicpaulution:
Can you take a look into the new unoffical Liquid kitkat? heres the link to the thread. CPA Poke added it, not the one in OP. http://xdaforums.com/showthread.php?t=2346998&page=69