yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] :
I don't understand why, but whenever I try to flash an update to my primary ROM's kernel(TW 4.2.2 KT Kernel) on recovery, it just reverts back to the original kernel after I reboot
[Galaxy S 4 i9505 Original Android Development] angeloumbao:
Great work and keep it up! Compatibility for Phoenix rom on TW based rom! (Y)
[Galaxy S 4 i9505 Original Android Development] bulgareli:
Did you tried to set the new kernel in dualboot app?
[Galaxy S 4 i9505 Original Android Development] marcoxx626:
No it can't. And rooting has nothing to do with slowing down your device.

---------- Post added at 12:13 PM ---------- Previous post was at 12:10 PM ----------

It doesn't revert. You just have to use the switcher app to set the kernel again. Also, make sure you're only using the zip packages to wipe dalvik and cache for the primary rom and not the wipes that are built into your recovery.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Please try the newest utilities. That error should be fixed in the latest version.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Did you rename the zip file? The patcher detects the ROM using the filename. For AOKP, it expects the filename to be:

aokp_some numbers_some numbers_task650_date.zip
[Galaxy S 4 i9505 Original Android Development] ntajlis:
can you add this version of PA Rom: http://xdaforums.com/showthread.php?t=2405853 as well?

http://xdaforums.com/attachment.php?attachmentid=2273320&stc=1&d=1379793005
[Galaxy S 4 i9505 Original Android Development] abalosmusic:
I think ur looking for modacco ROM
[Galaxy S 4 i9505 Original Android Development] zhuchella:
ToALL

Some questions:

1. I'm using FoxHound ROM now. Should I patch this rom in case I wnat to use it as my primary rom ? Or I can use nonpatch primary roms and I have to patch only secondary roms ?

2. How can I update my primary and secondary roms to the new versions ?

3. If I have a foult during loading the secondary rom how can I switch to the primary ?

Thank U
[Galaxy S 4 i9505 Original Android Development] marcoxx626:
1. No only patch the secondary rom

2. For updating the primary rom use the Aroma tool he provides and wipe primary system, primary, cache, primary data, primary dalvik cache and then install the rom like normal. Some roms automatically wipe the entire system so you might have to reflash thr secondary rom but all your data will still be there.

To update secondary use the Aroma tool to wipe everything for secondary except maybe data (your choice) and then flash the update after its been patched for dual boot.

3. Use the Aroma tool and use the "switch to primary" option.
[Galaxy S 4 i9505 Original Android Development] jimmykar:
hi

one stupid question

i have the gt i9505 with MH6 latest firmware rooted

is it possible to use this dual boot application and cyanogen 10.2 like second rom?

because i just tried to do it and i had a black screen after install the second rom and boot the device!

i did something wrong ?

thank u very much

my free space is 7GB free

i did this

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

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

5.Reboot into recovery

6.Flash the patched zip files.

7.Reboot

.......and then i had the black screen!!
[Galaxy S 4 i9505 Original Android Development] Bejda:
Can you switch to primary rom or get black screen for both?

Two things comes in mind at first..

Could be wrong Philz recovery version maybe (wrong version to flash CM or other aosp rom) cause known issue is no bootanimation + no network.

But more probably an insufficient space left problem,location that matters is /system which is 2,7gb.

It is stated in op that if your primary rom is a stock (let's say a complete) Samsung firmware you may need to remove some system stuffs or convert system/apps as user apps to make some place before flashing secondary rom.

Check the place left you have under system with only primary rom installed,unzip cm rom zip to check the size of its system folder and do the math should give you the idea.

If no backup the dual-boot utility zip should help you to get back to your starting point
[Galaxy S 4 i9505 Original Android Development] jimmykar:
under system i have 330MB free,...and the file of cyanogen unziped is 320

my custom recovery is the i9505-cwm-recovery-6.0.3.2(0611).tar

do u think that the problem is the space?

thank you very much about your help
[Galaxy S 4 i9505 Original Android Development] Bejda:
Update your recovery version I guess ;)

Here as cwm zip:

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

Or here as .img that can be installed via sgs4 flasher app from market on a rooted device:

http://www.clockworkmod.com/rommanager
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
[MENTION=3648432]Bejda[/MENTION]

YOU're Awesome! I totally forgot to look to see if root was enabled!

Thanks dude!
[Galaxy S 4 i9505 Original Android Development] Lao Mayer:
I've been trying to install official MIUI 3.12.27 as secondary rom, but I think the system memory it's too low. After I install MIUI, Titanium Bakcup says the System ROM has 0 MB left and I'm not able to boot the secondary ROM.

