yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Themes and Apps] chavdar:
Kudos man, most works great!

Tested so far:

1) Backup from 1st ROM with 0-compression - OK

2) Restore over existing second rom from 1st rom - OK

3) Backup from 2nd ROM with 0-compression - OK

4) Restore Backup (created on second ROM) from 1st ROM- also OK

Want to test further - Compression, OTG Storage, Backup 1st Rom (CWM), wipe all, then install fresh 1st ROM and then restore 2nd ROM

Update: Backup with compression does not work - the files get created, but the app does not see them - says 0 MB Backup size. This behavior is consistent on both 1st and 2d ROM
[Galaxy S 4 Themes and Apps] gaww:
I restored backup I made with 1.2. Also, it sees the backup on the internal SD now and was selectable as a restoreable backup.

Now, with Chen having released multi-boot - ???

Update - i used compression.
[Galaxy S 4 Themes and Apps] rlorange:
OK thanks mate I'll fix the file detection
[Galaxy S 4 Themes and Apps] chavdar:
Hi mate, do you think you can also add backup for the first multi-slot? Currently I can't boot into 3d rom because the switcher app cant see it, but once chen fixes that it would be great to backup first multi-slot.

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] Bejda:
Hello,

About this i did some test again and tend more and more to think there's no way for now to update our primary rom without having to flash secondary:

http://xdaforums.com/showpost.php?p=47915171&postcount=3426

(around page 343 of Chenxiaolong Noobdev rom)

Actually secondary system and system dual files doesn't seems to get deleted but for reason i don't get there's no way to boot to secondary without reflashing secondary rom.

Maybe I'm just still doing something wrong though, would be great if someone could test update primary rom with modified updater-script.

If confirmed it would be then very useful for one bringing lots of modifications to his secondary system to have possibility to restore/backup only secondary system :o
[Galaxy S 4 Themes and Apps] chavdar:
[MENTION=3145598]rlorange[/MENTION] - hi mate, I am afraid I have some bad news. Did a clen install of another TW Rom as a primaty and now the app cannot see the correct size of the archive.

I think this is the reason why afterwards, when I try to restore it say there is not enough space left, although I have 5GB free and the zips are 2,8 GB. I have also enough space under /system

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] chavdar:
Here the second screenshot

The backup uses 0-compression.

Or is it the new SuperSu

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] rlorange:
Yep i've found the problem and a new version is coming soon
[Galaxy S 4 Themes and Apps] chavdar:
Don't want to put pressure on you or anything, but I was wondering whether to build my second rom again or wait for the release and restore my backup... :D

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] rlorange:
You can try the latest build:

https://mega.co.nz/#!g9t2UIyY!VM1QNo7Hp110xy2JK9jxedZPPBzsfV5JISlzZvKMRRs

But depending on which method you used to create your backup it may not work.
[Galaxy S 4 Themes and Apps] chavdar:
Hi rlorange,

I used no compression and the new app version cannot see the backup at all.

It also shows the same string as the previous version for the size of the sd and external sd though.

Will wait until you make a new release
[Galaxy S 4 Themes and Apps] rlorange:
Your backup might be no good sorry the bug in the last release was using compression to make the backup. It has a wrong command. So I would suggest you start from clean slate
[Galaxy S 4 Themes and Apps] chavdar:
Will do

So a backup created with thd new version shoul work fine right?

I have another question also - I was already able to restore this back up before flashing the new Primary ROM.

Why do you thik the archive could be corrupt?

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] gaww:
Looks like I am out of luck restoring a compressed backup made with 1.2 - nothing works.

Going forward, with the latest build of 2.0 produce and restore backups that are compressed, or do we need to stay with uncompressed ?

Ditto for version previous to 1.2. While it only restored from external - it worked, but do not recall if it handled compression.
[Galaxy S 4 Themes and Apps] rlorange:
Yeah I messed up a a command forgot the letter z lol and it was a tricky one to debug actually...

Hey good news I'm making CWM zip versions of this mod!
[Galaxy S 4 Themes and Apps] gaww:
Bummer - I use TWRP - lol.

PS - will latest 2.0 make a restore-able compressed backup OK ?
[Galaxy S 4 Themes and Apps] rlorange:
Should work fine on latest app. I use TWRP too so you're in luck
[Galaxy S 4 Themes and Apps] chavdar:
Waiting eagerly for it!

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] gaww:
I have reached the point where i cannot either backup or restore anything. It either says I have not enough room, or it restores but won't boot back up.

Been trying 2.0a build and even went back to original app where I had good luck as long as I changed kernel to kernels. Compressed mode in all cases won't work, so tried uncompressed - which resulted in the not enough room errors.

However, when I flashed an update to primary ROM (which wipes out secondary), I can reflash secondary and the secondary data is still there with plenty of room as it boots right up - so not sure what to try next.
[Galaxy S 4 Themes and Apps] rlorange:
Yeah I'm pretty over the app mate trying to detect disk sizes across different setups is doing my head in with my limited skills...

I'll switch to cwm zips maybe aroma if I can figure it out. At least recovery is fairly standard across most rom setups
[Galaxy S 4 Themes and Apps] gaww:
Your efforts are appreciated and not taken for granted.

I was surprised to not be able to use the original one to make and restore backups. Since it has not changed, I must be doing something wrong.

I usually did it without compression but may have done so - not sure if it worked. I can live with that version if working until you sot it out or give up - which I would understand if it was the case - lol.
[Galaxy S 4 Themes and Apps] rlorange:
Thanks mate :) just no time at the moment sorry
[Galaxy S 4 Themes and Apps] bastardociccio:
I tryed this with:

primary rom (samsung MK8 ITV)

secondary rom (google edition 4.4.2)

I backup the secondary rom

I restore the backup from my recovery (so I come back without secondary rom)

I restore the secondary rom and it works...

great job

I'm waiting for the next update

:)
[Galaxy S 4 Themes and Apps] gaww:
Which backup app version did you use - I have not been able to restore from anything recently and would like to give it another try?
[Galaxy S 4 Themes and Apps] bastardociccio:
I use the version in this formun: v1.2

I backup & restore from primary rom (samsung firmware mk8)

I make the backup "compressed" because if i make the backup not compressed the app don't see the backup ... don't know why...

With che compressed backup works

;)
[Galaxy S 4 Themes and Apps] gaww:
Thanks - will try again. I think I may have backed up form 4.4.2 secondary and tried to restore it. Will do both on the primary this time.
[Galaxy S 4 Themes and Apps] rlorange:
Ok guys could you test this version out please https://www.dropbox.com/s/8q06se72kzmr01f/Dual_Boot_Backup.2.1a.apk

Make sure there is no file 'type' in your backup folder and Portugal won't work with backups from older versions
[Galaxy S 4 Themes and Apps] gaww:
Will do.

My try above did not work again - it may be that I went from 4.2.2 and MDL to 4.3 OTA modded ROM and MK2, as I was not able to backup/restore with older versions I had used several times before

UPdate:

I cleaned up all of the old installation and installed and ran new version. I get the not enough room error message when trying to backup with compression and uncompressed on External SD. Ditto on internal. Have a lot of room on both. Think it may be that it still doesn't like firmware/ROM above.
[Galaxy S 4 Themes and Apps] chavdar:
Test results

[MENTION=3145598]rlorange[/MENTION]: Hi man, I tested the new app and have found the following:

1 ) If there is no existing backup folder, the app cannot create one and does not start the backup (it starts, but does nothing)

2 ) after creating a folder on the ext SDcard, the backup went fine. After the backup, the app seems to have troubles reinitialising again.

If it is closed and then openened however, the problems dissapear.

3 ) 2nd ROM restore - I tried restoing the second ROM over the same second rom (noobdev cm 11 20131215 by the way) - all OK :D

3) 2nd ROM clean restore - I deleted manually all the second ROM */dual folders and restored the ROM - all went fine (other than the reinitialising business at the end ) - :D

All was done with 0-comp. I will now try to do it with compression and report back.

But so far it does the most important bussiness -backuo and restore!

Cudos man!
[Galaxy S 4 Themes and Apps] rlorange:
Great I'm about to speed the backup times by 4x or so!!!
[Galaxy S 4 Themes and Apps] yunn:
Thanks for sharing, try it .
[Galaxy S 4 Themes and Apps] chavdar:
Ok, I tested with compression and unfortunately it does not work at all. The backup starts, remains at 0% for abot 5 sec and thwn says done...

Are you planning on adding multi boot backup and restore?

That would be awesome!

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] gaww:
I manually re- created the backup folder on the external SD. With both uncompressed and compressed, it again says I do not have sufficient room.

Ia gain think there is something about the 4.3 OTA based ROM I am suing now - on similar 4.2.2 ROM, everything worked.

Note - trying compressed backup on noobdev nightly - it is creating a backup (20% done) . Will update latter when I try to restore it

It now says I don't have enough space on internal memory to restore the backup and to delete some files and try again. I have a lot of space, and would be over-writing existing ROM, so I don't get it.

I still think it is not working on TMo 4.3 update ROM with MK2 modem - anyone have it working with that combo?
[Galaxy S 4 Themes and Apps] freak.hh:
Hello,

Thanks for your brilliant app. This is very useful.

One little question from a newbie in dualboot.

When I understood everything correct, I could back my secondary Rom and restore it as primary. Afterwards I can wipe system and data from secondary with utilities zip and flash a new one. Is this possible?

Thanks

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 Themes and Apps] rlorange:
Thanks man still not complete yet proving tricky to iron out all the bugs.

Restoring secondary to primary is not implemented yet because I need a way of patching back the kernel to revert the dual boot changes which point to different folders
[Galaxy S 4 Themes and Apps] freak.hh:
Thanks. That's what I thought. That the kernel could make problems.

Means I have to wait until you find a way ;)

At the moment I run only my secondary Rom but could not flash themes or mods because they are not patchable. My plan was to use only this Rom for now. And I'm too lazy to flash with a full wipe and install everything again ;)

Wish you luck for your work and of course all the best for the New Year

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 Themes and Apps] rlorange:
You CAN Do it manually.

Just find which theme folders there are in the zip and unzip the corresponding apk with root Explorer from /system/dual.

Then copy everything over from the theme patch replacing the files in res etc.

Then zip using root Explorer and rename to .apk

rename the original apk to .bak and paste your modded version

Edit: as for patching the kernel... I think the best solution would be for the user (you) to place the recovery zip of the NON dual patched kernel into a folder in the internal storage. Since every dual boot rom started with an original version this shouldn't be a problem
[Galaxy S 4 Themes and Apps] freak.hh:
Wow.. Thanks for your explanation. But part one could be a little bit too complicated.

I play a lot with mod's and themes.

Do I understand you correct... I should swap the kernel from the patched Rom with the original kernel?

Phew.. Never done this before. Only played with apps, themes and stuff like this but never with parts of the system/kernels. Only Flashed custom kernels.

Gesendet von meinem GT-I9505 mit Tapatalk
[Galaxy S 4 Themes and Apps] gaww:
I am still ot able to do anything with US TMo OTA based 4.3 ROM. I can make a backup while on my secondary ROM but can't restpre it anymore on my primary ROM.

Question - would restoring secondary from another multi-boot ROM rather than using the primary ROM work?
[Galaxy S 4 Themes and Apps] rlorange:
No no! You can't do that directly!! Chen's patcher app is VERY advanced it actually strips apart the actually kernel image and Changes stuff. So transplanting from primary to secondary won't work...

My idea is that the user could put the original kernel zip in a directory. Remember the original zip is for primary only. Once patched the Kernel itself is changed... WAY too hard to revert to original paths. :)
[Galaxy S 4 Themes and Apps] rlorange:
As for theming. The method I mentioned is effectively doing what the installer zip does. Apks are just zipped folders if you rename to zip you can do normal zip stuff and just rename to apk when you're done :)
[Galaxy S 4 Themes and Apps] rlorange:
Yes that would be because stock ROMs don't have a proper custom busybox baked in. I've tried to make my app non reliant on having one but unfortunately my app needs a ROM busybox installed properly. Your secondary obviously has this.

Try sterricson installer for busybox use smart install to /system/xbin then uninstall and reinstall my app and tell super su to re-grant permissions...

Failing that.. Install a custom ROM s primary
[Galaxy S 4 Themes and Apps] gaww:
Thanks, but the stock based ROM has busybox already in it and it is installed in /system/xbin. ROM worked ok on 4.2.2 version - restored secondary several times. But when it was updated on 4.3 OTA base, can not even create secondary backup much less restore it. That is why I was wondering if I could restore with a multi-slot ROM.
[Galaxy S 4 Themes and Apps] rlorange:
That doesn't mean your busybox hasn't broken it's setup somehow during the update. Working fine here on 4.3 foxhound... Multislot 1 won't work I would have to change all the paths
[Galaxy S 4 Themes and Apps] rlorange:
UPDATE: DualBoot backup & Restore V2.3a

- Refined ui

-fixed problems not creating backup folder

- EXCLUSIVE PIGZ accelerated gzip tool

https://www.dropbox.com/s/43k6pryslpef7k4/Dual_Boot_Backup.2.3a.apk
[Galaxy S 4 Themes and Apps] chavdar:
Hi man,

yesterday I had some time to try out the new 2.3a version and have the following results for you

1) so the app is creating the missing folders, this works fine

2) backup without compression is ok, restore also, although after restore the the dual boot switcher was not able to find the second ROM kernel and I had to reflash it. Other than that its all good

3) Backup with PIGZ is not working for me, starts creating the backup but remains at 0% and after 30 seconds cancels the backup

