yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] Bejda:
Chen once made it possible + delta updates on his rom if i remember well but here's it's 3rd party apps and unless we tweak them..

I presume the problem is that it works through openrecovery scripts.

Scripts are pushed to /cache/recovery folder and automatically detected&launched when recovery boots.

The problem that if you use such app on secondary or multislot rom it will install scripts to /cache/dual/recovery if you're on secondary rom and under /system/multislot*/cache I'd you're on multislot rom.

Recovery only sees our "real" cache partition then doesn't detect them.

Patched zips aren't the problem,you can use such app from primary rom,from where it works fine, to automatically install secondary/multi patched zips.

If we use the app on secnd/multi rom we would need that the app installs its openrecovery to /raw-cache/recovery/ for it works, one very little workaround (but kinda breaks the automatisation purpose of such apps) could be to use the app but once openrecovery script installed to the rom we're currently running /cache partition to move it to /raw-cache/recovery and then reboot to recovery..

I just tested with ZipInstaller but it seems the recovery script is installed only right after you press reboot (and probably deleted once used)...so no way to manipulate it before boot2recovery.

I'll try TWRP manager also ;)

Another way could be to create our own openrecovery scripts and then be able to push them where we want:

http://wiki.rootzwiki.com/OpenRecoveryScript

I knew a little about this thanks to Philz thread but never tried to create openrecovery scripts by myself for now...could be fun lol.
[Galaxy S 4 i9505 Original Android Development] Jsilver73:
Chen said there may be issues with sharing paid apps because of the DRM's whatever they are :confused: - I have had problems with tasker - lux and xposed additions, my workaround is to 'unshare' them, uninstall them from the individual ROM's (else they keep reappearing on reboot) and then install them from play store individually from play on each rom I want them on, then restore data only from TB. This seems to work :good:

---------- Post added at 07:07 PM ---------- Previous post was at 07:06 PM ----------

This sounds interesting, good distraction for procrastination rather than writing my assignment before I fail my course haha
[Galaxy S 4 i9505 Original Android Development] Technical:
Yes, this works.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Ahh, it was an issue with Windows (as usual lol). It should be fixed in 7.0.0.r150.g912310f.

(Ant I'm an idiot... didn't even notice that I downloaded the oldest version of the ROM...)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
7.0.0.r151.g9787cbc ;) I've also added support for the Google Edition and TouchWiz variants.
[Galaxy S 4 i9505 Original Android Development] Jsilver73:
Chen, if you are an idiot what does that make us simple folk who can't even string one line of code together.

You my friend are definitely not an idiot :cool:
[Galaxy S 4 i9505 Original Android Development] sronweb:
I would say just a genius!
[Galaxy S 4 i9505 Original Android Development] gaww:
FYI - I had first tried it with the other GUI (unless you mean windows in general and not just the WindowsGUI).
[Galaxy S 4 i9505 Original Android Development] Bejda:
Hello :)

Don't know for others but i don't see any version above 148 on the Dropbox link, lack of patience on my side or..? ;)
[Galaxy S 4 i9505 Original Android Development] gaww:
Uploaded to your dropbox link yet - not that I am in a hurry - lol ?

Opps - Bejda beat me to it (he is in a hurry though).
[Galaxy S 4 i9505 Original Android Development] Bejda:
Lol, same for everyone then? Nothing newer than 148?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
One sec, let me run down to the basement and give that Pentium 4 machine a kick :D

EDIT: Well, abusing the computer works. It's compiling and uploading now :) https://jenkins.cxl.epac.to/job/DualBoot_Patcher/188/console
[Galaxy S 4 i9505 Original Android Development] Bejda:
149 appeared right after your post lol,was funny.

151 is also up now,thanks for the kick ;)
[Galaxy S 4 i9505 Original Android Development] kosako17:
Will you add support for htc one port? :)

Enviado desde mi GT-I9505 usando Tapatalk
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The Paranoid Android Gapps is now supported in 1.14.1 and Kangabean is supported in 1.14.2.

***IMPORTANT: If you patch Kangabean, you MUST patch and flash a custom kernel afterwards. The reason is that the bundled kernel is pre-loki'd (rather than loki'd during flashing, like AOSP ROMs). The unpackbootimg tool can no longer understand the format of the boot image, so I can't replace the ramdisk inside of it. (btw, this is also why unlocked bootloaders can't boot loki'd kernels)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Sure ;) Could you post a link to it?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Would you mind installing XCode on your Mac? I can walk you through compiling the two tools so I can bundle them with future zips. Only a couple commands need to be run after installing XCode ;)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Version 1.14.3 of the patcher is uploading now ;)
[Galaxy S 4 i9505 Original Android Development] kosako17:
Of course! :D

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

Enviado desde mi GT-I9505 usando Tapatalk
[Galaxy S 4 i9505 Original Android Development] DreenHotdog:
Hey, does anyone know how I can switch my primary ROM around to a different one? Will it mess any thing up or will I have to lose all my data from losing the secondary ROM?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Sense ROM v2 now supported in version 1.15 of the patcher :D
[Galaxy S 4 i9505 Original Android Development] emu1982:
Hey Chen,

Just wondered if you hzd added the below ROM in the update as mentioned earlier in the thread:

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

Thanks again for the work, amazing tool. :D
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Not yet, but that one is next on my list. Already have it downloaded :D
[Galaxy S 4 i9505 Original Android Development] kingzain900:
Thank you so so so much!!!!! I got it working. You are the best man! :D

So now we have two phones in one! (well almost hahaha)

EDIT: I seem to have broken something. I rebooted the secondary ROM and now it doesn't want to boot. So I cleaned up /system and /data and flashed the HTC ROM again. It doesn't boot at all (even after 20 mins). Any ideas? Thanks.
[Galaxy S 4 i9505 Original Android Development] kosako17:
GREAT!!!! :D

Enviado desde mi GT-I9505 usando Tapatalk
[Galaxy S 4 i9505 Original Android Development] DeBuelo:
Support for Sprint Roms

Can you add support for Negalite Wonder Rom r60 and Pacman nightlies and Pacman 4.3 GAAPS

NegaLite

download.negalite com/downloadlist/click.php?id=65

Pacman

http://xdaforums.com/showthread.php?t=2312063
[Galaxy S 4 i9505 Original Android Development] GhiGo65:
:good::good:

great man... this is what i was looking for...

now i can have echoerom and carbonrom together on my device
[Galaxy S 4 i9505 Original Android Development] Pump Ac7i0n:
This is amazing. We can have the both of both worlds (Aosp & touchwiz and others.) Do you think can add support for.

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

and/or

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

Thanks again for this
[Galaxy S 4 i9505 Original Android Development] schizovivek:
issue with gapps (4.2.2)

I was successfully able to flash a secondary ROM (JellyBeer build16)

Now im trying to flash the gapps .. I am not getting any gapps for the zip i flashed .. i tried the patcher but it wasnt able to patch the zip ..

so i went about trying to patch it manually ...

my zip file looks like the attachment

the updater-script file looks like this

ui_print("***********************************************");
ui_print(" Google Apps for Android 4.2.2");
ui_print("***********************************************");

ui_print("Installing...");
package_extract_file("dualboot.sh", "/tmp/dualboot.sh");
set_perm(0, 0, 0777, "/tmp/dualboot.sh");
run_program("/tmp/dualboot.sh", "mount-system", "ext4", "/dev/block/platform/msm_sdcc.1/by-name/system");
show_progress(1, 15);
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/tmp/dualboot.sh", "unmount-system");
ui_print("Installation complete!");
[Galaxy S 4 i9505 Original Android Development] DreenHotdog:
Does anyone have an ETA of when we will have the triple boot integration? :D
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The PAC-Man ROM is an official build, so it's already supported :) I'll take a look at NegaLite now.
[Galaxy S 4 i9505 Original Android Development] toxicpaulution:
I tried goldeneye and it says its unsupported. Also there needs to be a way that gapps only flashes on rom two instead of both because it messes with my TW. :/ or can we flash a zip in the aroma installer?
[Galaxy S 4 i9505 Original Android Development] DreenHotdog:
What can I do if I want to change my primary ROM?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Ah, I was talking about Windows in general. It was just a simple issue where Linux uses forward slashes for paths and Windows wants backslashes.
[Galaxy S 4 i9505 Original Android Development] Technical:
I've tried to run a debloatifier of Goldeneye ROM in my PC and after that patching the ROM.

It flashed ok without errors.

After booting, stuck on Samsung logo forever.

Definitively, TW is not for me as I have a lot of apps installed.

I've tried also the contrary, Goldeneye as primary and Slim as secondary, but I have space issues too and not being comfortable as having my main ROM as secondary.

Now, back to two AOSP Roms in my phone :silly:
[Galaxy S 4 i9505 Original Android Development] Bejda:
I usually have a touchwiz custom rom as primary and believe me it's not my "main" rom ;)

Frankly it's simply easier for everyone and on every sides to run Touchwiz,if wished,as primary.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Just found this screenshot while cleaning up some of my backups. I love the icons I had on there, "1, 2, 1, 1, 1" lol

It's kinda hard to believe it has only been 10 months since the first release in September last year, isn't it? Let's take a look at all the features we've gotten since version 1...

Version 1.0: First time dual booting!

Version 1.x: Added Windows version of the patcher, support for Google Edition ROMs and a bunch of other ROMs

Version 2.0: Initial support for automatic ramdisks instead of just replacing files with manually edited versions (the day I became a lesser idiot)

Version 2.x: First time being able to patch files from Android!

Version 3.0: Support for the multi-slots! Also added the updater-script autopatcher and a new "dualboot.sh" script that works no matter how horribly the updater-script it written

Version 3.x: Added support for the Kit Kat file chooser

Version 4.0: GUI for Windows and Linux! Also add my custom implementations of mkbootimg, unpackbootimg, and cpio so any patching functions can all be done on Windows

Version 4.x: To quote myself, "Write code that doesn't make me look like a noob"

Version 5.0: Brand new Android app that combines the switcher and patcher

Version 6.0: Added custom patching support to the Android app

Version 7.0: TouchWiz 4.4 support (5 months after the initial work on it lol)

Version 8.0: F2FS support, App Sharing (global and individual), Android L Developer Preview support, flawless TouchWiz 4.4 support (finally!), full feature set even if SELinux is in enforcing mode, fix almost all of the janking in the Android app, ROM renaming support, fixed Android 4.2 support

Now, for Version 8.1: App data sharing (hopefully? ;))
[Galaxy S 4 i9505 Original Android Development] gravedigger76:
You're app came alooooong way! Great work!
[Galaxy S 4 i9505 Original Android Development] Bejda:
It's not very nice of you, now i have tears in my eyes.

;)
[Galaxy S 4 i9505 Original Android Development] xk0niR:
I just love your mod and App data sharing would make it perfect for me :good:
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Version 8.0.0 is finally released! Since there are so many non-visible changes (and you probably heard be babbling about them already), I won't list those here (read this instead: https://gist.github.com/chenxiaolong/abea102bbf150fce07f2).

New Features:

App renaming:

The switcher now has the ability to rename the ROMs to something more descriptive than primary, secondary, etc. Just tap and hold the ROM to change its name. The switcher will now also ask for confirmation before setting the kernel.

Primary ROM patching:

The patcher now also supports patching the primary ROM so updating it won't wipe out the others.

App sharing:

Version 8.0.0 supports the long-requested app sharing! Currently, there are two ways of sharing apps. One of them is global app sharing, which shares every app from the primary ROM. The other is individual app sharing, which allows the apk file for an app to be synced across every ROM. With this method, updating the app from one ROM will also update it for the rest of the ROMs. And if you decide to remove the app from one ROM, it will remain in the others.

(Individual) app data sharing will come in a future 8.x.x release ;)
[Galaxy S 4 i9505 Original Android Development] gaww:
Do you have a generic debloatifier zip or App ? I would like to trim my two TW ROMs.

My currently layout is Phoenix 9.4 as primary. I have also managed to flash Omega and Sickness's new ROM with the S5 patcher mod similar to the Phoenix ROM. I used the new primary patcher to keep flashing the

I have had enough room to flash a patched AOSP and GAPPs on remaining space in secondary. Could not do so with Sickness ROM. it is actually smaller then the other two, but they both have a aroma installer that allowed me to keep the instillation size down.

I also patched and installed Fenny's ROM and patched Sickness Modz v5 and flashed it on top of it as Multi 3 (the other two have data from other ROMs I do not want to loose yet). Would have liked to have used Insane v9, but too big for a multi - period. I have very little space free now on the multi "system" cache - ditto in /system.

Both AOSP and TW multi working good. Have some minor issues pertaining to data file sharing , but had them before on other setups.

Note to the OP - where is data sharing now ? With no more then 2 hours of sleep at night, you should easily get v8 with data file sharing done by this weekend. Then go to the beach for a day or two - we will all focus on having ample new challenges waiting for you when you get back.

--- did not see your post just above this until I sent it - lol Now you can finish data file sharing only by the weekend.

---------- Post added at 01:40 AM ---------- Previous post was at 01:30 AM ----------

Up to now, when I updated the primary apps, they did not update in the sharing ROMs? Also, I will flash the 8.0 app soon and check, but did you retain paid app sharing? It worked for me in most instances (titanium, Root Explorer, etc. paid versions). But when I update your app in primary - it IS updated always on the other ROMs

Just flashed it in primary and there it was in multi - I see paid apps still there, but it wants me to repatch and reflash it - ouch - my patched TW again - lol.
[Galaxy S 4 i9505 Original Android Development] Technical:
I've tried to make my own some weeks ago. It's not that difficult if you start with one already done and change the apk and libraries that should be removed.

And no, I don't have a generic cleaner, just the one provided by Goldeneye.

Purified Rom (among other Aroma installer TW ROMs) has an option to debloatify while installing.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
We have to patch again rom or kernel with the v8.0 to have access to the sharing apps? I ask because the menu is greyed for me.

---------- Post added at 08:57 AM ---------- Previous post was at 08:48 AM ----------

I didn't wait, I've done it and it's good.
[Galaxy S 4 i9505 Original Android Development] `SBR`:
could you share the 2 files, will try fixing it.
[Galaxy S 4 i9505 Original Android Development] v00d007:
I tried to install "Samy Deluxe S4 ROM S5 Style NOFX" as primary and replace the "XXUGNE8 Pre-Rooted STOCK ROM Superslim". I wiped the primary stuff with Dualboot Utilities 3.1. But something went very wrong: After flashing my secondary rom cm11 has vanished although the samy deluxe installer zip is supposed to be wipe-free. So i tried to restore a backup from the cm11 rom with "Dual Boot backup & Restore" within the newest philz touch but it tells me there is no system/dual folder and stops. Even a global restore of both roms didn't work properly, i had to flash the kernel for the primary afterwards to get it boot again...(?)

In my case, what have I got to do to prevent me from destroying the secondary rom when installing a new, different primary (TWz) rom? I chose a rom that is told to don't wipe anything, but it did something else wrong. To that point I worked with the Dual-Boot patcher v7.00 that also gave me an error every time when trying to set the kernel for primary although adam kernel is supported. (??)
[Galaxy S 4 i9505 Original Android Development] franzyroy:
[MENTION=5749514]v00d007[/MENTION]

You didn't wrong file? One not patched instead of patched.

---------- Post added at 11:13 AM ---------- Previous post was at 11:06 AM ----------

There is no Dualboot Utilities 4.0!? :confused:
[Galaxy S 4 i9505 Original Android Development] peppe130:
[MENTION=4277844]chenxiaolong[/MENTION] I can't patch GoogyMax3 1.1.3 kernel!!! Dual Boot Patcher app gives me this error:

How can I solve?

P.s. I tried to patch the kernel using PC but the LinuxGUI doesn't start on Ubuntu 14.04 LTS. Till version 7.0.0 all works fine
[Galaxy S 4 i9505 Original Android Development] Bejda:
Why do you want to patch a kernel as primary rom upgrade?

If you wish to flash it for primary rom you simply don't patch it, if you really want to patch it you choose the correct second or multi slot.
[Galaxy S 4 i9505 Original Android Development] peppe130:
A few days ago I read that to enable app sharing feature I have to re-patch all the kernels. I'm wrong?
[Galaxy S 4 i9505 Original Android Development] franzyroy:
In the changelog of Chen:

It's your case.
[Galaxy S 4 i9505 Original Android Development] Bejda:
Not the primary ones, use primary_upgrade patch only for your primary rom preserves your secondary and multislot if wipe cache command found roms during flash ;)
[Galaxy S 4 i9505 Original Android Development] peppe130:
Ok I've understood! :D Thank you :) So if i want to flash a primary rom but I don't want to wipe the other roms installed, I have to patch the primary rom right?
[Galaxy S 4 i9505 Original Android Development] Shanks:
I have a question... On my nexus 5, the android L preview rom, what do i rename it to in order to get it to work? I tried custom patch and didn't work
[Galaxy S 4 i9505 Original Android Development] peppe130:
[MENTION=4277844]chenxiaolong[/MENTION] Why don't you add support for more languages? For example I can translate in italian
[Galaxy S 4 i9505 Original Android Development] franzyroy:
And French for me.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Whoops, I'll fix that in the next version. In the meantime, you can use the 8.0.0.r0.gd6c1ea0 development release, which is identical to the stable one, but doesn't require repatching.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Is it possible to have this in a next update ( settings windows which slide from the left). It's not always accessible, I think it will be better if we can always access to this menu.

Not a big request, so not an emergency! ;)
[Galaxy S 4 i9505 Original Android Development] gaww:
You can and should use it also on mod tools that also wipe cache. Did not work initially, but Chen included it in latter test builds and v8.

---------- Post added at 02:15 PM ---------- Previous post was at 02:11 PM ----------

I was just getting ready to repatch and reflash my TW Multi - glad I read this first - lol.
[Galaxy S 4 i9505 Original Android Development] xk0niR:
I am not using GE rom at the moment, but you could upload audio_effects.conf to pastebin for example (open with Notepad+ and copy paste) and I will edit it and post it.

For the .so file: You can just take it from your primary rom.
[Galaxy S 4 i9505 Original Android Development] remorema:
Your thanks meter must be on fire today :)

Great job mate, im so happy I have one of the supported phones to use your amazing app/work.

Also the nice people on this thread makes me keep using dual boot even if sometimes I just use one ROM. Lolol

Congrats to you all guys. This thread really makes XDA rock.

Edit: hey Chen just an idea for upcoming versions. Can you please add the ability to also change the ROM thumbnail when we rename it? It would look cool :)
[Galaxy S 4 i9505 Original Android Development] omnifarious:
Any chance we'll see this on the nexus 10? [emoji6]
[Galaxy S 4 i9505 Original Android Development] sronweb:
Please, is there any guide to use the patcher on Ubuntu? If I double click "PatchFileLinuxGUI" does nothing.

I have also another question for the android patcher: in case of big files, as the space is limited on sdcard is there any possibility to use the extSdcard as temporary memory?

Thanks
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks for offering to help! I just set up a Transifex project here: https://www.transifex.com/projects/p/dualbootpatcher/ If you create a account, you should be able to join the project and start translating :)

EDIT: At the moment, this only covers the Android app. The patcher core and PC application currently have a bunch of strings hard coded. Once I fix that, I'll add them to Transifex too.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
For Ubuntu, if you install the python3-pyqt5 and python3-yaml packages, it should be able to run. If it still fails, could you tell me which version of Ubuntu you're running? As for the patcher, Android 4.4+ no longer allows apps to write to the external SD card without root (or a ROM that disables this restriction). The patcher actually does all of the patching in RAM though, so it doesn't use any temporary files at all :)
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Internet doesn't work at home for the moment but I gonna try to do it to my work during the meal.

Thanks !

Send from my GT-I9505 using Tapatalk
[Galaxy S 4 i9505 Original Android Development] Technical:
God, I've tried... I can't login on Transifex... It always return to the registering page...
[Galaxy S 4 i9505 Original Android Development] Okaham:
Hi all, i was wondering if i could use the Patching application from this thread for MultiROM?
[Galaxy S 4 i9505 Original Android Development] remorema:
Ill take care of Portuguese if it isn't yet taken ;)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Do you mean like this? :D

EDIT: Check out development version 8.0.0.r3.g04fbdc9 ;)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Awesome, thanks! I've added Portuguese to the list of languages :)