Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD] [KERNEL] [C6503] ROMSwitcher | Mithun's Rom Switcher | Alpha [DUALBOOT]

OP mithun46

28th August 2013, 03:01 PM   |  #1  
mithun46's Avatar
OP Recognized Contributor
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,682
 
1,236 posts
Join Date:Joined: Oct 2012
Donate to Me
More



Mithun's Rom Switcher




This is a Mod which allows you to switching between Timescape and any AOSP based rom.
It's only for advanced users and I am not responsible if your XZL get bricked or transform into a monster and eat up your cat
It is still in alpha state, but is working for daily use

Before you install this, please read the whole post!
Your first rom is Stock Timescape and second rom is any AOSP rom.
The second rom is installed on the /cache partition.
/data and /cache folder are in /data/dual/

This Mod switches between two kernels.
For Timescape you can use any kernel, for AOSP you have to use my modified CM kernel.

Why I created this Mod?
XZL had very little development and fusion3 devices haven't got a multiboot option like this

Default kernel for Timescape is DooMKernel,
if you want to use another kernel, replace xperia.img in /sdcard/romwitcher/ with your favorite kernel.

Sources:
https://github.com/RomSwitchers

How to install?
You can use any AOSP rom!
First Install stock ROM .ftf and root it and install recovery
Then Flash DooMKernel
Download any AOSP rom. Extract it and open META-INF/com/google/android/updater-script
replace this line

Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
with this wherever u see it

Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/cache", "/system");
then delete these lines

Code:
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
and

Code:
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
You will need Gapps
Get it here http://goo.im/gapps/

Extract it and open updater-script
and replace

Code:
run_program("/sbin/busybox", "mount", "/system");
with

Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/cache", "/system");
Zip your rom and gapps.

Flash both in recovery. (first rom then gapps)
DO NOT WIPE ANYTHING

Reboot your phone and if you did all correct. You should boot into your Timescape Stock rom.

Now download and install my app
here

Open ROMSwitcher and follow the instructions. It will fetch required files automatically

NOTE: Currently Recovery works on Stock ROM only

That's all have fun


Last edited by mithun46; 30th August 2013 at 11:33 AM.
The Following 31 Users Say Thank You to mithun46 For This Useful Post: [ View ]
28th August 2013, 03:03 PM   |  #2  
mithun46's Avatar
OP Recognized Contributor
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,682
 
1,236 posts
Join Date:Joined: Oct 2012
Donate to Me
More

Wipe data/cache on AOSP rom
Wipe data:
Delete /data/dual/2nddata
Wipe cache:
Delete /data/dual/cache

Install new AOSP rom
Wipe cache in recovery and delete /data/dual
then flash your new rom

Remove AOSP rom
Wipe cache in recovery and delete /data/dual

Do you want support me?
Donate to Grarak - here
You can buy me a pepsi via Google Wallet - Details in Signature
Press Thanks
Press "Tip us?" above the OP
Rate this Thread with 5 Stars
Report bugs

Devices ROMSwitcher Supports
Google Nexus 10 [manta]
Samsung Galaxy S4 [i9500]
Sony Xperia Z [C6603]
Last edited by mithun46; 30th August 2013 at 12:02 PM.
The Following 13 Users Say Thank You to mithun46 For This Useful Post: [ View ]
28th August 2013, 03:04 PM   |  #3  
mithun46's Avatar
OP Recognized Contributor
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,682
 
1,236 posts
Join Date:Joined: Oct 2012
Donate to Me
More

Credits
@Grarak - For all, Awesome Base and all. Simply talking - "Thanks to Grarak for a loooot!!!!"
@Jijonhyuni - using the same dualboot method as he does on Galaxy Nexus
@gokhanmoral - using some scripts of his Siyah Kernel
Paul O'Brian - for concept
@DooMLoRD and @dbolivar - for xperia.img [DooMKernel]

Changelog

28-08-2013
First Release

Last edited by mithun46; 30th August 2013 at 12:03 PM.
The Following 8 Users Say Thank You to mithun46 For This Useful Post: [ View ]
28th August 2013, 05:54 PM   |  #4  
motoxxxx's Avatar
Senior Member
California
Thanks Meter: 33
 
224 posts
Join Date:Joined: Jul 2011
More
Can I use SkyDragon Rom plus CM10.2? Do I needed to flash stock rom or can I stay with SkyDragon Rom, just install CM1.2?
The Following User Says Thank You to motoxxxx For This Useful Post: [ View ]
28th August 2013, 05:55 PM   |  #5  
mithun46's Avatar
OP Recognized Contributor
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,682
 
1,236 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by motoxxxx

Can I use SkyDragon Rom plus CM10.2? Do I needed to flash stock rom or can I stay with SkyDragon Rom, just install CM1.2?

U need to flash stock ftf with wiping all then flash sky dragon then follow guide to get dual boot

Sent from my C6503 using Tapatalk 4
28th August 2013, 08:19 PM   |  #6  
Master of Bisaster's Avatar
Senior Member
Flag Styria
Thanks Meter: 188
 
378 posts
Join Date:Joined: Aug 2012
More
@mithun46 Great work, a reason to buy ZL, and one hint: you have written "You should boot into your Touchwiz Rom."

Sent from my LT18i using xda app-developers app
28th August 2013, 08:21 PM   |  #7  
mithun46's Avatar
OP Recognized Contributor
Flag ▒▅|▆|█|▆|▅▒
Thanks Meter: 1,682
 
1,236 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by Master of Bisaster

@mithun46 Great work, a reason to buy ZL, and one hint: you have written "You should boot into your Touchwiz Rom."

Sent from my LT18i using xda app-developers app

Oops

Sent from my C6503 using Tapatalk 4
28th August 2013, 08:32 PM   |  #8  
Senior Member
Flag Sao Paulo, Brazil
Thanks Meter: 313
 
274 posts
Join Date:Joined: Nov 2012
More
Wow, that's some serious badass development! Congratulations @mithun46, I plan to test it soon! It's good to have some people like you bringing new development for the ZL. Thanks!
The Following User Says Thank You to dbolivar For This Useful Post: [ View ]
28th August 2013, 09:40 PM   |  #9  
sturmtruppler's Avatar
Senior Member
Thanks Meter: 125
 
368 posts
Join Date:Joined: Sep 2012
More
...really, really awesome!!! It's a pity I don't have the time to test it this weekend, but I certainly will test it!

One question though: both roms are completely independant, right? If I install one app on stock, it's not automatically installed in AOSP, right?

Thank you very much for your great work!!!

Sony Xperia ZL C6503, rooted, 4.2.2 Stock
The Following User Says Thank You to sturmtruppler For This Useful Post: [ View ]
29th August 2013, 01:15 AM   |  #10  
havanahjoe's Avatar
Senior Member
Flag San Diego
Thanks Meter: 243
 
805 posts
Join Date:Joined: Jul 2008
More
Quote:
Originally Posted by sturmtruppler

...really, really awesome!!! It's a pity I don't have the time to test it this weekend, but I certainly will test it!

One question though: both roms are completely independant, right? If I install one app on stock, it's not automatically installed in AOSP, right?

Thank you very much for your great work!!!

Sony Xperia ZL C6503, rooted, 4.2.2 Stock

Correct, they each have their own /data partition, hence the second post on how to clear /data for the AOSP ROM.

The Following User Says Thank You to havanahjoe For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes