yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] gaww:
If you are using S4/9505, you could use Multislot rather than secondary, but if the install of CM 12 also wipes cache - that would also delete it (unless you modified the script).
[Galaxy S 4 i9505 Original Android Development] AmyClaraRose:
It shouldn't destroy secondary system ROM when updating it doesn't on mine
[Galaxy S 4 i9505 Original Android Development] todivefor:
Anyone know if patcher will handle AROMA-LP-GAPPS-5.1-20150515.zip?

Nevermind. Worked great!
[Galaxy S 4 i9505 Original Android Development] skivnit:
For some reason I can't set the kernel. Says
[Galaxy S 4 i9505 Original Android Development] gaww:
it doesn't recognize your device. Try the below buildprop mod - the OP set it up for device names not recognized:

ro.patcher.device=jfltetmo
[Galaxy S 4 i9505 Original Android Development] todivefor:
Posted this in AntaresOne optimized 12.1 thread. Anyone dirty flash this rom without DATA being wiped? Recovery.log attached.
[Galaxy S 4 i9505 Original Android Development] peppe130:
[MENTION=4277844]chenxiaolong[/MENTION] Just updated Italian translation :)
[Galaxy S 4 i9505 Original Android Development] Technical:
Everything working like a charm with CM 12.1 and Slim 5.1.1 (multi-slot1) + Alucard kernels + XPosed.

The app data/cache is linked with Link2SD in the multi-slot1. All app shared.

I have an issue while updating the launcher in multi-slot1 (shared).

Next boot on 1st ROM the app disappeared. The phone reboots twice. I need to use another launcher, enter Google Play, reinstall Apex Launcher and now everything is fine again.

Well, I remember another "constant" issue. While booting in multi-slot1, Google Services FC. I need to clean its data. I use the same Google Account in both ROMs.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Starting to feel better again and allergies are going away :D

I just pushed a massive snapshot 8.0.0.r1354.g88ebd60, which should be available soon. Not much has changed in the app sharing stuff. The free space issues [MENTION=3019752]gaww[/MENTION] mentioned should be fixed and it's now possible share updates to system apps (ie. anything in /data/app/ can be shared).

Most of the changes were behind-the-scenes changes for the patcher. On every supported platform (Android, Linux, Windows, and soon, OS X), the patcher now has LFS--support for files larger than 2GB on 32-bit OS's--because we all know how big TouchWiz will be on the Galaxy S7. Also, Unicode paths are now fully supported, so you can patch C:\Users\chenxiaolong\Android东西\Çŷäňōġęńɱőđ\cm-12.1-20150526-NIGHTLY-trltetmo.zip if you want.

(I can't be the only person who hates the Win32 API... I mean reaaaaaaallly?)
[Galaxy S 4 i9505 Original Android Development] Technical:
Good ;)

Please, avoid "all" system app shares... We will mess our different ROMs...
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Could you elaborate a little more on that? Is there any system app that gets updated besides the Google Apps that would be incompatible between ROMs? If so, I'll revert the changes.
[Galaxy S 4 i9505 Original Android Development] todivefor:
[MENTION=4277844]chenxiaolong[/MENTION], glad you are feeling better.

Please check this out. Dirty flashed many times secondary and each time data was wiped.
[Galaxy S 4 i9505 Original Android Development] MatrixDJ96:
I have an issue... my phone is hlte

Primary rom is Stock Samsung KK (4.4.2)

Data slot is cm11 but this rom doesn't boot... (always in bootloop)

With old release of dual patcher all worked fine

Any ideas?
[Galaxy S 4 i9505 Original Android Development] todivefor:
Quoted wrong post.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Chen Def the boot.img in the latest emotion revolution r15 is too big!!!. Once patched it's 23kb bigger that the boot partition size!! 17MB r14 was a whisker smaller but yeah the kernel image flashes but misses the tail end... caused a string of anomalies all day!!!

Can you recompres the kernel image or do the emotion rev devs need to compile at a higher level??

For anyone else experiencing weird **** if you randomly chop the last 37kb off a

kernel image while flashing this is not good news
[Galaxy S 4 i9505 Original Android Development] Technical:
Well, I'm not the best tester to give you the full answer. But I'm concerned, besides Google Apps, with:

Browser

Camera2

DashClock (and other lockscreen widgets)

FaceLock

Nfc

AudioFX

Again, maybe I'm just overconcerned, but for sure, Google Apps will need to be excluded or they will (or could) FC between ROMs.

Could you give some time to answer my previous questions? Thanks.
[Galaxy S 4 i9505 Original Android Development] nds850:
I can never have three ROM:s at the same time on my Note 4. Only primary and secondary slots seems to work. I can patch and flash a third ROM (in Multi Slot 1) but when I try to boot it always goes straight into recovery. Is this a known problem? :confused:
[Galaxy S 4 i9505 Original Android Development] Technical:
Are you sure you have patched *all* flashed zip files? I mean, besides the ROM, any other kernel, gapps, xposed, etc.

Or, making the question in other way, why do you think the data is wiped?
[Galaxy S 4 i9505 Original Android Development] todivefor:
Flashing ROM and gapps, both patched. Wiped system with DB utilities. Following this data was intact. Flashed ROM which also wiped system. Had to reinstall all previously installed apps. Probably had to do this a half dozen times, PITA.
[Galaxy S 4 i9505 Original Android Development] Technical:
Sorry to insist, just to understand, but are you wiping with the dual boot .zip file or, on contrary, with the recovery option for it.

If you're using the .zip file (https://dl.dropboxusercontent.com/u/486665/MultiBootPatcher/DualBootUtilities-4.0-snapshot4.zip) it should work. Well, at least it work for me.
[Galaxy S 4 i9505 Original Android Development] todivefor:
Zip. That was not the problem worked fine. Wiped data during flash of ROM.
[Galaxy S 4 i9505 Original Android Development] gaww:
I would add play store and play services.

When I tried the 9.0 alpha with universal app sharing, for some reason - it caused issues going both ways with these - even tough they were separately installed. On switching ROMs and rebooting, these would sometimes be changed (?) and would not work.

Don't know if this would happen on latest version - will not find out until I reinstall a 5.0.2 multiROM update, where I want to try it.

---------- Post added at 02:39 PM ---------- Previous post was at 02:28 PM ----------

Could the ROM install script have a command that would wipe date (besides cache, system, etc.).

Otherwise, You might make and reinstall a backup of data before every flash. It would simply write over the data in any other multiROMs as is, but would restore your wiped data if it keeps on happening.

---------- Post added at 02:40 PM ---------- Previous post was at 02:39 PM ----------

I don't think you have enough space in the cache needed for multiROMs unless the OP has a mod that would allow it.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Was curious about that myself. Shouldn't be too difficult only catch is you need 3.5GB of free space for the initial install... the image file has to match the intended size. Later you can shrink the image file.

My very first app was a image container size shrinker for Syiah kernel on the S3
[Galaxy S 4 i9505 Original Android Development] Technical:
Thanks. I fully agree.

Maybe todivefor could post the update-script of his ROM.

I think the same: a free space issue.
[Galaxy S 4 i9505 Original Android Development] todivefor:
It could, but people dirty flashing normally (without dualboot) are not reporting problems.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
It doesn't look like that list would be affected because the play store wouldn't update them and put the app in /data/app, but you're right, Google Apps would break, especially with modded gapps packages. I'll revert the changes that allow sharing updates to system apps.

Libraries are not yet shared. That's actually why the boot process takes so long--because Android is extracting the libraries from the apks. This is something I'm working on, but I'm not quite sure how to do yet. There are some added complications on 64-bit devices like the Galaxy S6. Dex files will probably never be shared because I believe (correct me if I'm wrong) they're linked to the ROM's framework.

Yes obb is shared. They're either stored in /data/media/obb or /data/media/0/Android/obb, and every ROM uses the same /data/media.
[Galaxy S 4 i9505 Original Android Development] peppe130:
[MENTION=4277844]chenxiaolong[/MENTION] Hi! Could you upload a new version of the Patcher with the Italian translation updated? So I can check if everything is OK :)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Haha, wow only 23kb! Starting from 8.0.0.r1359.g340805a, the patcher will use the gzip compression level 9 (equivalent to the "gzip -9 somefile" command). Hopefully that'll be enough!

I took a look at the ramdisk and busybox is the largest binary in there (1.1MB). Maybe they should not compile the full-blown busybox and just compile the parts of it they need ;)

EDIT: I just remembered... from a few pages back, someone used a kernel that had a full 1MB chopped off the boot image, and that's without it being patched lol. Somehow he got lucky and the device didn't care about the chopped off bits.
[Galaxy S 4 i9505 Original Android Development] MatrixDJ96:
[MENTION=4277844]chenxiaolong[/MENTION] have you any ideas?
[Galaxy S 4 i9505 Original Android Development] Technical:
Thanks. This means we will be able only to share "all" user app and "none" system ones. Right?

So, anyone who uses Link2SD in just

one

ROM

could send

the libraries to 2nd partition of sdcard without interfering in other ROMs. Hope this help other users with the same configuration.

When they got shared, please, if you remember, advise first :)

Do not overestimate my technical knowledge :cowboy:

I'm not the one who's able to answer this.

So, anyone who uses Link2SD in just

one

ROM

could NOT send

the obb files to 2nd partition of sdcard because this will interfere in other ROMs. Hope this help other users with the same configuration.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Yeah I tried link 2 sd. Actually for sharing and to convert system updates back into system which the app actually does nearly successfully unlike titanium. But kept having gapp update conflicts as discussed so gave up for the time being.

However if you use link 2 app to convert the patcher snapshot app itself into a system ROM or any directly installed app then the lib files WILL be pushed into system and linked properly. So xposed installers and other apps you don't want to be shared just convert to system app before sharing apps... just don't try it with system app updates :)
[Galaxy S 4 i9505 Original Android Development] jotade:
Hi i have 910G 5.0.1 Stock TW as primery, with the new patcher can i install cm12.1 as secondary or we still having the space problem for intalling the ROM? Thanks and sorry my english
[Galaxy S 4 i9505 Original Android Development] gaww:
See how much room you have left if /system. If you have less then 300 mb, it would be a tight squeeze (not much room for any gaaps) - under 200 forgetaboutit.

However, you could move as many apps to Sd as possible, and also debloat some system apps you don't use to make more room.
[Galaxy S 4 i9505 Original Android Development] todivefor:
Looked into recovery.log a little closer. Found this:

Formatting /system...

[D] update-binary-tool: Formatted /data

about to run program [/update-binary-tool] with 3 args

Mounting /system...

Looks like DB is formatting /data and not /system.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Chen check this out

su

pm install -d /data/sharedapk/data/app/com.github.chenxiaolong.dualbootpatcher.snapshot-2/base.apk /data/app/com.github.chenxiaolong.dualbootpatcher.snapshot-2;

I've move the app folder to a central location and with sine checks for lib files and an updated base.apk when you say switch roms, the command above will silently install the app again generating fresh libs!

Then in soft link ln -sf to link to the data/app directory

I'll keep you posted. On my progress
[Galaxy S 4 i9505 Original Android Development] Technical:
Lose the ability to dirty flash patched Xposed for primary: E: Error executing updater binary in zip.

Tried sideloaded without luck on CM 12.1 from 28th, May.
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
I'm curious, why would you need to patch it for primary?
[Galaxy S 4 i9505 Original Android Development] Houndcatcher:
Same happened for me :( Right PITA :(
[Galaxy S 4 i9505 Original Android Development] carandcar:
I get the same error trying to flash Xposed on my patched dual ROM. Is there something I can try to fix this?
[Galaxy S 4 i9505 Original Android Development] Technical:
Otherwise, when flashing almost any zip, it wipes cache and with cache, your system for the multi-ROM.

In other words, all system partition of the multi-ROMs are mounted in the free space of the primary cache. When you wipe the cache, your multi-ROM is gone :(
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
Thanks for the explanation, I thought that only occurred while flashing another rom or kernel to primary.
[Galaxy S 4 i9505 Original Android Development] parasthakur37:
I envy Galaxies' development so MUCH! Pretty much all the amazing stuff is made for Samsung Galaxies, so wrong. :(
[Galaxy S 4 i9505 Original Android Development] MatrixDJ96:
No help for me?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Will do :)

EDIT: 8.0.0.r1360.g42a6310
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Nice find! Could you upload the updater-script file before and after patching? It probably converted the format line incorrectly.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Do you remember which release was the last one that worked for you? It's hard for me to guess why that might happen without seeing the changes since that version. Thanks!
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
That's right.

Correct on both counts. If obb files are moved to the 2nd partition of the sdcard, other ROMs won't know that, so they will redownload the obb files in the original location.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
https://jenkins.noobdev.io (and maybe https://snapshots.noobdev.io) is going down for a few hours tonight (EST timezone). It's been getting a little too much traffic lately and is affecting my internet connection at home so it's getting moved to another server. No snapshots will be built while the site is down.

Sorry for the inconvenience!

EDIT: Also, how many people are interested in OSX builds? Ever since the snapshots were moved to https://snapshots.noobdev.io, about 14% (2536 out of 18421) of the downloads were for the Windows version, so there seems to be a bit of demand for the PC version. If a lot of people want OSX builds, I'll set up a hackintosh VM on my server to make the builds.
[Galaxy S 4 i9505 Original Android Development] noobiedev83:
Thanks,is there anyway that I can change a data slot rom to a primary rom?
[Galaxy S 4 i9505 Original Android Development] todivefor:
Here you go.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Aw damn...gotta boot back into my win8 partition lol

EDIT: I know exactly why it's happening. I will fix in a moment.
[Galaxy S 4 i9505 Original Android Development] Tyler.Boston1:
Just wondering if anyone else is having problems flashing patched kernals for aosp? Im on carbon rom 4.3.1 and i've flashed chronic kernel and kt kernal 4.3 versions and when i boot up my colors are reversed on my screen and my boot animation is static and alot of screen lag. If im doing something wrong please correct me.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
That sounds like a kernel incompatibility to me, but I'd be happy to check the patched ramdisks to make sure they still match the original ones. Could you post a link to the exact version of the two kernels you are using?
[Galaxy S 4 i9505 Original Android Development] Tyler.Boston1:
Sure! Here's the KT 4.3 kernal http://xdaforums.com/showthread.php?t=2289140

And the chronic kernal http://xdaforums.com/showthread.php?t=2279099

By the way, im on tmobile s4. Thanks!
[Galaxy S 4 i9505 Original Android Development] munchy_cool:
so task's latest s4 build has a new kernel inbuilt, will you have to add support for it in your utility?

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

Why did I ask? well because it ain't dual booting AOKP.

I have MIUI on primary, updated MIUI. booted into MIUI. Set main rom kernel as primary. Booted into recovery.

Flashed dual boot utilities. wiped everything belonging to secondary from aroma menu.

back to recovery, flashed patched aokp and gapps but it ain't booting, stuck on booting animation.
[Galaxy S 4 i9505 Original Android Development] MetaMav:
I was wondering if you could add support for these:

[ROM] BoneStock ROM (v.1.1.4): http://xdaforums.com/showthread.php?t=2384362

[ROM] Hyperdrive: http://xdaforums.com/showthread.php?t=2301724

[Kernel] KToonsez's 4.2.2 TW kernel: http://xdaforums.com/showthread.php?t=2294083

Would a setup with a 4.2.2 TW kernel and 4.3 AOSP kernel conflict?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Version 2.0 beta 4 should fix compatibility with Windows :)
[Galaxy S 4 i9505 Original Android Development] Nick0703:
It worked and PAC is booting up now. Thanks!
[Galaxy S 4 i9505 Original Android Development] Hecatrice™:
Can we help me?

Inviato dal mio GT-I9505 con Tapatalk
[Galaxy S 4 i9505 Original Android Development] rlorange:
First public release!!

Dual Boot Backup V1.0b

-Backup and restore your 2ndROM to your internal or external memory

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

[APP][DUAL BOOT] Dual Boot backup V1.0b
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
I'm using the stock Samsung Touchwiz ROM as primary and Google Edition by Jamal as secondary. I had to move a lot of apps from the system to user apps but I have both running now and they work fine.

That would be the reason it wont work for me then. I have the file in init.d folder and set the correct permissions. I have Samsung Touchwiz 4.2.2 and Google Edition by Jamal 4.3 on my S4.

Can you add support for the below ROMS or will the new patcher work on them?

[ROM] Google Edition Galaxy S4 rom 4 i9505[20 Oct][Odexed rom android 4.3 & 4.2.2] The 4.2.2 version

[ROM][4.2.2]broodROM AOSP v1.0 (Based on Google Edition AOSP) 17-07-2013 R2 TEST

How would I change my secondary ROM? I have Android 4.3 as secondary but I want to install Android 4.2.2 instead.
[Galaxy S 4 i9505 Original Android Development] Gotcher:
Sorry for posting such a n00b question, but is vertigos PAC ROM supported?

Link to the ROM thread: http://xdaforums.com/showthread.php?t=2295673

Thanks! :)
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
As far as i am aware; the dual boot patcher is only for the I9505 variant of the S4 not I9500.
[Galaxy S 4 i9505 Original Android Development] ad346:
The link he posted is FOR the i9505 :p
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
oops :o I had two tabs open :laugh:
[Galaxy S 4 i9505 Original Android Development] Gotcher:
So is this ROM compatible? Because it says "official" in the thread name but the devs name doesn't appear in this OP... I'm a bit confused :D
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
try patching it and see if it works. If it doesn't work then no; its not supported.
[Galaxy S 4 i9505 Original Android Development] WuchuHurD:
Go into recovery and flash DualBootUtilities.zip !
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
Yeah I've done that. Just need to get one of the ROMs I posted above to be compatible.
[Galaxy S 4 i9505 Original Android Development] mkhattat:
Yes but with the latest beta version.

http://xdaforums.com/showthread.php?p=46638099
[Galaxy S 4 i9505 Original Android Development] todivefor:
I would be interested, but not high priority.

---------- Post added at 04:01 PM ---------- Previous post was at 03:57 PM ----------

[MENTION=4277844]chenxiaolong[/MENTION], did you see this? Was posted while you were sick.
[Galaxy S 4 i9505 Original Android Development] MatrixDJ96:
Of course sir, I tested all version of your patcher and the latest that worked is snapshot 1212
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks! I may have to add a special case for that ROM then. I've encountered numerous other ROMs that use a script named "format.sh" to format /data, which is why it was replaced with the format /data line.

https://github.com/chenxiaolong/Dua.../libmbp/autopatchers/standardpatcher.cpp#L258
[Galaxy S 4 i9505 Original Android Development] Technical:
If you can... I usually patch at PC, it's more convenient and I sent only the patched files to phone.
[Galaxy S 4 i9505 Original Android Development] Houndcatcher:
An OSX build would be awesome but don't bust a gut to do it :)
[Galaxy S 4 i9505 Original Android Development] Technical:
An old wish of mine, that the patcher injects the dual boot apk into the user apps in the patched ROMs.

All new ROM we flash we need to install the app... :p
[Galaxy S 4 i9505 Original Android Development] peppe130:
[MENTION=4277844]chenxiaolong[/MENTION] Chen, I've updated Italian translation again :) Could you build a new snapshot so I can check if everything is OK?
[Galaxy S 4 i9505 Original Android Development] gaww:
I occasionally do that and wipe multi, but have you looked at the install script? If that command is not there - try just flashing it on primary
[Galaxy S 4 i9505 Original Android Development] Technical:
Too risky :D

Faster is just use the patcher then to check and edit manually the zips ;)
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
[MENTION=4277844]chenxiaolong[/MENTION]
[Galaxy S 4 i9505 Original Android Development] Technical:
Do you remember which version is the last one which did not share system apps?

By the way, did I miss app data sharing release or, on contrary, we still need to wait for this?

Thanks.
[Galaxy S 4 i9505 Original Android Development] gaww:
Yeah you missed it a while back - lol There was one of chenxiaolong's posts detailing the release. It covered the version that also shared data.
[Galaxy S 4 i9505 Original Android Development] v00d007:
[MENTION=4277844]chenxiaolong[/MENTION]

When flashing an unpatched TW AEL kernel to primary it always wipes my multi slot rom's system folder. But patching doesn't work correctly. When patching it with custom auto preset the zip behaves like a rom and the flashing procedure never ends...
[Galaxy S 4 i9505 Original Android Development] Technical:
Release? Do you mean future release?

Right now, with the latest app, data does not seem to be shared. At least, not for me in none of my tests...
[Galaxy S 4 i9505 Original Android Development] franzyroy:
A little detail him would be necessary, don't you think??:silly:
[Galaxy S 4 i9505 Original Android Development] gaww:
Data is/was(?) shared but only when using individual app sharing - per the instructions in the release notes. This was a few releases back when he first included data sharing this way.

---------- Post added at 04:06 PM ---------- Previous post was at 04:00 PM ----------

Flashing an un-patched kernel will wipe multiboot if the install script wipes cache - which is not unusual. I have not had issues patching AEL kernel (which are you using?), so not sure of you patching issue. Maybe insrtead of auto preset, see if you see AEL Kernel on the list and select it..
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Lol that might be helpful wouldn't it.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
I certainly responded rather quickly :silly:, I agree, I only saw it after ... Sorry!;)