4) I tried to revert to GZIP and try with it, but somehow after showing the warning about reverting, nothing happens. The app says original GZIP successfully restored, then I press Backup second ROM and nothing happens....

PS: I do all my backups on the External SD card, since I have no space left on the internal

Hope this helps
[Galaxy S 4 Themes and Apps] arnes_king:
Very nice and useful app, i hope that it will support what is written there for newer versions :D
[Galaxy S 4 Themes and Apps] gaww:
Still cannot do a backup anymore.

I moved 2.2 GB of GPS maps off of the internal SD to make more room, but Internal Memory Storage shows - FREE= %INT FREE MB. It then aborts when trying to backup.

Again - don't think it likes 4.3 US TMo OTA based ROM. Any suggestions ?
[Galaxy S 4 Themes and Apps] bastardociccio:
I also have some problem...

Use the old version 1.2
[Galaxy S 4 Themes and Apps] gaww:
I have tried ALL of them. I can make a backup while on the secondary (it sees the space on the internal SD), but will not do anything on the primary.

To the OP - if you could just get the internal SD space recognized in 4.3 (am on US TMo), I believe it would all work OK.
[Galaxy S 4 Themes and Apps] Jsilver73:
Not sure what I'm not doing, when I start the app in primary ROM it only gives options for second ROM (although whilst the app is starting up I can see the options for 1st ROM and 2nd ROM but then when it loads only 2nd ROM options. When I try to backup it starts but then finishes within 10 second. I have tried with and without the the gzip EDIT: just managed to get to the 1st ROM backup box but when I press it nothing happens? Of anyone could help that would be fantastic!
[Galaxy S 4 Themes and Apps] rlorange:
Those are functions not implemented yet! May never be because the kernels would have to be patched to turn a second rom backup into a working primary ROM and vice versa
[Galaxy S 4 Themes and Apps] chavdar:
It would be nice to get the compression working though. I found the tool as it is perfect ?

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] Jsilver73:
it doesn't seem to work for me no matter what I do - I click backup and either compression or no saving to internal sd card with over 4gb free it says its completed in 10 seconds which cant be right??
[Galaxy S 4 Themes and Apps] chavdar:
2.3 has some problem with restoring the kernels. Try 2.1a - it works with zero compression

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] rlorange:
Yep sorry I'll update again soon just working on an elaborate universal simlink system for all my apps to hopefully fix a lot of busybox compatibility issues
[Galaxy S 4 Themes and Apps] chavdar:
No pressure, man. The 2.1a still does the job...

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] rlorange:
OK guys with have a backup/restore recovery flashable ZIP pair ready to release soon...
[Galaxy S 4 Themes and Apps] rlorange:
Nearly finished with the new versions guys. It will be 6 CWM zips allowing backup/restore
[Galaxy S 4 Themes and Apps] chavdar:
Waiting to test them!

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] Technical:
I would love to use these tools, but I can't even got the dual boot to work. I'm asking for help in the main thread but nobody answers... Lack of support :crying:
[Galaxy S 4 Themes and Apps] chavdar:
The OP is very detailed. Were exactly do you have a problem?

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] Technical:
Well, I got a lot of luck and dual boot back. I don't think I'm able to reproduce the problem again. Thanks anyway. Will test the backup in a minute.
[Galaxy S 4 Themes and Apps] rlorange:
OK finally!!!

Twin recovery flashable zips.

Tested only with TWRP recovery!! Someone please test for other recoveries and report back.

NOTE: The new location for backups is:

/extSdCard/dual-boot-bk/dual

So move your backup there if you already have one.

NOTE2: This will only work for gz.tars for now.

https://www.dropbox.com/s/zluedu60x1r41sx/DualBoot_BACKUP_ExtSD.zip

https://www.dropbox.com/s/tjkyno989oh8nxy/DualBoot_RESTORE_ExtSD.zip
[Galaxy S 4 Themes and Apps] CiDev:
dual boot

thx for this app
[Galaxy S 4 Themes and Apps] Technical:
Sorry my ignorance, but what do these files do? I mean, for what should I flash them? Won't the apk do the job?
[Galaxy S 4 Themes and Apps] rlorange:
Latest version just posted is a recovery flashable zip the app will be update to match soon
[Galaxy S 4 Themes and Apps] gravedigger76:
Do you have to have the folder already created on exd card or will it create it if its not there?
[Galaxy S 4 Themes and Apps] rlorange:
It will create it for you...

Just a note to everyone the recovery version will ONLY work using TWRP
[Galaxy S 4 Themes and Apps] rlorange:
Yeah the apk will do the job. The recovery zips are an alternative. Useful if your primary ROM is broken lol! Mainly just recovery setup is universal so it should work the same for everyone
[Galaxy S 4 Themes and Apps] chavdar:
I finally found vsome time to play with .zips. I am on Philz Touch 6.15.4 and your script is not searching for sdcard1, which is actally the ExtSd. it ends saying no ExtSd. Here the log:

Welcome to... |

| |

| Dual-Boot Backup & Restore V3.0 |

| |

| Backup 2ndROM > external SDcard |

-----------------------------------

Mounting /system, /data & Storages...mount: mounting /dev/block/platform/msm_sdcc.1/by-name/userdata on /data failed: Device or resource busy

mount: can't find /sdcard in /etc/fstab

mount: can't find /external_sd in /etc/fstab

Extracting operation files...

Archive: /storage/sdcard1/0.[ROM+MODEM+KERNEL]/Mods/DualBoot/DualBoot_BACKUP_ExtSD.zip

creating: META-INF/

inflating: META-INF/CERT.RSA

inflating: META-INF/CERT.SF

inflating: META-INF/MANIFEST.MF

creating: META-INF/com/

creating: META-INF/com/google/

creating: META-INF/com/google/android/

inflating: META-INF/com/google/android/update-binary

inflating: META-INF/com/google/android/updater-script

inflating: busybox

inflating: sbintwrp.tar

tar: can't open '/tmp/twrpsbin.tar': No such file or directory

Checking your system setup...

You DO NOT have an extSD card...

Now aborting...

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] rlorange:
Yep I use TWRP and it's only compatible with that atm sorry
[Galaxy S 4 Themes and Apps] gaww:
I used it successfully already - backed up and restored. I have not been able to get the apps (any version) to work on my TW primary since it was updated to 4.3, so the zips are my only option.
[Galaxy S 4 Themes and Apps] rlorange:
Yep it's very hard to account for different busybox setups so that's why I made the zips :)
[Galaxy S 4 Themes and Apps] rlorange:
Update :

DualBoot Backup & Restore V 3.1

- Now compatible with TWRP and Philz recovery

https://www.dropbox.com/s/825rionf3ert0ls/DualBoot_BACKUP_ExtSD_V3.1.zip

https://www.dropbox.com/s/afmgxr2kdtionmg/DualBoot_RESTORE_ExtSD_V3.1.zip
[Galaxy S 4 Themes and Apps] chavdar:
The zips work great! Tested them both on Philz and everything was fine. Even deleted system and data of dual ROM before I did the restore to make sure it really does the job.

Maybe now you can add support for multi boot, preferably in aroma.

Great job, man. Very nice tools for flashoholics :D

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] bastardociccio:
this works with rom on "multi slot 1" ?

Or only with rom on "secondary" (dual) ?

The question is:

Is there a way to backup/restore a rom in multi-slotX ?
[Galaxy S 4 Themes and Apps] chavdar:
It clearly says dual...

Yes it could probably be done

Sent from the GT-I9505 Galaxy
[Galaxy S 4 Themes and Apps] chavdar:
Muti-slot-1 and Multi-slot-2 Backup & Recovery

I want to present a little something, that might help all of the flash-o-holics out there. It is based on the Dual Boot Backup and Recovery from rlorange and allows you to backup and restore multi-slot-1 and multi-slot-2 ROMs

I just adapted it to work with muti-slot-1 and multi-slot-2. All the credits go to rlorange and I am posting with his permission.

The Backup .zip creates a folder in the ExtSD under /dual-boot-bk/ called multi-slot-1 or muti-slot-2 depending which .zip you are using. It functions the same as the Dual Boot Backup and Recovery.

I have only tested multi-slot-1 and it worked fine. Please Backup your data before trying multi-slot-2. Feedback will be appreciated

It should be possible to inter-restore ROMs (just rename the directory), but you have to flash the right kernel in Recover after restore!!!

Also not tested, please give feedback.

Now the links:

https://www.dropbox.com/s/yc82fl1mdebncyp/Multislot1_BACKUP_ExtSD_V3.1.zip

https://www.dropbox.com/s/12xo6xp57dk6j0q/Multislot1_RESTORE_ExtSD_V3.1.zip

https://www.dropbox.com/s/rkgiavesgskqx33/Multislot2_BACKUP_ExtSD_V3.1.zip

https://www.dropbox.com/s/lv4irylrvee86if/Multislot2_RESTORE_ExtSD_V3.1.zip

Enjoy !!! :good:
[Galaxy S 4 Themes and Apps] bastardociccio:
Thanks

it's exactly what I need for...