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

Thanks for adding support to the above rom, however when trying to patch it with 1.17 im getting the below errors?.?

Any ideas?.?

Thanks :)

Detected Vertigo's AOKP ROM zip
Using patched AOKP ramdisk
--- Please wait. This may take a while ---
Traceback (most recent call last):
File "scripts\patchfile.py", line 536, in <module>
newfile = patch_zip(filename, fileinfo)
File "scripts\patchfile.py", line 225, in patch_zip
z_output.writestr(i.filename, z_input.read(i.filename))
File "C:\DualBootPatcher-1.17\pythonportable\lib\zipfile.
py", line 947, in read
return fp.read()
File "C:\DualBootPatcher-1.17\pythonportable\lib\zipfile.
py", line 625, in read
data = self.read1(n)
File "C:\DualBootPatcher-1.17\pythonportable\lib\zipfile.
py", line 679, in read1
max(n - len_readbuffer, self.MIN_READ_SIZE)
zlib.error: Error -3 while decompressing: invalid stored block lengths

Press any key to continue . . .
[Galaxy S 4 i9505 Original Android Development] Bejda:
Which rom? (Link is broken)

IceColdJelly?

Cause it worked for me with that rom + 1.17 patcher.

---------- Post added at 02:24 PM ---------- Previous post was at 02:14 PM ----------

Was Philz 5.15.0 but this same rom zip with same recovery worked fine once patched with 1.17 tool..
[Galaxy S 4 i9505 Original Android Development] emu1982:
My bad it was ice cold jelly

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

I'll have to try it again with the new patcher and see if I can get it to work.

Thanks
[Galaxy S 4 i9505 Original Android Development] cram42:
I tried this out last night.

I'm running rooted official MH8 and attempted installing CyanogenMod 10.2 nightly as a second ROM.

I followed all the instructions (well, I hope I read them correctly. Patcher said all good.:angel:) and it booted into CyanogenMod. I installed the switcher app and set the 2nd kernel. Then I selected the first ROM and rebooted. No dice, CyanogenMod. Again and again I get the second ROM.

So I ran the utils from TWRP and removed 2nd ROM everything. Reboot and...

stuck on Samsung logo.

Odin reflash, reroot and back to normal but... what went wrong?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
That looks like it's being caused by Windows reading files differently than Linux. Is the zip file stored on a different drive than the patcher?
[Galaxy S 4 i9505 Original Android Development] Bejda:
Before flashing anything did you installed dual-boot switcher apk on your initial MH8 rom and set its kernel (current kernel then) as primary rom kernel?
[Galaxy S 4 i9505 Original Android Development] NinjaOne:
Having the excact same problem. And the .zip file is stored in the same folder as the batch file.

Tried with my own Windows 7 x64 and my girlfriends xp... Same problem with 2 different versions of Foxhound.

Sendt fra min Nexus 7 med Tapatalk 4
[Galaxy S 4 i9505 Original Android Development] marcoxx626:
Hey Chen, just wondering why don't you make a note that people should use touchwiz roms as primary roms only? Seems like it's more trouble than its worth for you, especially considering that most touchwiz roms are too big to dual boot with other touchwiz roms anyway. A lot of touchwiz roms also have aroma installers and make the entire process more complicated for you and for users that don't know what to do. It'll also save you a lot of work with making mods in flashable zips compatible for dual boot as well (which are almost all for touchwiz).

Just seems that there are so many roms being requested, and you have to keep updating the patcher when users could simply use their touchwiz rom as primary and other roms (aosp, aosp, miui, etc) as secondary ( as I'm sure this is the setup most people use anyways) Just my two cents :)
[Galaxy S 4 i9505 Original Android Development] emu1982:
No Chen, I always copy the rom zip files to the same folder as the Dual patcher batch

file. Just seems to error with this particular rom under Windows.

Thanks
[Galaxy S 4 i9505 Original Android Development] RK:
chen,

Line 33 in replaceramdisk.py should be

xz = os.path.join(patchfile.binariesdir, "xz.exe")

instead of

xz = os.path.join(binariesdir, "xz.exe")

Also,

In the newer versions, replace-ramdisk.bat gives me this error:

Replacing ramdisk with touchwiz.dualboot.cpio

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

Traceback (most recent call last):

File "..\scripts\replaceramdisk.py", line 80, in <module>

new_file = patchfile.patch_zip(filename, file_info)

File "C:...\DualBootPatcher-1.17\scripts\patchfile.

py", line 185, in patch_zip

files_to_patch = files_in_patch(file_info.patch)

File "C:...\DualBootPatcher-1.17\scripts\patchfile.

py", line 81, in files_in_patch

f = open(os.path.join(patchdir, patch_file))

IOError: [Errno 2] No such file or directory: 'C:...\\DualBootPatcher-1.17\\scripts\\..\\patches\\'

Press any key to continue . . .

Also, any way to patch ramdisks of loki'ed kernels?
[Galaxy S 4 i9505 Original Android Development] cram42:
Yes I did. I'll have another go today and let you know the result.
[Galaxy S 4 i9505 Original Android Development] Dolphin87:
thanks :good:

gonna give it a try
[Galaxy S 4 i9505 Original Android Development] marcoxx626:
I'm trying to manually patch the new version of liquid smooth and I managed to do all the script edits. Only thing is I don't know which ramdisk to choose when modifying the ramdisk...does it matter?
[Galaxy S 4 i9505 Original Android Development] zhuchella:
chenxiaolong

Can U add support for http://xdaforums.com/showthread.php?t=2346995 and for gapps for this rom ?
[Galaxy S 4 i9505 Original Android Development] NightForce:
Dual Boot Patcher for the NOTE 3????

hi, i read this http://www.go2android.de/root-dual-boot-patcher-rom-switch-leicht-gemacht/ about your dual boot patcher and i will test it with my note 3 but when i will patch the latest CyanogenMod 11 nightly it says the rom is not supportet. i can´t patch it manual. is it possible to make it work with the note 3?? or have anybody test it with a note 3??? :confused::confused:
[Galaxy S 4 i9505 Original Android Development] lpdavidgc:
Crash when I clic on patch... note 3
[Galaxy S 4 i9505 Original Android Development] peppe130:
Awesome work! Keep going this way chen :)

I've just seen your new project.. So many news since the last log in!

I managed to install Custom ROMs without tripping Knox. It was an hard work but with my mates's help, I reached a great goal!! Now I'm trying to install patched ROMs. Tomorrow I will let you know. Tomorrow we will know the truth!!
[Galaxy S 4 i9505 Original Android Development] Technical:
Quick switch between ROMs

[MENTION=3648432]Bejda[/MENTION], can your apps be converted in a single widget?

If not, maybe some future settings could be asking for confirmation.
[Galaxy S 4 i9505 Original Android Development] CZ Eddie:
If you read the thread, you'll see that the developer is going to fix the Note 3 crash in the next release.

It looks like that was going to be 8.1 but now it's going to be 9.X?

Wait for the update and try again like the rest of us Note 3 folks.
[Galaxy S 4 i9505 Original Android Development] NightForce:
Okay i will wait for the update!
[Galaxy S 4 i9505 Original Android Development] MohamedN:
People reported that Dan GE is supported, however when I try to patch it as dual rom it says it fails in the third step of patching giving this error

Failed to patch file

Name 'os' is not defined

....

Echoe TW is my primary rom

Already set the kernel for primary

Plenty of system space available.. Over 1gb

Any ideas?
[Galaxy S 4 i9505 Original Android Development] Jsilver73:
I run Dan's ge in secondary, patched it as custom with Google experience/Dandroid ;)
[Galaxy S 4 i9505 Original Android Development] MohamedN:
Already tried that, gives the same error
[Galaxy S 4 i9505 Original Android Development] monkteo:
exactly the same here.
[Galaxy S 4 i9505 Original Android Development] MohamedN:
Little reading wouldn't hurt :D

It was a problem that get fixed in the latest snapshot.

Apologies for not searching first.
[Galaxy S 4 i9505 Original Android Development] monkteo:
can provide a link to that patch ?
[Galaxy S 4 i9505 Original Android Development] Jsilver73:
Open my signature to find the link ;)
[Galaxy S 4 i9505 Original Android Development] monkteo:
MAN you are my savior !

PS but stile no possibility to patch (http://xdaforums.com/showthread.php?t=2557353) Danvdh GE

PS2 I manage to install the ROM.

THX
[Galaxy S 4 i9505 Original Android Development] Technical:
Can anybody say why I can't patch the attached file?

It's a .zip file to uninstall ROM bloatware. It works in the primary ROM, not in the others. Error is in the screenshot.
[Galaxy S 4 i9505 Original Android Development] Jsilver73:
Well, I'm running snapshot 8.0.0 r90 and patched latest ge Dandvh with that one and it's running and boring fine for me in secondary.

Did you change custom settings to 'Google experience/dandroid' that's what I did to get it booting, oh yeah, use twrp as Dan only supports that recovery and I remember seeing people having difficulties trying to install it with cwm based.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
I'm running with snapshot 8.0.0 r99, I patched and installed CyanHacker in MultiSlot 1, the problem with this rom got stuck on the Samsung logo. To get out of this mess, I installed the kernel Alucard AOSP v2 patched with the same snapshot, it did but I wanted to point out that there is a problem with the patching of the Rom. Otherwise, no issue!
[Galaxy S 4 i9505 Original Android Development] Technical:
I could patch both Alucard and Googy kernels. I've used to do with KT.

Neither of them are working good since August, 3rd due to CM changes. I got freezes, FC, etc. in all patched ROMs.

On primary, lose of WiFi or Bluetooth.

Well, nothing but problems.

Right now, I'm staying with default ROMs kernels.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
The kernel Alucard 1.0c for AOSP v2 works fine... no issue at all!

---------- Post added at 10:53 PM ---------- Previous post was at 10:35 PM ----------

[MENTION=4277844]chenxiaolong[/MENTION]

I redid a text of Transifex dualboot Patcher for French. He had not been done correctly at the last update (for some reason). I hope it will be taken in the next update.

The text in question:

Or, in english:

I think it's better like that!
[Galaxy S 4 i9505 Original Android Development] Technical:
Well, I've tested on SlimKat, Carbon and CM 11 (nightly). All problematic: freezes, sluggishness, etc.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
I've tested it with CyanHacker, the rom works fine and very smooth.
[Galaxy S 4 i9505 Original Android Development] Technical:
As we can see, it's does not work 100% all the time :o
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Maybe, I don't know, I didn't see an issue.
[Galaxy S 4 i9505 Original Android Development] Technical:
You're not considering my personal experience... You can "know" and learn by others' experiences. ;)
[Galaxy S 4 i9505 Original Android Development] Adizzzle:
Still dualbooting like there's no tomorrow!

Pure awesomeness! No bugs on my end!
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
I can't promise anything, but I hope to get an early preview of the rewritten patcher this weekend. In the meantime, some benchmarks on the PC:

(Speed improvements should be more noticeable on Android)

EDIT: I should also point out that the patcher no longer uses an extract->patch->compress process. As soon as it starts patching, it immediately starts writing the new zip file and when it reaches a file it needs to modify, the file is extracted to RAM and patched. This gets rid of all the stupid file copying that the patcher used to do (which is very slow on the phone's eMMC storage).

EDIT2: This also means the progress bar actually shows the progress now :) (ie. it doesn't get stuck at 0% or 100% making you wonder what's happening)
[Galaxy S 4 i9505 Original Android Development] franzyroy:
I'm agree !
[Galaxy S 4 i9505 Original Android Development] franzyroy:
[MENTION=4277844]chenxiaolong[/MENTION]

Can you just update the translations from Transifex, please? That I see if the french has been corrected!

Thanks! ;)
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Hi all,

I had not re tested the sharing apps from the secondary, since a lease. I just installed PAC MAN Rom on multi slot 1, so I shared the secondary apps (which I do not have the primary as useless on it) with multi slot 1 it worked great Okay.

Thanks [MENTION=4277844]chenxiaolong[/MENTION] for that! ;) With some delays, I guess. :D
[Galaxy S 4 i9505 Original Android Development] sronweb:
What about time issue reported here for CM11 users (post 4985 and on)

http://xdaforums.com/showthread.php?t=2559336&page=499

I have this problem too but no issue if I start with primary rom which is Shostock 8.0.

CM11 is my secondary rom but the most used in reality. Is there any correlation with dual boot patching possibly?

Other CM users non in dual boot did not report any issue with time settings while at every reboot my clock is some hours wrong, then I need to synchonize with a connection but in the meanwhile I'm getting wrong time errors from 3G watchdog and also other annoying messages.

Anyone having the same experience? I hope I didnt miss this discussion already.

Thanks
[Galaxy S 4 i9505 Original Android Development] DeuXGod:
Subscribed in the hope of seeing it work in the Note 3 N9005 soon :D
[Galaxy S 4 i9505 Original Android Development] lpdavidgc:
Yep I too [emoji1]
[Galaxy S 4 i9505 Original Android Development] jigsawcrank:
same here, I'm already debloating my system partition:cool:
[Galaxy S 4 i9505 Original Android Development] lalit.kultham:
v8 FCs when I tap "Patch Zip" in Spirit ROM.
[Galaxy S 4 i9505 Original Android Development] MohamedN:
Try latest snapshot or better wait for v9
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Erase app's datas in app manager!
[Galaxy S 4 i9505 Original Android Development] lalit.kultham:
It does work perfectly on M9.

---------- Post added at 10:09 PM ---------- Previous post was at 10:09 PM ----------

Thanks. I'll try.
[Galaxy S 4 i9505 Original Android Development] lalit.kultham:
Didn't work even after clearing data. Should be a rom issue.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
You can still try to erase the datas, uninstall/ reinstall the app to see what it does.
[Galaxy S 4 i9505 Original Android Development] lalit.kultham:
Tried but no success.

Are you using spirit rom too?
[Galaxy S 4 i9505 Original Android Development] franzyroy:
No, but it's weird to have an issue just on a rom!
[Galaxy S 4 i9505 Original Android Development] lalit.kultham:
Ya. I am thinking the same as well. Used the app on almost every aosp rom without any problem except spirit v1.2/v1.3.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
I don't understand why there is this issue. Maybe an issue with this rom, but what issue, a wrong installation? I don't know! Not easy to explain it...
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Another week has passed, so time for another update :)

The 9790 lines of the old patcher code has now been completely ported over to the new patcher framework. All that's left is the (relatively) little bit of GUI code.

EDIT: The new patcher code is designed to be translatable from the start (pretty bad mistake I made last time...)
[Galaxy S 4 i9505 Original Android Development] lalit.kultham:
Installation is fine. I tried it several times. The same problem was on previous version of the rom also. You can try the spirit rom 1.3. A very good rom
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Yeah why not !
[Galaxy S 4 i9505 Original Android Development] lpdavidgc:
Waiting for test [emoji1]
[Galaxy S 4 i9505 Original Android Development] monkteo:
Hi, I have a question ?

if I have 4 rom installed in my phone with dual boot (everything work perfect)

so if I erase 1 slot (let's say multislot 1) can I move the rom from another slot (let's say multislot 2) to multislot 1 ? or from multislot 1 or 2 to secondary ?

THX
[Galaxy S 4 i9505 Original Android Development] eclpsues:
I have dualboot. Primary GE rom and secondary, CM11 based rom.

i booted to secondary to try flash a custom kernel but it doesnt seem to work.

What does it need? Do i need to patch the kernel first? btw, i patched the kernel but still doesnt work.

Any ideas?
[Galaxy S 4 i9505 Original Android Development] Technical:
Since August, 3rd, CM changed its kernel and 3rd party kernel are no more fully compatible.

Anyway, kernel must be flashed after the ROM to survive, otherwise the default ROM kernel will overwritten it.

What do you mean with "doesn't work"?
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Maybe it doesn't boot, it hangs at boot, or something like that!

Which is the kernel that you've tried?
[Galaxy S 4 i9505 Original Android Development] gaww:
You can do that with duel boot backup and restore:

http://xdaforums.com/showthread.php?t=2491299&page=21#post54778418

Or you can simply wipe the slot, patch the ROM you want there, and flash it. If you share apps, it is easy. If not and you are using different types of ROM, you may have to wipe data also and restore it manually.
[Galaxy S 4 i9505 Original Android Development] Okaham:
Is there any way I can backup my primary and/or secondary ROMs in the regular recovery format? I think they're usually backed up as zip files, but the DualBoot Backup app that I used from the OP backed them up into 3 .tar images? I'm not sure if those are compatible the recovery.

TIA

oh yeah, and how do I uninstall this patch entirely? Thanks!
[Galaxy S 4 i9505 Original Android Development] gaww:
Regular recovery backs up all your ROMs as-is. What do you mean by "uninstall the patch' ?

If you flash an unpatched ROM, it will install over your primary and wipe your secondary (except for its data). Wipe that with the tool from the OP.
[Galaxy S 4 i9505 Original Android Development] Okaham:
Thanks for the input, I know that regular backups backs up all the ROMs, that's why I'm asking if there's a way to use the backup tool in the OP to backup into a .zip file instead of 3 .tar files in one folder. Or...are those tar files compatible with regular recovery? Meaning, can I restore in regular recovery with those tar files? Thanks
[Galaxy S 4 i9505 Original Android Development] gaww:
You might want to ask in that thread, but i don't believe so.
[Galaxy S 4 i9505 Original Android Development] sad_ryu:
I've tried searchiong through this massive thread so I apoligies if I've missed it.

Are there any plans to port this to other devices? A oneplus one version would be amazing.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
If you intend to rewrite all the code lines for your model, yeah why not! Because it doesn't seem to me that all the devices are made ​​of the same structure. It's already the case with the firmwares, one per model.
[Galaxy S 4 i9505 Original Android Development] Shanks:
Have you tried it on your device? If not.. Go ahead and try, it might work.. Who knows, if it doesn't just reflash your kernel or rom and you should be fine..

Note: I'm not asking you to do it, just my thoughts
[Galaxy S 4 i9505 Original Android Development] franzyroy:
I don't think !

Send from my GT-I9505 using Tapatalk
[Galaxy S 4 i9505 Original Android Development] Shanks:
OK
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
My OnePlus One just arrived yesterday, so yes, the patcher will be ported to it :)
[Galaxy S 4 i9505 Original Android Development] franzyroy:
You still will work for the S4? Or your application will enable to do it on different models?
[Galaxy S 4 i9505 Original Android Development] sad_ryu:
Brilliant news! I'll keep my eyes on the oneplus one forum so :)
[Galaxy S 4 i9505 Original Android Development] Bejda:
Well he already own a Nexus 5 besides is S4 i9505 and patcher already works on N5,LG G2 and Moto G
[Galaxy S 4 i9505 Original Android Development] franzyroy:
You're right!
[Galaxy S 4 i9505 Original Android Development] lpdavidgc:
For when the 9.0 version?
[Galaxy S 4 i9505 Original Android Development] sronweb:
When it's ready. First rule of xda: never ask for ETA
[Galaxy S 4 i9505 Original Android Development] gaww:
Especially when the OP just bought a new phone - lol.

Just hope he stays with us poor old (stuff) S4 owners.
[Galaxy S 4 i9505 Original Android Development] jigsawcrank:
I hope the new version will also work with note 3(n9005)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Then you have nothing to worry about since I will never abandon the S4 until mine no longer turns on :)
[Galaxy S 4 i9505 Original Android Development] DeuXGod:
+1 waiting impatiently :D

Sent from my SM-N9005
[Galaxy S 4 i9505 Original Android Development] dicko101:
general help with Dual Boot for I9505

Hi guys, I hope you don't mind this post, I have done a fair bit of research but a lot of the threads concerning dual boot seem to have gone cold so I thought I'd post some questions here if that's ok.

I'm currently running Echoe v26 on my S4 but I would like to update Echoe to v29 (haven't looked at the changelog yet, about to now) and dual boot it with P.A.C man rom, it seems like there are (or were, not sure) two ways to go about it, Modaco switch, or this Patcher app, I'm not sure which, if either, is more stable/functional/effective and I have a few questions regarding dual boot in general.

1. how safe/stable is any method of dual boot? is there a preferred method?

2. can I restore to my current backup and its current state easily if I want/need to revert back to just one rom?

3. do I have an option whether to share system or user data or not? does this impact the usable system memory for system or user apps much or the space available for the secondary rom? also does sharing data cause compatibility issues between roms?

4. does dual boot its self affect general performance/battery life?

5. any other issues I should know about?

I think there were more questions but I cant remember.

I hope this is all well received because I don't spend much time on forums and its hard to judge what people do/don't want to see on a thread, if its the wrong place for this I apologise, thanks in advance for any help everyone.
[Galaxy S 4 i9505 Original Android Development] brokenchains:
Forget about Modaco Switch it's never happening. IIRC the dev received a boat load of donations and then disappeared. chenxiaolong is a way better dev and one of the most responsive and helpful guys around here.

1. Very stable for normal usage, less so in my experience when using this patcher's app sharing between ROMs. Usually Google apps for some reason, but the dev is working on this and it's totally optional. Most apps don't have issues and you can always disable ones that do.

2. Yes. Nandroid before you do the dual boot just in case but I believe you can just flash the aroma zip utility and choose to wipe the secondary ROM and go back to normal.

3. Like I said, app sharing for the most part works fine but some apps seem not to like it. There are better posts in this thread about the way the sharing works but essentially you're only sharing the apk - not the data. He's working on that. Still a big space saver.

4. I haven't noticed any affect on battery life or performance, probably depends on the capabilities of the ROMs you choose and if you install kernels or mods, same as anything else.

5. Read the OP, especially the instructions. That's pretty much it. Honestly the process is stupidly simple and hugely awesome. The best thing I've ever done with my phone. Now TW gets to suffer at the bottom of a well until I need it while I run a stable and fast CM11 build with the new theme engine.

Essentially nothing this procedure does can break your phone, especially if you follow the directions. It can all be undone so give it a shot. That's the best way to see what all the buzz is about.

This was all typed on a GS4 - I'll accept your applause.

EDIT: typos