Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,086 Members 54,454 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
mithun46
Old
(Last edited by mithun46; 30th August 2013 at 10:33 AM.)
#1  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1652
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Default [MOD] [KERNEL] [C6503] ROMSwitcher | Mithun's Rom Switcher | Alpha [DUALBOOT]




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:
Select Code
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
with this wherever u see it

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

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

Code:
Select 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:
Select Code
run_program("/sbin/busybox", "mount", "/system");
with

Code:
Select 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


The Following 31 Users Say Thank You to mithun46 For This Useful Post: [ Click to Expand ]
 
mithun46
Old
(Last edited by mithun46; 30th August 2013 at 11:02 AM.)
#2  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1652
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME

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]
The Following 13 Users Say Thank You to mithun46 For This Useful Post: [ Click to Expand ]
 
mithun46
Old
(Last edited by mithun46; 30th August 2013 at 11:03 AM.)
#3  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1652
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME

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

If you consider my efforts worthwhile then Donate or Thank me
The Following 8 Users Say Thank You to mithun46 For This Useful Post: [ Click to Expand ]
 
motoxxxx
Old
#4  
motoxxxx's Avatar
Senior Member
Thanks Meter 33
Posts: 224
Join Date: Jul 2011
Location: California
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: [ Click to Expand ]
 
mithun46
Old
#5  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1652
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Quote:
Originally Posted by motoxxxx View Post
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
If you consider my efforts worthwhile then Donate or Thank me
 
Master of Bisaster
Old
#6  
Master of Bisaster's Avatar
Senior Member
Thanks Meter 188
Posts: 377
Join Date: Aug 2012
Location: Styria
@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
Hit if I've helped you!
 
mithun46
Old
#7  
mithun46's Avatar
Recognized Contributor - OP
Thanks Meter 1652
Posts: 1,231
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Quote:
Originally Posted by Master of Bisaster View Post
@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
If you consider my efforts worthwhile then Donate or Thank me
 
dbolivar
Old
#8  
Senior Member
Thanks Meter 306
Posts: 269
Join Date: Nov 2012
Location: Sao Paulo, Brazil
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: [ Click to Expand ]
 
sturmtruppler
Old
#9  
sturmtruppler's Avatar
Senior Member
Thanks Meter 117
Posts: 336
Join Date: Sep 2012
...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: [ Click to Expand ]
 
havanahjoe
Old
#10  
havanahjoe's Avatar
Senior Member
Thanks Meter 175
Posts: 615
Join Date: Jul 2008
Location: San Diego
Quote:
Originally Posted by sturmtruppler View Post
...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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes