yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Still getting the hang on chroot with note 4. Cm12 and xenon. Tmobile
[Galaxy S 4 i9505 Original Android Development] todivefor:
[MENTION=4277844]chenxiaolong[/MENTION] No big deal as I have a kernel that works, but I will be happy to test when you have a solution. The bigger deal is to eliminate the need to flash a kernel after flashing rom.
[Galaxy S 4 i9505 Original Android Development] HearMeWhisper:
[MENTION=4277844]chenxiaolong[/MENTION] I tried to flash with the newest patcher and with a fixed info.prop. and the install started! That's fantastic progress. But I had an updater binary issue. Is that related to a bad download, or the patcher?

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

https://docs.google.com/file/d/0B9aPg6j0_c9JUHlxM01RMXpMVzg/edit?usp=docslist_api
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Wow, I totally did not expect that. The Galaxy S4 had a 2.7GB system partition, so the multiboot installer created a 3GB temporary image. I though that would be enough for anything, but lo and behold, the Note 4 has a 3.6GB system partition :)

I'll edit this post once I fix this.

EDIT: 8.0.0.r938.g1ec5fd9 coming down the pipes soon :)

EDIT2: Yay, it works!
[Galaxy S 4 i9505 Original Android Development] rlorange:
Chen so can i set the info.prop file before i patch or do i have to unzip the patched rom zip edit and rezip?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
You'll have to unzip, edit, and rezip (unless your zip program allows you to edit files in place).
[Galaxy S 4 i9505 Original Android Development] rlorange:
All good I'm proficient at editing zips lol.

---------- Post added at 05:30 PM ---------- Previous post was at 05:29 PM ----------

Which gapps are compatible?
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Throwing down in N910T now
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Maybe a similar issue with CM12 AntaresOne rom, no?!
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
I don't have my S4 with me right now, but r940 should hopefully fix booting of AntaresOne CM12 with its bundled kernel.

The issue was caused by its fstab file. Instead of trying to detect f2fs and ext4, it first tries to mount with ext4. If that fails, it ignores the error and tries to mount using f2fs. I've updated mbtool to handle fstab files like this.

https://github.com/chenxiaolong/DualBootPatcher/commit/aeba2b190281f1b89912341d1590462a52424b37
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The best way to find out is to download the ROM, extract it, and see how big the extracted files are. There's isn't really a good way to check before downloading because some ROMs can be compressed more than others.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks a lot for testing! Version 1.18 is now released (same as 1.18 beta) :)
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
With it being stock android it shouldn't be too large anyway.
[Galaxy S 4 i9505 Original Android Development] Bejda:
Don't forget gapps, they goes to system as well.

Should be ok with a standard or minimal gapps package (not 100% sure for "standard" goo.im ones though..) but for me with a custom but full touchwiz rom as primary I had to remove some system/apps I'm sure I won't ever use like S-health or Story widget for it fits.

The thing is i use Slim gapps,they're a little big but comes with apps that switch to dark if rom has that option (Slim trds feature) or inverted as default.
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
OK, how can I view the space left in the system partition on my phone currently? The system folder inside the ROM i want to install is 602mb.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
This app is great for seeing the freespace in all of the partitions: https://play.google.com/store/apps/details?id=ru.krikun.freespace&hl=en
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
LiquidSmooth is now supported in version 1.18.1 :)
[Galaxy S 4 i9505 Original Android Development] Bejda:
Another one in the place ;)

http://xdaforums.com/showthread.php?t=2480743
[Galaxy S 4 i9505 Original Android Development] The1nonly1:
Cheers I'll have a look at that
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
What kernel do I use wuth kangabean 4.3. I already patched it but every 4.3 Ge kernels all fail in rhe dualboot patcher

Sent from my SGH-M919 now Free
[Galaxy S 4 i9505 Original Android Development] m4rcus:
since this is already a couble of days old, is there any solution to this now?
[Galaxy S 4 i9505 Original Android Development] mkhattat:
Hi Chen

I installed a debian Linux (via debian kit) on my phone and tried to run your patcher but I got the following error:

Failed to run command: "/storage/extSdCard/dp/scripts/../binaries/linux/unpackbootimg -i /tmp/tmp8GoeU1/boot.img -o /tmp/tmpruPeDp"

What do you think? What is the problem?

PS: I can run Linux commands without any problem

Thanks

Sent from my GT-I9505
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Hey Chen