Any way I can solve this?

Oh, and I can't patch this ROM: http://xdaforums.com/showthread.php?t=2397511

What am I doing wrong?
[Galaxy S 4 i9505 Original Android Development] rlorange:
Sure just delete boatware from your primary rom in system and/or remove bloat from your secondary rom zip before flashing
[Galaxy S 4 i9505 Original Android Development] Lao Mayer:
The primary ROM it's already de-bloated and even in this case I found another 4-5 apps to uninstall. I will have a look at MIUI's zip file and see what I can delete.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Did you check your space situation in a root for manager?
[Galaxy S 4 i9505 Original Android Development] respider:
thank you! I'll try that script...

I got dualboot.sh from here https://github.com/chenxiaolong/DualBootPatcher/tree/master/patches

is this the correct location?
[Galaxy S 4 i9505 Original Android Development] tvhak:
i realy don't know what i am doing wrong. all pathes worked. installed rom with dualsboot.zip

but it just keeps hanging on samsung. primary is ultra slim ( 500mb) and second rom is also 500mb
[Galaxy S 4 i9505 Original Android Development] Sushibagel:
So I know there is an easy fix in just reflashing a kernel for this but every now and then when I update the nightly on my system rom and continue on to set my dualboot rom back up I forget to backup the kernel again for my system rom and get stuck having to redo reflash everything since I don't use a custom kernel.

My question is does the dual boot switcher app store the baked up kernels somewhere that they can be easily just backed up onto my sd card as a just in case so I can just easily drop my backed up kernel into a folder from my secondary rom if I need to. Thanks in advance and keep up the great work Chen.
[Galaxy S 4 i9505 Original Android Development] `SBR`:
i don't know the Github file, take the dualboot.sh from Rom you're flashing

If my understanding is correct, when you use the Apk or windows flasher to create DualBoot, the dualboot.sh will have ref to System/Dual. if you jave created for Multislot1, then dualboot.sh has reference to Cache/multislot. So advice to use the dualboot.sh comes with your rom or create 3 or 4 separate zip for dual, Multislot 1 etc..
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The benefit is that you can install more ROMs. The system partition is 2.7 GB and the cache partition is 2.0 GB. If the ROMs you use are too big to fit together on system, the multi-slots can be used.
[Galaxy S 4 i9505 Original Android Development] freak.hh:
Thanks four answer.

Could you pls tell me how the correct way is to set the secondary Rom as primary. Plan is to delete the actual primary rom

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Yes it is. The

run_program("/tmp/dualboot.sh", "mount-system", "ext4", "/dev/block/platform/msm_sdcc.1/by-name/system");

line can be shortened down to

run_program("/tmp/dualboot.sh", "mount-system");

now (because the other two parameters are ignored). Other than that, your script looks fine.
[Galaxy S 4 i9505 Original Android Development] gaww:
PA gapps 12-30-2013

Just tried to patch PA gapps 12-30-2013 with 3.2.2 Apk and no luck - is it too new ?
[Galaxy S 4 i9505 Original Android Development] monkteo:
I want this as my second rom but ............................?(http://xdaforums.com/showthread.php?t=2557353)

when I try to patch the rom I got this .

Why ?

I try to patch this (http://xdaforums.com/showthread.php?t=2341026) the same !

Again why ?
[Galaxy S 4 i9505 Original Android Development] Bejda:
Only "PA Full" pack (or such name) was supported on 3.2.2 patcher version,search for latest patcher version (4.0.0beta5) on the thread it will support any PA gapps as long as there is (basically) "pa_gapps-" in the zip file name.

---------- Post added at 08:58 PM ---------- Previous post was at 08:49 PM ----------

Probably not supported as no one ever asked for it.

Check how things work by here,provide boot.img and META-INF folder from the rom + link to its topic and support will be probably added into next patcher vesion ;)

For now you could check what similar rom's are supported (GE it seems?) and rename the zip you want to flash like one of the already supported GE rom's.
[Galaxy S 4 i9505 Original Android Development] monkteo:
sorry for my insistence , what GE rom is supported for the moment ?

THX

PS . found it (change the name danvdh in Dandroid)
[Galaxy S 4 i9505 Original Android Development] enotar:
can you support this Rom: Phoenix v7 for S4?

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

Thank you so much
[Galaxy S 4 i9505 Original Android Development] gaww:
I remembered and tried that already. Patcher app still did not work, but the windows one did this time.
[Galaxy S 4 i9505 Original Android Development] Houndcatcher:
I tried to do a more recent Modular GApps with Beta 4 the other day and it failed using the renaming trick. I didn't have time to fiddle at the time this post has just reminded me. I will go have another try...
[Galaxy S 4 i9505 Original Android Development] Bejda:
I could patch (as multislot3 zip) all latest PA Gapps pack with DualBootPatcherAndroid-4.0.0beta5-jflte-signed.apk

I once said to beware of android 4.4 documents chooser apk,dunno but maybe a perms story if files are on sdext or such things..better choose the file manager of your choice (or try another one) to pick up files maybe.

For me Pa gapps zip's were on sdext,I choose them through root explorer and it went fine.
[Galaxy S 4 i9505 Original Android Development] omnifarious:
It IS supported, just rename it to Dandroid.
[Galaxy S 4 i9505 Original Android Development] Bejda:
[MENTION=4277844]chenxiaolong[/MENTION],

I never really followed ubuntu touch development but kept and eye on this thread while thinking that benefiting of a multiboot configuration we would be more at ease to test and try to help:

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

Apparently there's a "work-alone" zip now,could it be patched?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Fixed :) It will be in the next beta release.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Just finished implementing this. The kernels will be kept on the internal storage starting from the next beta release. This requires changes to all three components (the patcher, the switch, and the recovery utilities), so you'll need to grab all of them when I release the beta :)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks for the info! :highfive: I have this fixed for the next beta and I've also added ChronicKernel AOSP 4.4 filename to the patchinfo file.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The Kit Kat file chooser bug should be really easy to fix. Could you run the attached app, choose a file on sdext, and post a screenshot? The app will tell me how Android handles the path internally.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks for the META-INF folder! It will be supported in the next beta :)
[Galaxy S 4 i9505 Original Android Development] Lao Mayer:
Thank you, Chenxiaolong!

Any way you can point me how to patch this kernel? I need it to make the wifi work on my secondary rom, MIUI 3.12.27.

I tried with the latest Beta 5 patcher for Android, but it didn't work.

https://www.dropbox.com/s/0hn1ycf0mmrrcow/MIUI-Abyss-GT-I9505-1.6.1FSam.zip
[Galaxy S 4 i9505 Original Android Development] wind99:
Hi ChenXiaoLong,

Thanks for your great patch. I'm trying to patch aosp 4.2.2 from broodplank1337, but it said invalid zip. Any advise for this? I've plan using it with OMEGA and AOSP 4.2.2 from broodplank1337.

Thanks alot and Happy New Year!
[Galaxy S 4 i9505 Original Android Development] Houndcatcher:
I got similar here when I tried to patch a newer Modular GApps the other day. The file appeared to get patched OK but only took seconds but no file was produced.
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
Chen,

I'm seeing something weird, wanted to see if it's just me or if you know of what could be causing this:

My primary ROM is your CM11

Secondary is GoldenEye TW

Multi is Slim's 4

Any time i run delta update on your CM11 it updates and boots back up no issues.

If i try to switch to my secondary GoldenEye TW ROM in switcher it says kernel was written , reboot.

I reboot and it sits at S4 splash screen for about half a min, then reboots again and goes right into recovery.

Using recovery dualboot utilz to switch to secondary i still can't.

(Mind you i can switch to multi no issues from primary or from dualboot utilz in recovery -- but it's also AOSP and not TW like my secondary)

I end up having to re-flash my secondary every time i do delta update on CM11.

Then it get's weirder -

Ones i reflash secondary and apply kernel as secondary, i switch to primary (your CM11) and reboot.

Every time, WIFI is borked wont turn on.

I then have to boot into recovery and re-flash delta update file from opendelta directory, reboot again and this time wifi on CM11 works no issues.

Any ideas master Chen?

thank you!
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The Kit Kat file chooser sucks lol. It really tries to hide the actual file path. I ended up having to do some pretty ugly stuff:

@SuppressLint("NewApi")
private String getPathFromDocumentsUri(Uri uri) {
// Based on
// frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java
StorageManager sm = (StorageManager) getSystemService(Context.STORAGE_SERVICE);

try {
Class StorageManager = sm.getClass();
Method getVolumeList = StorageManager
.getDeclaredMethod("getVolumeList");
Object[] vols = (Object[]) getVolumeList
.invoke(sm, new Object[] {});

Class StorageVolume = Class
.forName("android.os.storage.StorageVolume");
Method isPrimary = StorageVolume.getDeclaredMethod("isPrimary");
Method isEmulated = StorageVolume.getDeclaredMethod("isEmulated");
Method getUuid = StorageVolume.getDeclaredMethod("getUuid");
Method getPath = StorageVolume.getDeclaredMethod("getPath");

// As of AOSP 4.4.2 in ExternalStorageProvider.java
final String ROOT_ID_PRIMARY_EMULATED = "primary";

String[] split = DocumentsContract.getDocumentId(uri).split(":");

String volId;
for (Object vol : vols) {
if ((Boolean) isPrimary.invoke(vol, new Object[] {})
&& (Boolean) isEmulated.invoke(vol, new Object[] {})) {
volId = ROOT_ID_PRIMARY_EMULATED;
} else if (getUuid.invoke(vol, new Object[] {}) != null) {
volId = (String) getUuid.invoke(vol, new Object[] {});
} else {
Log.e("DualBootPatcher",
"Missing UUID for "
+ getPath.invoke(vol, new Object[] {}));
continue;
}

if (volId.equals(split[0])) {
return getPath.invoke(vol, new Object[] {})
+ File.separator + split[1];
}
}

return null;
} catch (Exception e) {
Log.e("DualBootPatcher", "Java reflection failure: " + e);
return null;
}
}

@SuppressLint("NewApi")
private String getPathFromDownloadsUri(Uri uri) {
// Based on
// https://github.com/iPaulPro/aFileChooser/blob/master/aFileChooser/src/com/ipaulpro/afilechooser/utils/FileUtils.java
String id = DocumentsContract.getDocumentId(uri);
Uri contentUri = ContentUris.withAppendedId(
Uri.parse("content://downloads/public_downloads"),
Long.valueOf(id));

Cursor cursor = null;
String[] projection = { "_data" };

try {
cursor = getContentResolver().query(contentUri, projection, null,
null, null);
if (cursor != null && cursor.moveToFirst()) {
return cursor.getString(cursor.getColumnIndexOrThrow("_data"));
}
} finally {
if (cursor != null) {
cursor.close();
}
}

return null;
}

Anyway, I've attached a new test app to this post. It seems to be working fine for me now, although I don't have a working external SD for testing. Would you mind testing one more time?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
It will be supported in the next beta release :)
[Galaxy S 4 i9505 Original Android Development] Bejda:
Sure, pleasure is mine ;)

Same config as earlier.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Awesome, thanks! I'll compile a new beta release and upload it now ;)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Can you give me the exact filenames for the two ROMs? I may have missed some of the versions of Echoe when I added support for it.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
New beta release :) This brings quite a few changes, but most importantly, the kernels are now stored on the internal storage. This release should be 100% backwards compatible, but it's probably a good idea to reboot into each ROM and set the kernel in the switcher app again.

Dual Boot Patcher Changelog:

Android app: Keep screen on while patching

Android app: Use immersive mode on Kit Kat

Android app: New icons

Android app: Fix file chooser in Kit Kat 4.4.2

Mount /raw-cache as 'rw' so OpenDelta will work on my ROM

Consolidate a few of the extra scripts into one

Readd missing script that broke scripts in useful/

Store kernels in /data/media/0/MultiKernels/ (MultiKernels in internal storage)

Add support for ChronicKernel AOSP 4.4

Add support for Dandroid ROMs with filenames that begin with "danvdh-GE"

Add support for TouchliteGE

Dual Boot Switch Changelog:

Rewritten (old code was really crappy)

New icons

ROM chooser screen now shows ROM version

Dual Boot Recovery Utilities Changelog:

Prefer /data/media/0/MultiKernels over /system/dual-kernels
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
New Beta 3 looks great!

My observations...

