yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 i9505 Original Android Development] aukhan:
Thanks a lot for the confirmation Ill share it on the guide thread, a lot of members were having this questions now its time to calm the storm.
[Galaxy S 4 i9505 Original Android Development] suzook:
I am sorry for asking basic question, but on note 4, if I use wipe ROM, does that just wipe data?? Thanks
[Galaxy S 4 i9505 Original Android Development] sronweb:
[MENTION=4277844]chenxiaolong[/MENTION]

please, do you know about the issue reported by some user where if you have CM12 with custom kernel then I clean system, cache and dalvik with the multiboot utilities and I flash CM12 and gapps without kernel.

The result is a that after apps and android check after the boot my phone restart again with infinite boot animation.

If I flash a different kernel I get boot loop

If I flash over the existing kernel I can boot normally again.

Please, do you have suggestion? Can i provide a log to investigate if you don't know about this issue?

Thank you

PS: I just tested using last patcher version 1112.
[Galaxy S 4 i9505 Original Android Development] franzyroy:
French translation done!:cool:
[Galaxy S 4 i9505 Original Android Development] gaww:
I have S4, and the Note 4 partitions are different sizes, but the operations should be the same I would think (except I think cache is very limited is size).

When you say "wipe ROM", I am assuming you only wipe the /system - either the whole on in recovery or one of the Duel Boot slots with the Utility. Either way ROM data remains, so if you flashed a patched ROM again, you will boot up with data intact.
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Merged, thank you! :D
[Galaxy S 4 i9505 Original Android Development] suzook:
I just want to wipe data on primary ROM.
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Well so far we have TWRP and custom kernel for Tmo S6 Edge!
[Galaxy S 4 i9505 Original Android Development] shadowcliffs:
Can I use the dualboot method to bypass the bootloop on my Note 4? My Note 4 is stuck at bootloop (only boot to Samsung Logo and reboot by itself, and so on). I can enter recovery (official or custom) or downloading mode. I have tried factory reset, wipe cache, flash custom recovery and install various roms, all with the same result.

It seems the first step to setup dual boot is to have a working system and install Dual Boot Patcher? Can I just flashed a patched rom then start that system with dualbootutilities? Sorry for the noob question for I have no idea how the dual boot thing works.

Any thought is appreciated.

Update: dualbootutilities and patched rom just went fc during starting up/flashing in custom recovery. What could have been the cause? It might as well be the reason that caused bootloop at the first place. Partition error, or defective hardware?
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Note 4 recovery doesn't support aroma
[Galaxy S 4 i9505 Original Android Development] gaww:
So select primary in DuelBoot Utilities and wipe data. If you do it in recovery, you will wipe data for all other MultiROMs also.

---------- Post added at 03:21 PM ---------- Previous post was at 02:45 PM ----------

Did you make a backup before you started this? If you did, restore and start over by installing Duelboot app and setting primary kernel. Then flash patched ROM.

Note - you said DuelbootUtilities FC'd in recovery. Was that as it started up or when your tried to do something like switching ROMs. Never had it FC - would just report an error if something was not done.
[Galaxy S 4 i9505 Original Android Development] shadowcliffs:
They wont run. Fc during flashing.

Will restore a backup made for another phone of the same model work? When clean flash roms including stock one doesn't work, I wonder if restore will make a difference.
[Galaxy S 4 i9505 Original Android Development] gaww:
What recovery and version were you using? Not sure if recovery from other phone will work - it may. Why not wipe everything and try flashing a non-patched ROM first?
[Galaxy S 4 i9505 Original Android Development] shadowcliffs:
Thanks for helping out. I flashed stock with custom recovery (phliz and twrp), and odin flashed stock 4.4 nk4, and kies flashed stock nk4, all end up with the same result. This phone is very unusual comoared to others phones i have played with. I used to believe that as long as a phone can enter recovery and odin mode, it can be unbricked till I have this phone. It's also out of warranty and knox trippled.
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
Just curious, are you using a tri-band (T)?
[Galaxy S 4 i9505 Original Android Development] shadowcliffs:
The phone mentioned here is a T-Mobile Note 4 SM-N910T. But yes, I am also in possession of a SPH-L720T.
[Galaxy S 4 i9505 Original Android Development] peppe130:
[MENTION=4277844]chenxiaolong[/MENTION] Hi Chen! :) I had an idea.. Since the patcher release in first page is obsolete, why don't you put the direct link to the last working snapshot release?
[Galaxy S 4 i9505 Original Android Development] gaww:
Surprised ODIN (which version) doesn't bring it back. The last step would be to ODIN with the partitions box checked in case something there want bad. By any chance is it still under warrantee ?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
If anyone knows of a C++ library to parse the binary xml files inside of an apk file, please let me know! I'm getting pretty close to having app and data sharing working with no side effects.

EDIT: Nevermind, found libandroidfw in the AOSP sources.

EDIT2: Here we go, super stripped down version of libandroidfw: https://github.com/chenxiaolong/libaxmlparser A sample program that converts the binary XMLs to regular XMLs is included, if anyone is interested.
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
This is great! We almost have roms up for the Edge
[Galaxy S 4 i9505 Original Android Development] lvguy85:
can you add 'kltetmo'

can you add 'kltetmo' to galaxy s5? Thanks this is an awesome app!!!
[Galaxy S 4 i9505 Original Android Development] flexxoo:
Is MultiBoot compatible with 5.1?

Because I been having issues with a rom aicp 5.1 that it will flashed but won't show the Gapps that I flashed and I have to patched as a custom preset because it doesn't have other options any ideas?
[Galaxy S 4 i9505 Original Android Development] george stamatos:
I flashed this gapps and I have no problem

http://xdaforums.com/showthread.php?t=2943330
[Galaxy S 4 i9505 Original Android Development] flexxoo:
Are you flashing aicp in dual or multislot?
[Galaxy S 4 i9505 Original Android Development] george stamatos:
On multislot
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Im going to be trying on the tmo s6 soon.
[Galaxy S 4 i9505 Original Android Development] skivnit:
Nice let us now, I have the international s6 edge wonder if it's the same

Sent from my SM-G900F
[Galaxy S 4 i9505 Original Android Development] Quote100:
I saw that this supported the g3 so I downloaded it and updated my ramdisk (keep in mind that I had to uninstall and reinstall for some reason) and then I rebooted and my kernel crashed (I took a backup before starting this process) so I flashed my backup and I'm back now but I think I updated the ramdisk while it was on the s3 configuration so that might've crashed my kernel. That being said I really think that the app should auto detect what device you have and switch the configuration to said device so it won't do that to this to anyone else. Thanks for the great work though it functions perfectly!
[Galaxy S 4 i9505 Original Android Development] rlorange:
Newly released tested on note 4 only

http://xdaforums.com/showthread.php... Backup & Restore V1.0 [20/4/15][app/utility]

Note 4 users can repatch for direct recovery installations

---------- Post added at 05:02 AM ---------- Previous post was at 04:24 AM ----------

Anyone had any luck patching cmremix 5.1 on the note 4
[Galaxy S 4 i9505 Original Android Development] gaww:
I always ignore the "update ramdisk" in the patcher.
[Galaxy S 4 i9505 Original Android Development] Quote100:
Isn't it needed for app sharing?
[Galaxy S 4 i9505 Original Android Development] sronweb:
As far I know app sharing is not working yet. I understood it might be implemented soon. Remember that these are experimental versions.
[Galaxy S 4 i9505 Original Android Development] Quote100:
Ah alright I just assumed it was working but not posted yet because the option was there but alright
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
I noticed you added the ability for the Edge to use 64-bit binaries. [MENTION=4277844]chenxiaolong[/MENTION] what exactly does that mean?
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
All of the libraries and binaries included with the patcher are compiled for 4 architectures:

armeabi-v7a (32-bit ARM)

arm64-v8a (64-bit ARM)

x86 (32-bit Intel)

x86_64 (64-bit Intel)

From the boot.img you sent me before, I noticed that the S6 Edge is running a 64-bit version of Lollipop, so I changed the patcher to install 64-bit binaries. If I broke something, let me know and I'll change it back :)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Done! 8.0.0.r1119.g9c51715 should be built and uploaded shortly :)
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Just wondering. Also, does your app make use of the octacore when patching and flashing?
[Galaxy S 4 i9505 Original Android Development] lvguy85:
Right on bro thanks!!!!
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Good question :) I did some profiling on the patcher not too long ago and found that about 3% of the patching time is spent on actual patching and the rest is spent on recompressing the zip file. From what I've read, it is very hard to make the deflate algorithm used by zips multithreaded. Even 7zip doesn't support multithreaded zip compression like it does for other formats. I could make use of the extra cores during the patching, but it wouldn't make much of a difference.

What would make the process a lot faster is not compressing the patched zip at all (especially on the S6's UFS storage). Of course, that would take up more space. I might add an option to the app for this.

EDIT: Okay, I think I will add an option for this. Just did some testing on my computer and the patching time (on a Samsung 850 Pro SSD) went from 65 seconds to 9 seconds). I think people with 32GB devices would like this :)
[Galaxy S 4 i9505 Original Android Development] rlorange:
Do you use a PIGZ type parallel zip binary? My app makes gzip tar backups 3gb entire ROM in a matter of minutes

---------- Post added at 08:32 PM ---------- Previous post was at 08:30 PM ----------

Chen Zarchiver app on play is by far the fastest zip decompress/compress app I've used... Maybe look under the hood to see where the magic lies?
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Awesome sweet thanks! !
[Galaxy S 4 i9505 Original Android Development] skivnit:
So I can use the dual zip mode with the s6 edge international?

Sent from my SM-G900F
[Galaxy S 4 i9505 Original Android Development] v00d007:
The app is nice but why does it run all the time in the background, even when not in use? Could you plz remove the autorun from it?

[MENTION=4277844]chenxiaolong[/MENTION]

which patcher is the most reliable one atm for use with a S4 9505 running TWz LP and Cm12.1?
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
Do you have a rom to flash on the edge?
[Galaxy S 4 i9505 Original Android Development] skivnit:
Not yet :) no development yet, was just wondering

Sent from my SM-G900F
[Galaxy S 4 i9505 Original Android Development] axel87:
Hi all

I have a n910f I'm on TW custom rom does has anyone got this to work on the note 4 as a bit puzzled :/

Any help would be appreciated :)
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
pigz is for gzip though (which recently got native multithreaded support). I don't believe a similar thing exists for regular zip files.

Thanks for the info about Zarchiver! I'll take a look at how that app works.

EDIT: It uses the p7zip library. No wonder it's fast.

EDIT2: Did some benchmarking. It's only faster by 3-4 seconds (on PC w/SSD). The downside is that the library is bigger than 4MB, which could increase the apk size by 20MB since the patcher is compiled for 4 CPU architectures.
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
I think I'm going to try and get a Tom put together for the tmobile edge. I don't have work tomorrow so we'll see.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Its difficult since I make the app using tasker and app factory but I will try my man

Edit: actually it should be easy to kill three app service when you closeb it. I'll add it the next update
[Galaxy S 4 i9505 Original Android Development] flexxoo:
Your project mate it to the news! congrats man for your hardwork and keep doing what your doing because is making noise!!
[Galaxy S 4 i9505 Original Android Development] ktetreault14:
We might have a rom sooner than later on our lovely Edges
[Galaxy S 4 i9505 Original Android Development] rlorange:
3 to 4 seconds? well on android device it is probably twice as fast. It Def parallels zip operations somehow.

I'm using a zip binary to replace info.prop with my edited version for note4 recovery flashing. It doesn't unzip/rezip to achieve this.

You can get text info from the updater script with unzip too without unzipping so perhaps you could extract the info you need and then generate the files you need and then insert into the zip without uncompressing. I'm noobish but happy to share what I've figured out works
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Hmm... that's a good point. Right now, the data is copied directly from the source zip to the target zip without extraction, though an implicit recompression (in memory) happens in the background, which is what's so slow. Editing the zips would be a great workaround for this. I'll try implementing your method by doing a regular file copy from [file].zip to [file]_patched.zip and then editing the new zip file. This should hopefully avoid a lot of the recompression nonsense.

I'll have to stop using libarchive though, since as a streaming archive API doesn't support editing zips. There aren't too many choices for C/C++ zip libraries (even fewer for ones that support Windows).

EDIT: Just wondering: if you run "zip --help" with your zip binary, is it the busybox zip program or the Info-ZIP zip program (or some other one?) Thanks!

EDIT2: libzip does not have LFS support on Windows (>2GB files won't work). Still have to check miniz, minizip, libp7zip.

EDIT3: miniz might be exactly what I'm looking for: LFS support on Win32 and Linux and supports zip-to-zip copies without recompression: https://github.com/ValveSoftware/vogl/blob/master/src/voglcore/vogl_miniz_zip.h#L397 Perfect!
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
Thanks! Just need to finish implementing app sharing and we'll have a nice dual boot solution in our hands :D
[Galaxy S 4 i9505 Original Android Development] chenxiaolong:
By the way, my server is temporarily powered off to prevent damage to the hardware because my neighborhood has been getting a lot of power outages today. New snapshots will be built when I turn it back on.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Here's the latest version of my backup restore app.

https://www.dropbox.com/s/qd42vrnncumxd7g/Multboot_Backup_Restore.49_sign.apk?dl=0

The zip I use is installed to /data/local/rlbbox

This version has multi-slot-1 functions to test please!

Here's how I get the contents of info.prop and cut the last line off

su;

PATH=/data/local/rlbbox;

cd /;

cd /sdcard/Download;

mkdir -p rm -rf /sdcard/Download/multiboot;

unzip -p N4_N910G_AELKernel_v1_200415_patched.zip multiboot/info.prop > multiboot/info.txt;

WCNT=;

WCNT2=-3;

cat multiboot/info.txt | head -n > multiboot/info.prop;

---------- Post added at 03:39 PM ---------- Previous post was at 03:38 PM ----------

And after I use the zip binary to insert into the zip file

su;

PATH=/data/local/rlbbox;

cd /;

cd /sdcard/Download;

cp -f N4_N910G_AELKernel_v1_200415_patched.zip /sdcard/Download/primary_N4_N910G_AELKernel_v1_200415_patched.zip;

zip primary_N4_N910G_AELKernel_v1_200415_patched.zip -m multiboot/info.prop;

rm -rf /sdcard/Download/multiboot/

---------- Post added at 03:54 PM ---------- Previous post was at 03:39 PM ----------

It's not busybox no its a binary I dug up from somewhere
[Galaxy S 4 i9505 Original Android Development] v00d007:
And is autorun removed from this one?

Edit: just installed it. It doesn't detect my previously made backup of my dual rom. Backup files are on internal sd. ??
[Galaxy S 4 i9505 Original Android Development] rlorange:
When you close it it should stop running services in the background.

As for starting on boot not sure yet
[Galaxy S 4 i9505 Original Android Development] v00d007:
i just edited my last post, plz have a look.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Well that's weird man try wiping data I'll look into it

---------- Post added at 04:41 PM ---------- Previous post was at 04:35 PM ----------

More info needed. Are the backup files still there? What device are you using?
[Galaxy S 4 i9505 Original Android Development] v00d007:
Yes, they're still there. I also copied them to extsd but it's the same... Your previous build showed the backups that were detected in main screen, but now there are the installed roms listed instead... I can't see where i can select a backup instead of tapping into the backup function. But if no rom is detected i can't enter the slot for restoring purposes. It's somehow a not very conclusive concept...
[Galaxy S 4 i9505 Original Android Development] rlorange:
Ah yes I think I messed up adding something. If you want to backup or restore from a different memory tap the button to change storage first that fished the backup path once you choose a slot.

I'll whip up a fix now to test
[Galaxy S 4 i9505 Original Android Development] v00d007:
Most important would be that the main screen showed the backups and not the installed roms, that's the mistake atm - at least for me. Or maybe both??
[Galaxy S 4 i9505 Original Android Development] rlorange:
Ok fixed the detection issue.

https://www.dropbox.com/s/5qegsgqkn3z644f/Multboot_Backup_Restore.54.apk?dl=0

As for showing the backups first... Tap that big button above the info to toggle backup info or ROM info. That's the way I decided to do it

---------- Post added at 07:23 PM ---------- Previous post was at 07:20 PM ----------

---------- Post added at 07:30 PM ---------- Previous post was at 07:23 PM ----------

Could someone test backup & Restore functions for multi-slot-1 with the latest build 54?

---------- Post added at 08:00 PM ---------- Previous post was at 07:30 PM ----------

No unrelated. The info displayed can be toggled from backup to dual. I just messed up my variable regex detection lol
[Galaxy S 4 i9505 Original Android Development] todivefor:
54 won't install. Tried to install 49 and it installed fine. Tell me what you need?

edit: SPH-L720 running CM 12.1
[Galaxy S 4 i9505 Original Android Development] todivefor:
Backup of Slot-1 worked in 49. Need to backup (TWRP) before trying restore. Will also wait for 54 follow on.
[Galaxy S 4 i9505 Original Android Development] todivefor:
I have looked at this closer and it looks a little strange. The backup worked and there is data in the backup folder. Shouldn't multi2_boot.img be multi1_boot.img? Backup info is not showing valid backup.
[Galaxy S 4 i9505 Original Android Development] v00d007:
Ok. I dl'd it but as the other guy here said it won't install!! plz fix that one...
[Galaxy S 4 i9505 Original Android Development] skivnit:
Is there a list of supported devices since I see you mentioned note 4 and edge

Sent from my SM-G900F
[Galaxy S 4 i9505 Original Android Development] rlorange:
Doh I posted the unsigned app by accident

---------- Post added at 06:30 AM ---------- Previous post was at 06:29 AM ----------

Ah nice mate this is what I need. Cool its just I messed up my variable naming lol

---------- Post added at 06:31 AM ---------- Previous post was at 06:30 AM ----------

You can rename this to what it should be for now and see if it is detected

---------- Post added at 06:35 AM ---------- Previous post was at 06:31 AM ----------

Ok here is the working 54 version

https://www.dropbox.com/s/nz302rhu0zdowqz/Multboot_Backup_Restore.54_sign.apk?dl=0
[Galaxy S 4 i9505 Original Android Development] todivefor:
The new 54 installed. I renamed multi2_boot.img bto multi1_boot.img and it still does not show up as a valid backup.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Yeah it looks like the info file didn't copy either. Might leave that one out of detection since its not essential.

Go to /sdcard/MultiBoot/dual and copy config.json to the backup folder see if it detects then

---------- Post added at 07:27 AM ---------- Previous post was at 07:23 AM ----------

Argh another issue. It's not auto making the backup folders on the internal sd now... grrr
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
The Multiboot_Backup_Restore.54_sign.apk works for multislot-1, however it does not show a valid mutltislot-1 backup and still shows muti2_boot.img instead of multi1_boot.img in the backup folders as stated by [MENTION=2688336]todivefor[/MENTION].

My multislot-1 rom is Antares CM-12 5.02 will wipe it and try the restore.....see what happens.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Rename the boot img and see if it detects before trying any operations
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
Renamed the boot img it still did not detect, also tried a restore just to see and error message is in attached screenshot.
[Galaxy S 4 i9505 Original Android Development] side:
cant dualboot latest cm12 official for s4 9505 with latest cm12.1 official.

it says it cant install the other rom...(at logs it says my device is full even it has got 9 GB free)

any help please :/ ...
[Galaxy S 4 i9505 Original Android Development] davidroid03:
Note 3 error

Hi i tried to dual boot using this patcher on N9005. Unfortunately there is some error. Pls try to look. TIA
[Galaxy S 4 i9505 Original Android Development] shadowcliffs:
Can anyone tell me how to backup rom individually? I tried to follow op but got lost. Op says to use [MENTION=3145598]rlorange[/MENTION]'s awesome tool, but it seems the tool is for Note 4 only. Correct me if I'm wrong.
[Galaxy S 4 i9505 Original Android Development] 54NJ41:
Hi guys I need your help how much free space I need in the system partition.

And I managed to boot the secondary rom with the Google apps but when I boots into it no play store, no super user, and I can't even add Google account.

Device. Note 3 n9005

Primary rom. Tw based

Secondary rom. Cm 12

System partition size. 558mb

Please help.
[Galaxy S 4 i9505 Original Android Development] rlorange:
Did you change you path to internal SD before running?
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
Yes, tried both and still did not work.
[Galaxy S 4 i9505 Original Android Development] v00d007:
It's really getting kinda funny... 1st screenshot sais all ok for dual, then nothing's ok?? have a look:
[Galaxy S 4 i9505 Original Android Development] rlorange:
Lol yeah I'm trying to put in checks and balances so people don't do stupid things but I'm rushed no time to do it properly lol.

Thanks for testing. I'll sort it all out once and for all once I have time
[Galaxy S 4 i9505 Original Android Development] v00d007:
So then for now, I'll take your very 1st release. That one does backup/restore from internal sd only, but it works.
[Galaxy S 4 i9505 Original Android Development] shadowcliffs:
How do I flash a new rom to primary while keep the second rom (on multi-slot 1)? TIA.
[Galaxy S 4 i9505 Original Android Development] JhoonB51:
In order to flash new to primary and keep secondary/dual you must patch the new primary before flashing.