Could you patch the Google Edition 4.3 Version of chronic.

Here is a link: http://chronic-buildbox.dyndns-server.com/jf/ChronicKernel-JB4.3-TW-INTL-v1.2.zip

---------- Post added at 04:11 PM ---------- Previous post was at 04:05 PM ----------

Nevermind :D
[Galaxy S 4 i9505 Original Android Development] Smitty7722:
Hey bought you a couple of beers. Let me know if it was received. There might be 2 donations.

4G557165501040623 was from today

5GE35750MY446383S was from last night ( might not have worked)

Thanks and keep up the great work. Looking forward to triple boot :)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
I actually never figured out the issue, but I did try a regular non-dual boot install and I had the exact same issue with root.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thank you very much for the support! I really appreciate it :D I did receive both of the donations.

The code for triple boot is actually done, but it might take me more than a week to get it released. I need to redownload all ~40 of the supported zip files and make sure that they don't wipe /cache :)
[Galaxy S 4 i9505 Original Android Development] Smitty7722:
If you need a tester I have a spare s4 :)
[Galaxy S 4 i9505 Original Android Development] DreenHotdog:
Alright So what if I'd like to switch my primary ROM (FoxHound) with a other touchwiz ROM (MDOB)? I would like to replace my current primary ROM with a different one while keeping the data or somehow backing up the data from my previous primary ROM. What should I do in the DualBootUtilities.zip to achieve this? Thanks!
[Galaxy S 4 i9505 Original Android Development] Nick0703:
Hey I'm sure what I'm doing wrong here, I followed the steps but I'm having trouble booting in my secondary ROM. I'm using TW 4.2 (primary) and I'm trying to dualboot with PAC (secondary). Everytime I try to boot in PAC, I get into bootloop. I did these steps.

1. Boot into TW, install the app and set my current kernel (Ktoonsez) as primary

2. Patched PAC-ROM

3. Flashed it

4. Reboot
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Could you send me the META-INF folder and the boot.img file from the patched zip? Maybe something wasn't patched correctly because you followed the right steps.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
I was testing on TWRP 2.8.50. Which recovery are you using?

Btw, what is Xenon?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
PA Gapps 5.0 (Full modular) works pretty well. I'm running stock T-Mobile TouchWiz + Official CM12 (secondary) + PA Gapps 5.0 with 285MB left on /system and it's running beautifully :)
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Same recovery and it's a aosp. based rom I believe. I tried it first because of the layers support
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Strange, I haven't experienced any hanging at all. Could you pull /tmp/recovery.log with adb when it hangs? (or does adb hang too?)

EDIT: Did you edit multiboot/info.prop in the zip file?
[Galaxy S 4 i9505 Original Android Development] rlorange:
Chen all great here. Just for some reason the patcher app latest snapshot won't switch ROM's

I'm using a basic dd command to do this manually... Any reason why this might be so?

On echo V2 with AEL kernel but havent patched the primary rom but have patched the kernel
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Hmm, sounds like it might be a ROM-specific issue. Could you completely close the app (swipe away from recent apps) and make a logcat when you try to switch ROMs?

Btw, patching the primary ROM only changes the kernel (and prevents overwriting other ROMs), so the way you installed it is not a problem :)
[Galaxy S 4 i9505 Original Android Development] rlorange:
Well strangely i the patcher app won't ask for root permissions!

Ael does have an installation to /sbin necessary for synapse to work. I'm guessing whatever command the patcher app is calling with dd it must be trying to run without superuser privlages
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
The patcher app actually handles everything internally and no longer calls dd. I've noticed quite a few ROMs either don't have dd or have a broken version of it.

The actual switching is done by mbtool, which runs during boot (as root). The app simply connects to it and sends the ROM switching command. That's why it doesn't ask for root permissions.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Ok i see mbtool in the root directory

Anything i should test here?
[Galaxy S 4 i9505 Original Android Development] davy4475:
Can someone post an alternative link for the patcher app. I can't get the one in the op to work for me
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks for the info! That's good news since at least mbtool is running. I'm almost 100% sure SELinux is blocking something then. I'll have to flash Echoe and do some debugging to fix this.
[Galaxy S 4 i9505 Original Android Development] rlorange:
I'm using xposed framework if that counts

---------- Post added at 08:01 AM ---------- Previous post was at 07:13 AM ----------

Chen ive got a zip binary which can easily replace the info.prop file in the zip and am making a tasker app incorporating it
[Galaxy S 4 i9505 Original Android Development] gaww:
Will any of the apps or zips patch a 5.0 TW ROM and allow it to be installed correctly ?

I had patched and successfully flashed AOSP and CM12 ROMs, but a patched TW ROM (CardHd 38.3) ignored the patch and went to the system partition (which only had a few hundred mb available) and messed it up.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Is the Echoe ROM you're using this one? "S4_Echoev42_EchoePop2_020315.zip"
[Galaxy S 4 i9505 Original Android Development] rlorange:
Nope it's N4_EchoeRomv2_2211141.zip

---------- Post added at 01:04 PM ---------- Previous post was at 01:02 PM ----------

It's 4.4.4
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Just did a clean install of AntaresOne CM12 (cm-12-20150222-OPTIMIZED-jflte.zip) in multi-slot-1 with no gapps and it seems to be working perfectly now. This was patched with snapshot r941.

EDIT: I'm using ext4 for the system, cache, and data partitions.

EDIT2: This is without a custom kernel.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Ah, I'm a dumbass ;) Forgot you had a Note 4, not an S4.
[Galaxy S 4 i9505 Original Android Development] gaww:
Before moving up to current patchers and migrate the data, I wanted to try patching a ROM to Multi 1, but I do not see any options in the new Multi Boot Patcher to select a location. What am I missing here ?
[Galaxy S 4 i9505 Original Android Development] rlorange:
Lol I still have my beaten up old note 4

BTW exposed recovery zip for lollipop patches perfectly
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
That is now selected via an AROMA screen that pops up when you flash the patched file.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Chen I'm thinking it's definitely AEL kernel related to the /sbin contents. Busybox .sh files binaries you name it!!

I can tar my sbin folder or anything else you need but seriously not a big deal as i have made a simple app to change ROM's

Now waiting for custom kernels for cm12 on my note
[Galaxy S 4 i9505 Original Android Development] xipxap:
Congrats !

Hi all.

Finally, after few weeks, we can running a stable dual mode with the DualPatcher 8.0.0.r941 nightly over Touchwiz Lolllipop stock rom

http://xdaforums.com/galaxy-s4/i9505-develop/touchwiz-lollipop-leaked-rom-i9505-t3027063

and official CM12

http://xdaforums.com/galaxy-s4/i9505-orig-develop/rom-cyanogenmod-12-nightlies-qcom-intl-t2999570

in dual mode.

Thanks chenxiaolong for your hard work ;)
[Galaxy S 4 i9505 Original Android Development] franzyroy:
Great!:good:
[Galaxy S 4 i9505 Original Android Development] rlorange:
Yep finally got dual boot running sweet on my Note4. Am amazed yet not surprised that Chen has kept development steaming along.

Simply the best dev out there and the most humble and dedicated.

Running TW 4.4.4 and cm12 dual since I'm still waiting for those damn 910G bootloaders!! Only issue is the bug with inability to switch ROMs from primary

But I've made an app to solve that
[Galaxy S 4 i9505 Original Android Development] rlorange:
Damn Chen the Note4 Cache partition is TINY! 200MB... WHAT'S THE DEAL? no room for multi ROMs
[Galaxy S 4 i9505 Original Android Development] gaww:
Thanks. I had been on the road for almost two months from early Nov thru early January, and was not up to date on all the details. I did search a lot, but somehow missed this one.

One more question. After migrating the multi-folder data to the new format, and then installing newly patched ROMs, if an older nandroid backup was restored, does it restore correctly (ie - write over the new folder setup) ?

Thanks again.
[Galaxy S 4 i9505 Original Android Development] seijisandrei:
Hi Chen,

So with the recent snapshots of the Dual Patcher, is the .apk stand-alone app already? Or we still need the Dualbootutilities.zip in order to change roms?

Sorry I've been confused with all the changes since 436 :))
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Wow, that's horrible... My T-Mobile Note 4 has a 484MB cache partition, but it looks like the international version has an extra partition named "hidden" for carrier bloatware.
[Galaxy S 4 i9505 Original Android Development] pug1:
[MENTION=4277844]chenxiaolong[/MENTION] does the TW ROM have to be primary?

Have managed to do all steps to patch my zip.... XtreStoLite_ROM_v2.0_LP_XXU1BOB7_patched.zip

It installs fine, boots can use the ROM. Can boot back to primary but when I change back to secondary it hangs at android L boot screen

Has anyone encountered this

The app is awesome by the way. Thanks
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
We were both wrong :D The reason is actually quite stupid. The Echoe ROM has:

ro.product.device=trlte

From https://github.com/chenxiaolong/Dua...b6110665be97cd1/libmbp/patcherconfig.cpp#L410, the patcher only recognizes "trltetmo" and "trltexx" as valid codenames. The app couldn't find a match, so it didn't know which partition is the boot partition, causing the error.

I'll edit this post when it's fixed. It won't require a repatch, just an app update.

EDIT: Fixed in 8.0.0.r945.gff0cd98
[Galaxy S 4 i9505 Original Android Development] HearMeWhisper:
Just to know Chen, I managed to get the dual boot working. It seems though we have much smaller partitions to work with here. But is there any way to have the roms linked to the internal storage or an SD card? Also the app sharing doesn't work for me yet
[Galaxy S 4 i9505 Original Android Development] rlorange:
Have a patch app nearly ready for note 4 users
[Galaxy S 4 i9505 Original Android Development] tropenfrucht:
[MENTION=4277844]chenxiaolong[/MENTION]

on LG G2 D802

Even with newest snapshot 950 it's still not possible to set kernel or switch ROM on LG Stock ROMs (installed unpatched as primary). Error Message "Failed to set kernel" and "Failed to switch ROM".

My current workaround:

extract boot.img via terminal and dd-command

copy boot.img to sdcard/multiboot/primary which is only possible in TWRP-Filemanager, while ROM is running I can't access that folder. tried different filemanagers

That way I can switch ROMs with dualbootutilities.

On AOSP ROMs setting kernel and switching ROMs works flawless.

Maybe a problem with permissions? root is granted.
[Galaxy S 4 i9505 Original Android Development] pug1:
What was you primary rim asop or tw cheers
[Galaxy S 4 i9505 Original Android Development] gaww:
I had been running a setup with two TW ROMs (one TMo and one international S5 port) with app sharing (plus an AOSP 5.0). Now migrated to current snapshots. I still have the Tmo ROM as primary (need WiFi calling often), and patched/flashed modded German lollipop leak successfully. I only had to patch the primary kernel with the new patcher for it to become switchable with it - no reinstalling needed.

However, I didn't really appreciate how important app sharing was until now. I had cleaned cache and all data from secondary and all multiboot folders first.

I started with almost 2gb free space on internal SD. After flashing the 5.0 TW, I ended up with only 700mb free, and after starting to restore apps with titanium - ran out of free pace. I had already moved most of the files I could to the external SD (only about 1.6 gb left of 16 gb internal). Had to delete a number of apps to get free space back to only 500mb.

