[Galaxy S 4 General] eBoody:
Hey guys!

I saw Modaco's toggler for the HTC One and the S4 to switch between google play edition and touchwiz and i said "hey....thats pretty cool"

So i made a tasker project that does something similar, and the main objective is to allow you to toggle between two different Rom's via Nandroid backups.

Obviously this has its plus's and minus's, but hey it works! Ill post a video with a demo and instructions.

[YOUTUBE]qBRtNJ5oyvc[/YOUTUBE]

i like aosp for my personal use. But when i go to a party the camera on touch wiz is muuuuch better, and when i go to class, touch wiz has indispensable features. So i made this to not have to compromise.

I used this to fix my GPS on CM10.1 by toggling to my TW rom, getting a lock then toggling back to CM10.1, and it works! wheras before it didnt. of course.

Its intended to be a tool that just sits there till you need it. And it's nice to be able to switch roms whenever i get bored of the current one.

So first, lets get the requirements out of the way:

REQUIREMENTS

1. Must have an external SD card! (if you want me to make one for internal only, let me know!)

2. You must have these things on BOTH Nandroid Backups so do these step by step if youre installing a new rom:

a. Tasker (duuuh)

b. Secure Settings, Install helper! (https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin)

c. Busybox (https://play.google.com/store/apps/details?id=stericson.busybox)

d. Flash Onandroid Tool (http://xdaforums.com/showthread.php?t=1620255)

or you can get Obackup tool from the playstore and install the script from there. its probably easier.

(https://play.google.com/store/apps/details?id=com.pommedeterresautee.twoborange3)

e. My projects XML (https://docs.google.com/file/d/0B7iTLxpFAyDRQXZqTnlKN2NWeWc/edit?usp=sharing)

f. This is Optional but i really really recommend it...Helium (https://play.google.com/store/apps/details?id=com.koushikdutta.backup.license)

3. Tasker, secure settings, and busybox must have root access.

You can go to your supersu app or the supersu option at the bottom of settings (if youre on AOSP) and check it.

Now we can start setting it up! Its not difficult, it just takes a bit of time to let android do its thing..

SET-UP

FIRST MAKE A NANDROID BACKUP OF YOUR CURRENT ROM AND STORE IT ON YOUR COMPUTER!!! not on your phone, just in case.

1.

If youre on a TouchWiz Rom:

Put the XML on your SdCard (internal or external)

Open tasker

Press menu / Preferences / make sure begginer mode is unchecked

long press the Home button on the bottom left, its a picture of a house.

Press import

Navigate to the XML file on your phone and import.

Now go to your homescreen

add a 1x1 tasker widget to your homescreen (or you can export the project as an app by long pressing it / export / export as app)

Find "TW's Rom toggle" in the list, press it, press the back button on your phone.

Go to helium and backup all the things you may want (SMS, user dictionary, tasker, so on and so forth)

Press the widget, and press "Nandroid Backup"

If youre on an AOSP Rom:

Put the XML on your SdCard (internal or external)

Open tasker

Press menu / Preferences / make sure begginer mode is unchecked

long press the Home button on the bottom left, its a picture of a house.

Press import

Navigate to the XML file on your phone and import.

Now go to your homescreen

add a 1x1 tasker widget to your homescreen (or you can export the project as an app by long pressing it / export / export as app)

Find "AOSP's Rom toggle" in the list, press it, press the back button on your phone.

Go to helium and backup all the things you may want (SMS, user dictionary, tasker, so on and so forth)

Press the widget, and press "Nandroid Backup"

2.

Now, go to recovery, wipe cache, dalvik, system, data, and preferably internal storage.

If youre on TW, flash an AOSP rom of choice &Restore helium backup

if youre on AOSP, flash a TW rom of choice & Restore helium backup

Go back to Step 1.

AWESOME!

So now you have a button on your phone that allows you to do backups and restores back and forth between two roms!

Keep in mind that the first backup can take a while...especially on touchwiz. but afterwards it goes much faster!

You have to do a helium backup before you switch and a restore after you switch to sort of semi-kind of keep the data pool shared...im going to see if i can remedy that somehow..

I just set up helium to do backups of certain apps every few hours ia the schedule function so that makes it easier.

Thanks to ameer1234567890 and Snoopy33 for the onandroid tool, because its cooool.

MY XML:

https://docs.google.com/file/d/0B7iTLxpFAyDRQXZqTnlKN2NWeWc/edit?usp=sharing

Just as a heads up, you can easily use one or more of these profiles to automate nandroid backups. The backup profiles will save the nandroid to your extSdCard and replace the previous one.

If anyone has an idea of how to deal with app data between TW and AOSP please let me know!

And of course, and questions concerns requests are very welcome!