[MOD] [KERNEL] [pollux_windy] ROMSwitcher [DUALBOOT]

Status
Not open for further replies.

bluefa1con

Inactive Recognized Developer
Aug 9, 2011
3,161
9,211
0



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 device get bricked or transform into a monster and eat up your cat.

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 folders for second ROM is in /data/dual/

This Mod switches between two kernels.
For Timescape you have to use my CWM kernel for Sony Rom, for AOSP you have to use my modified CM kernel which will be automatically downloaded by the app.

What is this project about?
Its about a dual boot implementation that is somewhat universal and supports a lot of device. We are the Rom Switchers.

Default kernel for Timescape is Stock Sony Kernel with CWM,
if you want to use another kernel, replace fiirst.img in /sdcard/romwitcher/ with your favorite kernel(must support the rom you are installing).

Sources:
Kernel Source
Dual Boot ramdisk


Currently only supports pollux_windy (might port to pollux if there is enough support)
How to install?
You can use any AOSP rom for second rom!
Needs Unlocked bootloader
First Install stock ROM .ftf
Install CWM kernel and root from HERE
Install BusyBox from HERE

Lazy Version
Open Your AOSP rom zip and copy this zip over it- LINK
Open Your Gapps zip and copy this zip over it- LINK

Long Version
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");
and

Code:
assert(getprop("ro.product.device") == "SGP311" || getprop("ro.build.product") == "SGP311" || 
       getprop("ro.product.device") == "SGP312" || getprop("ro.build.product") == "SGP312" || 
       getprop("ro.product.device") == "pollux_windy" || getprop("ro.build.product") == "pollux_windy");
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 the app
Download app here

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

NOTE: Currently First Rom needs to be Sony and Second rom any aosp rom, you can manually replace the first.img with a stock cm kernel to dual boot 2 aosp roms (the folder is /sdcard/romswitcher/, this method should work but i have not tested it due to lack of time)

That's all have fun :)



XDA:DevDB Information
[MOD] [KERNEL] [pollux_windy] ROMSwitcher [DUALBOOT], a Kernel for the Sony Xperia Tablet Z

Contributors
bluefa1con, mithun46
Kernel Special Features:

Version Information
Status: Testing

Created 2013-09-05
Last Updated 2013-09-06
 

bluefa1con

Inactive Recognized Developer
Aug 9, 2011
3,161
9,211
0
Reserved


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

Currently Using a AOSP rom as first rom?
Here is a experimental method, try and report
copy your /data partition on sdcard (wipping data from flashtools deletes internal sdcard)
After following instructions and installing rom
Copy the /data backup to /data/dual/2ndromdata

Support us
Press Thanks
Press "Tip us?" above the OP
Rate this Thread with 5 Stars
Report bugs

Future Plans
An app to Install directly to second rom (already in development)
A recovery to manage RomSwitch project (talking to some recovery developers)
Share data between first and second rom to have a unique dual boot experience and share apps (already in development)

Devices ROMSwitcher Supports
Google Nexus 10 [manta]
Samsung Galaxy S4 [i9500]
Sony Xperia ZL [C6503]
Sony Xperia Z C6603
 
Last edited:

bluefa1con

Inactive Recognized Developer
Aug 9, 2011
3,161
9,211
0
Reserved


Credits
@Grarak - For Coming up with this amazing idea
@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
@mithun46 - for core development of rom switch and helping me get fimiliar with Sony Devices
Changelog

5-09-2013
First Release

 
Last edited:

Shanliang-

Senior Member
Jun 2, 2013
155
102
0
shansblog.byethost7.com
I have followed all the steps here indicated, like this:

  • Starting with a fresh flash of a Sony stock 4.2.2 firmware.
  • Flashing modified kernel and rooting.
  • Modifying PAC nightly (09.05) updater-script.
  • Modifying GApps updater-script.
  • Flashed them both, first ROM, then GApps.
  • Successfully booted stock.
  • Installed ROMSwitcher.
  • Opened it and it downloaded a download.zip.
  • After finishing downloading, re-opened ROMSwitcher.
  • It receives root permissions but then it's just a black screen, all I see is top and bottom bars.
I guess that when I open ROMSwitcher, it should show me a menu with both roms, right? What could I've done wrong? Should I flash that download.zip or something?

I'd appreciate any help :) Thanks in advance.
 
Last edited:

bluefa1con

Inactive Recognized Developer
Aug 9, 2011
3,161
9,211
0
I have followed all the steps here indicated, like this:

  • Starting with a fresh flash of a Sony stock 4.2.2 firmware.
  • Flashing modified kernel and rooting.
  • Modifying PAC nightly (09.05) updater-script.
  • Modifying GApps updater-script.
  • Flashed them both, first ROM, then GApps.
  • Successfully booted stock.
  • Installed ROMSwitcher.
  • Opened it and it downloaded a download.zip.
  • After finishing downloading, re-opened ROMSwitcher.
  • It receives root permissions but then it's just a black screen, all I see is top and bottom bars.
I guess that when I open ROMSwitcher, it should show me a menu with both roms, right? What could I've done wrong? Should I flash that download.zip or something?

I'd appreciate any help :) Thanks in advance.
How big is the size of download.zip? It should be in /sdcard/romswitcher
I assume you have installed busybox too

Sent from my GT-I9100 using Tapatalk 4
 

Half Alive

Senior Member
Jun 16, 2012
233
90
48
Jeddah
Can you tell me what did i do wrong?

after unpacking Gaaps + carbon AOSB based rom .. edited the update-script file.
flashed with cwm ..

installed RomSwitcher apk .waited for the Download.zip to finish downloading

Opened the app again .. selected 4.3 rom

the app get root permission ,. then restarting to the same stock rom.

download.zip size is : 20.39MB
 

xam1988

Senior Member
Apr 28, 2013
55
10
0
Kiev
What rom it supoted??
I instal whis cm-10.2-20130905-NIGHTLY-pollux_windy.zip
And after select Android open sourse project 4.3
i take rebut system only ((

Us I see you mistake. First and second img its one file. whis diferent name.
 
Last edited:

bluefa1con

Inactive Recognized Developer
Aug 9, 2011
3,161
9,211
0
Can you tell me what did i do wrong?

after unpacking Gaaps + carbon AOSB based rom .. edited the update-script file.
flashed with cwm ..

installed RomSwitcher apk .waited for the Download.zip to finish downloading

Opened the app again .. selected 4.3 rom

the app get root permission ,. then restarting to the same stock rom.

download.zip size is : 20.39MB






What rom it supoted??
I instal whis cm-10.2-20130905-NIGHTLY-pollux_windy.zip
And after select Android open sourse project 4.3
i take rebut system only ((

Us I see you mistake. First and second img its one file. whis diferent name.
You guys didn't install busy box
Get it from playstore

Sent from my GT-I9100 using Tapatalk 4
 

xam1988

Senior Member
Apr 28, 2013
55
10
0
Kiev
You guys didn't install busy box
Get it from playstore

Sent from my GT-I9100 using Tapatalk 4
I have instaling busy box.
Us i right download.zip has two same img. file.
to 11 MB ich one.

Can you posted here corectly
Second.img???

Us i understend
first.img - its stock core.
second.img - must be moded core for pollux_windy roms.
But in folder we have same img. file
 
Last edited:

Half Alive

Senior Member
Jun 16, 2012
233
90
48
Jeddah
^
Yes it have the same size.. But If it's the same kernel I think when we switch to the AOSP rom we should get a bootloop !?
Or maybe that's how it works .. with the same modded kernels
...

I've deleted the RomSwitcher folder containing the two kernels and download.zip and give it another try.
Got the same result .. restarting to the stock rom. =/
 
Last edited:

xam1988

Senior Member
Apr 28, 2013
55
10
0
Kiev
I've deleted the RomSwitcher folder containing the two kernels and download.zip and give it another try.
Got the same result .. restarting to the stock rom. =/
I raplese core from
cm-10.2-20130905-NIGHTLY-pollux_windy.zip
to
RomSwitcher folder
and
raname it to second.img

After choose selected 4.3 rom
I see CM images.
But after black display and dont wont start ((
I flash my firmware againe.
 

bluefa1con

Inactive Recognized Developer
Aug 9, 2011
3,161
9,211
0
I raplese core from
cm-10.2-20130905-NIGHTLY-pollux_windy.zip
to
RomSwitcher folder
and
raname it to second.img

After choose selected 4.3 rom
I see CM images.
But after black display and dont wont start ((
I flash my firmware againe.
thats because the default cm image u used is not configured to boot second rom and its trying to boot sony files
what i think went wrong with your installs is busybox because busybox is supposed to change kernel from first.img to second.img
did u use smart install on that app?
i am uploading the same first.img and second.img to my host so u guys can try that too but i think the issue here is busybox if u already have working root and cwm
 

Half Alive

Senior Member
Jun 16, 2012
233
90
48
Jeddah
thats because the default cm image u used is not configured to boot second rom and its trying to boot sony files
what i think went wrong with your installs is busybox because busybox is supposed to change kernel from first.img to second.img
did u use smart install on that app?
i am uploading the same first.img and second.img to my host so u guys can try that too but i think the issue here is busybox if u already have working root and cwm
I don't think it's busybox related.. I'm sure it's installed correctly.
When I tried to install busybox to another folder.. The device didn't reboot at all.
So I think rebooting the device means that busybox is working.

And you didn't tell us.. does the two. img files have the exact same size?
 
Last edited:

xam1988

Senior Member
Apr 28, 2013
55
10
0
Kiev
thats because the default cm image u used is not configured to boot second rom and its trying to boot sony files
what i think went wrong with your installs is busybox because busybox is supposed to change kernel from first.img to second.img
did u use smart install on that app?
i am uploading the same first.img and second.img to my host so u guys can try that too but i think the issue here is busybox if u already have working root and cwm
I flash second.img from fasboot to my tablet, and after restart my tablet start in stock rom/
it means that you include to download.zip
the same core. this diferent name!
 
  • Like
Reactions: Half Alive

bluefa1con

Inactive Recognized Developer
Aug 9, 2011
3,161
9,211
0
I flash second.img from fasboot to my tablet, and after restart my tablet start in stock rom/
it means that you include to download.zip
the same core. this diferent name!
oh God! derped really hard there, was really tired when i posted that
uploading the second.img again, will also update the app's links
 
  • Like
Reactions: Half Alive

xam1988

Senior Member
Apr 28, 2013
55
10
0
Kiev
updated files pushed
delete the files in /sdcard/romswitcher/ folder and let the app download it again :)
All Ok. Work perfectly.
SGP 311 STOK 4.2.2 + cm-10.2-20130905-NIGHTLY-pollux_windy.zip

Big senks for your work.
And sory for my English.

Sent from my SGP311 using xda app-developers app
 
Last edited:
  • Like
Reactions: bluefa1con
Status
Not open for further replies.