I am now really looking forward to the second coming of app sharing big time - lol.
[Galaxy S 4 i9505 Original Android Development] tropenfrucht:
I have a LG G2 (it's supported by dualpatcher) so no tw rom ;)

But my primary rom is stock LG rom. Patched stock LG rom doesn't boot after flashing as dual.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Ok I've got something great for all you Note 4 owners.

I've made an app which will automatically re-patch the patched zip with the slot of your choice and bypassing the AROMA freeze issues with NOTE 4

Heres a test release

https://www.dropbox.com/s/2jw244v8of578fh/Dual_Boot_Patch_1.0.apk?dl=0
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Hot damn just got to work!
[Galaxy S 4 i9505 Original Android Development] rlorange:
All good just tested the latest cm12 build... Works perfectly yay! And works running from my dual ROM cm12
[Galaxy S 4 i9505 Original Android Development] rlorange:
Quick bug fix guys

https://www.dropbox.com/s/bm2vugn3q8hvnct/Dual_Boot_Patch_1.1.apk?dl=0
[Galaxy S 4 i9505 Original Android Development] sronweb:
[MENTION=4277844]chenxiaolong[/MENTION]

I tried today to patch CM12 on S4 I9505 (jfltexx) and the patching with last patcher snapshots from today and yesterday is ok but when I install the rom I get an error and installation is aborted. No issue using previous patcher r.945

Basically I get a version error as my phone is not compatible or similar.

PS: log file is attached now. Thanks
[Galaxy S 4 i9505 Original Android Development] monkteo:
OK in that case what patch to use (and work) for Antares CM12

now I have TW Loli primary and I intend to put Antares secondary or multislot1 ?

THX
[Galaxy S 4 i9505 Original Android Development] sronweb:
I have to correct because I have installed today CM12 with r941 (not 945) which you can use to patch a TW as primary and CM12 as my configuration.I had the issue with last 2 releases r945 and r950. I'm not sure for r942.
[Galaxy S 4 i9505 Original Android Development] jpeps:
Will this work on 2 tw roms or only cm and tw ?
[Galaxy S 4 i9505 Original Android Development] t0pstar:
Can you please make a tutorial for note 4 to get multiboot ?

Thanks
[Galaxy S 4 i9505 Original Android Development] blacklabel2020:
I keep getting error when trying to flash patched zip. On tmo note 4. Will it work on tmo note 4 PAC ROM. My primary ROM is cmremix for tmo and wanting PAC for my secondary
[Galaxy S 4 i9505 Original Android Development] rlorange:
Its pretty easy. Patch cm12 using latest snapshot then after running the app it will create some folders which are shown.

Move the patched zip to the dual folder click the menu and a new one will be generated.

Then simply flash that the app will tell you where to find it and what it's name is
[Galaxy S 4 i9505 Original Android Development] t0pstar:
OK , I get error on recovery(twrp) but I try aicp will try with cm12
[Galaxy S 4 i9505 Original Android Development] rlorange:
Did you end up with a zip in patchmultiboot/patched_files starting with dual_ ?

Not all roms are compatible so likely the original patchers fault
[Galaxy S 4 i9505 Original Android Development] blacklabel2020:
This is the error i'm getting. I patched cm12 with snapshot then re-patched it with the other patch app.
[Galaxy S 4 i9505 Original Android Development] sronweb:
+ 1

Same error for me. This is why I had to use an older version of the patcher.
[Galaxy S 4 i9505 Original Android Development] blacklabel2020:
Witch one did you use?
[Galaxy S 4 i9505 Original Android Development] sronweb:
r941 is fine. I'm not sure for r942. I got the error with r945 and r950.
[Galaxy S 4 i9505 Original Android Development] blacklabel2020:
How can i wipe the second rom on the note 4? DualBootUtilities-4.0-snapshot1 hangs in recovery
[Galaxy S 4 i9505 Original Android Development] t0pstar:
Now it works ,awesome

Can I just flash tw ROM as secondary?
[Galaxy S 4 i9505 Original Android Development] jpeps:
What is r941??
[Galaxy S 4 i9505 Original Android Development] rlorange:
You using tmo version? On what device??
[Galaxy S 4 i9505 Original Android Development] blacklabel2020:
I'm using tmo on tmo Note 4. I tried the build r941 and it worked. with build r950 i get the error. How do i wipe the second rom? Like remove it
[Galaxy S 4 i9505 Original Android Development] t0pstar:
I am on trltexx and works great
[Galaxy S 4 i9505 Original Android Development] rlorange:
I'm flashing trlexx cm12

---------- Post added at 09:55 AM ---------- Previous post was at 09:50 AM ----------

Hmmm you might need to edit the updater-script.

Do you know how to extract it from the zip? I'll edit it for you

---------- Post added at 09:56 AM ---------- Previous post was at 09:55 AM ----------

Or try patching with device detecting removal option
[Galaxy S 4 i9505 Original Android Development] gaww:
I have on two TW ROMs, but 4.4.4 and 5.0.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Holy cow, 4 new pages since I last visited this thread yesterday :)

Flashing issue was a simple mistake in the code and will be fixed soon. In the meantime, use r942 to patch the files and then update the apk once installed.

EDIT: Oh, damn it, I know exactly what's going on. It was a bug that existed the whole time, but was masked. When getting the "ro.product.device" property and converting the char * to std::string, the null-terminator was included. So, it was comparing, eg. "jfltexx" to "jfltexx\0".

EDIT2: Fixed in 8.0.0.r951.gf83bb62. The server should pick up the change and make a new snapshot build within a few minutes.

Thanks to [MENTION=2778919]sronweb[/MENTION] and [MENTION=2003972]blacklabel2020[/MENTION] for providing logs and screenshots
[Galaxy S 4 i9505 Original Android Development] jpeps:
We're is r942 I do not see it
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Unstable test builds are here: http://dl.dropbox.com/u/486665/Snapshots/DualBootPatcher/index.html
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Teaser for upcoming feature.

(Er... and the smoke alarm thumbnail icon is not part of it :p)
[Galaxy S 4 i9505 Original Android Development] blacklabel2020:
What's the pink icon on the bottom right?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Exactly :)