Ones installed switcher in primary ROM and set primary kernel (You're CM11 ROM KT AOSP kernel) I tried to boot into secondary ROM and was unable. It sat at Samsung screen again for a while then rebooted and went straight to recovery (Secondary ROM: GoldenEye TW ROM with KTs TW kernel) had to reflash it again and boot into it. Set as secondary kernel.

Rebooted into Multirom 1 (Slims 4 4.4.2 with KTs AOSP kernel -same as I use for CM11 primary ) no problem booting into it and set kernel as multi1

My thought that somehow TW kernel was not backed up correctly and from previous post today the reason I'm having issues with TW secondary when I use delta updates on primary CM11? In any way ones I set secondary kernel rebooting into secondary is not an issue until I update primary again via delta?

Also small observation on changer app:

When in primary ROM and I click on change ROM the order and name of the Roms are correct:

I choose secondary and reboot into it..

Go into switcher app and now it shows my primary and secondary the same (secondary ROM):

Same with Multi: it shows primary with my multi name and multi with the same name:

Although even if I select my primary above even though it shows wrong ROM name it boots just fine into primary.

Sent from my SGH-I337
[Galaxy S 4 i9505 Original Android Development] Pump Ac7i0n:
Youre a beast dude. Whenever you get a chance chen, could you add smasher x, this rom http://xdaforums.com/showthread.php?t=2582645

I attached the meta-inf folder.
[Galaxy S 4 i9505 Original Android Development] enotar:
Phoenix Rom

Meta-inf attached

This Rom has many Note3 features I will use Echoe 2.1 KK 4.4.2 as my first Rom.

Thank you and Happy New Year
[Galaxy S 4 i9505 Original Android Development] Houndcatcher:
This new beta 7 Android patcher worked fine for me. Even managed to do a Gapps file that failed on the last one :)

Something I'm struggling with is patching the files via the Terminal on my iMac :( Am I missing something simple or is it more complex? Here's what happens...

Last login: Wed Jan 1 15:36:17 on ttys000
iMac:~ phil$ /Users/Home/Dual\ Boot\ Stuff/DualBootPatcher-4.0.0beta7-jflte/patch-file.sh /Users/Home/pa_gapps-modular-full-4.4.2-20131215-signed.zip
Traceback (most recent call last):
File "/Users/Home/Dual Boot Stuff/DualBootPatcher-4.0.0beta7-jflte/scripts/patchfile.py", line 66, in <module>
file_info = fileinfo.get_info(filename, config.get_device())
File "/Users/Home/Dual Boot Stuff/DualBootPatcher-4.0.0beta7-jflte/scripts/multiboot/config.py", line 32, in get_device
return get('Defaults', 'device')
File "/Users/Home/Dual Boot Stuff/DualBootPatcher-4.0.0beta7-jflte/scripts/multiboot/config.py", line 23, in get
return config.get(section, option)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py", line 567, in get
ConfigParser.NoSectionError: No section: 'Defaults'
iMac:~ phil$

Only just starting to learn to use the Terminal so be gentle. I've managed to fix most things so far and am quite happy using ADB up to a point but I'm confused by this. I know it's nothing to do with ADB but was just pointing out I can use the Terminal a bit :laugh: :confused:
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Hmm, that's a really strange issue. I can't imagine why a delta update would affect the secondary ROM. The next time TW reboots into recovery, can you flash the zip attached to this post? That will create 3 files on the internal storage /sdcard/dump.kernel.img - the current kernel, dump.last_kmsg.log - the kernel's log, and dump.recovery.log - the recovery's log. That should give me an idea on what's going on.

Thanks for the screenshots! I've updated my previous post with a newer version that should fix the issue. http://xdaforums.com/showthread.php?p=49004195#post49004195
[Galaxy S 4 i9505 Original Android Development] xn0live:
This work for ubuntu Rom?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks for the META-INF folder! Smasher X will be supported in the next release.
[Galaxy S 4 i9505 Original Android Development] Bejda:
It reminds me my reports about updating primary rom without "loosing" secondary one by editing its updater-script,last time i talked about it i had a last_kmsg that seemed pertinent to me:

http://xdaforums.com/showpost.php?p=48060034&postcount=1196&nocache=1&z=6147276882547885

I could reproduce this every time I updated primary rom with edited updater-script,never happened on your side?

You know it's not just stuck at Samsung splash screen as it often happens on s4,here there's a vibration + reboot to recovery.

Issue apparently fixed for me :victory:
[Galaxy S 4 i9505 Original Android Development] enotar:
I tried Echoe 2.1 KK 4.4.2 GE as first Rom and FoxHound 3.6 as second rom and that does not work. Stuck on boot after installing FoxHound.Patch of FoxHound 3.6 Succeed.

I thin KK is the issue
[Galaxy S 4 i9505 Original Android Development] Bejda:
Stuck on boot you mean device splash screen or bootanimation?

If stuck on Samsung splash screen did you try to force a reboot (looonng press on power button, sometimes several times until it boot fine).

If stuck on never ending bootanimation it could be that your /system partition is full,FoxHound 3.6 is a "full" touchwiz custom rom? Could you tell the size of its zip just to get an idea?