• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MOD] [APP][KERNEL][Manta] RomSwitcher | Dualboot | Stable

Search This thread

Grarak

Recognized Developer
Jan 16, 2012
2,799
10,495
Vienna

N3Mqzk7.png



proudly presents


Dualboot for Nexus 10


I DO NOT OWN THIS DEVICE
thanks to @add12364 for testing

This is a Mod which allows you to switching between any Rom and any AOSP based rom.

Code:
System.out.println("

	Your warranty is now void

	I am not responsible for bricked devices, dead SD cards
	thermonuclear war, or you getting fired because the alarm app failed. Please
	do some research if you have any concerns about features included in this ROM
	before flashing it! YOU are choosing to make these modifications, and if
	you point the finger at me for messing up your device, I will laugh at you

	Submitting bug reports on nightly builds is the leading
	cause of male impotence.

");

Before you install this, please read the whole post!
Your first rom can be any Rom and second rom is any AOSP rom.
The second rom is installed on the /cache partition.
/data and /cache folder are in /data/media/.secondrom

This Mod switchs between two kernels.
The App will grab the kernel from your first rom, AOSP will use my ramdisk modified Kernel.

The RomSwitcher App will download the all needed files for you.
They will be in /sdcard/romswitcher

Sources:
https://github.com/RomSwitchers/RomSwitcher-manta
https://github.com/RomSwitchers/RomSwitcher

How to install?
You can use every AOSP rom as second rom
Download any AOSP rom. Extract it and open META-INF/com/google/android/updater-script
Look for this line (some roms have two of them)

Code:
mount("ext4", "EMMC", "/dev/block/platform/dw_mmc.0/by-name/system", "/system");

and replace it with

Code:
mount("ext4", "EMMC", "/dev/block/platform/dw_mmc.0/by-name/[B]cache[/B]", "/system");

then delete these lines

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

and

Code:
package_extract_file("boot.img", "/dev/block/platform/dw_mmc.0/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/dw_mmc.0/by-name/cache", "/system");

Zip your rom and gapps.

If you have troubles with editing the updater script, you can use my modified Paranoid Android Rom
http://d-h.st/qjO

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 current rom.

Now download and install my app
https://github.com/RomSwitchers/Downloadlinks/raw/master/RomSwitcher/RomSwitcher.apk

Open RomSwitcher and follow the instructions. (You need Root and BusyBox to use the App)

Screenshot_2013-10-03-20-27-23.png
Screenshot_2013-10-03-20-27-42.png
Screenshot_2013-10-03-20-27-49.png

Screenshot_2013-10-03-20-27-54.png
Screenshot_2013-10-03-20-28-03.png
Screenshot_2013-10-03-20-28-10.png


XDA:DevDB Information
RomSwitcher Manta, a Kernel for the Google Nexus 10

Contributors
Grarak
Kernel Special Features:

Version Information
Status: Testing

Created 2013-09-14
Last Updated 2013-10-05
 
Last edited:

Grarak

Recognized Developer
Jan 16, 2012
2,799
10,495
Vienna

Wipe data/cache on AOSP rom
Wipe data:
Delete /data/media/.secondrom/data
Wipe cache:
Delete /data/media/.secondrom/cache

Install new AOSP rom
Wipe cache in recovery and delete /data/media/.secondrom
then flash your new rom

Remove AOSP rom
Wipe cache in recovery and delete /data/media/.secondrom

Do you want support me?
You can buy me a beer via PayPal
Press Thanks
Press "Tip us?" above the OP
Rate this Thread with 5 Stars
Report bugs

FAQ

I forget my password for RomSwitcher! help?!!
delete /sdcard/romswitcher-tmp/pass

I can't switch back to firstrom! why?
Check root access, check busybox, use SuperSu

Why the app keeps force closing?
Not my problem. I've written the app that this shouldn't happen

I want to remove 2nd rom. How???!!
Wipe options in the app

Error in recovery when I install 2nd rom!
don't use editor, wordpad, .. (all windows programms)
 
Last edited:

Grarak

Recognized Developer
Jan 16, 2012
2,799
10,495
Vienna

Credits

CyanogenMod (for kernel)
Jijonhyuni (using the same dualboot method as he does on Galaxy Nexus)
Gokhanmoral (using some scripts of his Siyah Kernel)
add12364 (for testing and support)
[email protected] (GraSwitcher Banner)
Paul O'Brian (for concept)

Changelog
05 Oct
RomSwitcher App:
Rework on the App:
new features:
Setup Menu
enable App/Data Sharing
Wipe options for 2nd rom
OTA updates
Password

RomSwitcher Kernel:
use /data/media/.secondrom as folder for data and cache for 2nd rom
new scripts for App/Data Sharing

15 Sept
RomSwitcher Kernel:
Enable App/Data Sharing (Experimental)

29 Aug
Inital Release

 
Last edited:
  • Like
Reactions: FCB-Fan

abdel12345

Senior Member
Dec 25, 2012
5,915
1,528
Awesome I'd like to try this but I'll wait till I know more about my nexus 10

Sent from my Nexus 10 using xda app-developers app
 

tb01110100

Senior Member
Jun 19, 2012
91
16
22
Hoosierland
This is awesome. Congrats on your hard work, and look forward to trying this out soon!

-------------------------------------------------------------------------------------
Sent from my Nexus 10
Devices:
Nexus 10 - Paranoid Android 3.98 - Der Kernel 3X
Nook Tablet - CM 10.2 - NOF Showtime Kernel
 

Grarak

Recognized Developer
Jan 16, 2012
2,799
10,495
Vienna
Good news for Xperia Z users

Mithun successful ported it

App sharing is on the way. Nexus devices will get it first
 
Last edited:

tb01110100

Senior Member
Jun 19, 2012
91
16
22
Hoosierland
When you go through the process of modifying the updater scripts and then flashing the modified zips, will that become the 2nd rom and NOT overwrite the rom you already have installed? Just making sure I known what's happening before I do this. Thanks!

-------------------------------------------------------------------------------------
Sent from my Nexus 10
Devices:
Nexus 10 - Paranoid Android 3.98 - Der Kernel 3X
Nook Tablet - CM 10.2 - NOF Showtime Kernel
 

Grarak

Recognized Developer
Jan 16, 2012
2,799
10,495
Vienna
When you go through the process of modifying the updater scripts and then flashing the modified zips, will that become the 2nd rom and NOT overwrite the rom you already have installed? Just making sure I known what's happening before I do this. Thanks!

-------------------------------------------------------------------------------------
Sent from my Nexus 10
Devices:
Nexus 10 - Paranoid Android 3.98 - Der Kernel 3X
Nook Tablet - CM 10.2 - NOF Showtime Kernel


why should I give you instructions which override your current rom?


So could this be used to dual boot CM and Ubuntu touch?

That to me would be the biggest reason to use this mod.

Do you think an android app will run on ubuntu touch?

Sent from my GT-I9500 using xda app-developers app
 

Koopa777

Senior Member
May 18, 2012
764
326
why should I give you instructions which override your current rom?




Do you think an android app will run on ubuntu touch?

Sent from my GT-I9500 using xda app-developers app

Please, cut the guy a break, the instructions in the OP aren't exactly what I'd call 'clear.' The instructions clearly state that the "default kernel for the first ROM is CM kernel." Sure sounds to me like this erases/alters the current ROM, or else how would the CM kernel get on my device, currently running Trinity? It also says that we can use any kernel we want, well the kernel I want is already installed, again, does it alter the current ROM or not? If not, where does the CM kernel come into play on the random AOSP ROM that I elect to flash as the second ROM? Then in the second post there is no indication of which AOSP ROM is being changed. If I just follow those instructions I wipe both ROMs, unless we redo the script edit before the flash, which is not stated there. Finally, how would I change just the first ROM? I can't wipe cache, as that would blow away the second ROM. Do I have to reinstall both?

As for Ubuntu, I was even unaware that UT lacks the Dalvik VM. A simple explanation would have sufficed.

I immensely respect both you and what you are doing, for both the device and the community as a whole, and I am not trying to be hostile or to be an ass, so please don't take offense to this. Just please don't go jumping down people throats, especially over a procedure that is deeply removed from the realm of everyday protocol, even for people on XDA.
 

DroidZombie

Senior Member
Feb 20, 2012
670
170
As for Ubuntu, I was even unaware that UT lacks the Dalvik VM. A simple explanation would have sufficed.

I immensely respect both you and what you are doing, for both the device and the community as a whole, and I am not trying to be hostile or to be an ass, so please don't take offense to this. Just please don't go jumping down people throats, especially over a procedure that is deeply removed from the realm of everyday protocol, even for people on XDA.

Thank you for the support Koopa.


To the OP below is the reason I was CURIOUS about the possibility of Ubuntu touch working with this method. I never demanded that it work with android apps. I know that it would not.

Canonical on Ubuntu wiki said:
How is Ubuntu Touch connected to Android?
The independent open source project CyanogenMod which is based on Android and tries to improve and extend the existing Android Basis has been taken by the developers as a kind of underlaying basis for Ubuntu Touch. The kernel and a few low level drivers for network, video, audio and some other hardware features are taken, all the higher level parts have been taken out. On top of this the whole Ubuntu is started in an chroot environment.

This is what does work on UT.

Canonical on Ubuntu wiki said:
Which applications do run on Ubuntu Touch?
Ubuntu Touch is primarily designed to support web apps, and native apps programmed in qml and javascript or C++. As it is a real linux, of course all non graphical applications run equally as on any other linux system. You can ssh to Ubuntu Touch and run any console based application.

X11 is not supported (so far) so all GUI standard applications will not run.

and...

Canonical on Ubuntu wiki said:
Can I develop programs directly on Ubuntu Touch?
Ubuntu Touch is a real linux, of course you can install a c compiler and all the rest of the essential-build system and can develop on the mobile devices like on any other linux.

Maybe now you will understand why I was so interested in your project. The development possibilities are enormous.

Next time think before you tear into people.
 

Grarak

Recognized Developer
Jan 16, 2012
2,799
10,495
Vienna
Ubuntu touch works with that method on my gnexus. But have to modify the whole ramdisk to make switching working and I am really too lazy to do it for a device which I don't own. Be happy that I am supporting this device. I really didn't want to support the nexus 10.

Sent from my GT-I9500 using xda app-developers app
 

DroidZombie

Senior Member
Feb 20, 2012
670
170
Ubuntu touch works with that method on my gnexus. But have to modify the whole ramdisk to make switching working and I am really too lazy to do it for a device which I don't own. Be happy that I am supporting this device. I really didn't want to support the nexus 10.

Sent from my GT-I9500 using xda app-developers app


Right then. Are you willing to help someone else learn how to do it? I assume from your signature that you are trying to build a "team". I volunteer.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 11

    N3Mqzk7.png



    proudly presents


    Dualboot for Nexus 10


    I DO NOT OWN THIS DEVICE
    thanks to @add12364 for testing

    This is a Mod which allows you to switching between any Rom and any AOSP based rom.

    Code:
    System.out.println("
    
    	Your warranty is now void
    
    	I am not responsible for bricked devices, dead SD cards
    	thermonuclear war, or you getting fired because the alarm app failed. Please
    	do some research if you have any concerns about features included in this ROM
    	before flashing it! YOU are choosing to make these modifications, and if
    	you point the finger at me for messing up your device, I will laugh at you
    
    	Submitting bug reports on nightly builds is the leading
    	cause of male impotence.
    
    ");

    Before you install this, please read the whole post!
    Your first rom can be any Rom and second rom is any AOSP rom.
    The second rom is installed on the /cache partition.
    /data and /cache folder are in /data/media/.secondrom

    This Mod switchs between two kernels.
    The App will grab the kernel from your first rom, AOSP will use my ramdisk modified Kernel.

    The RomSwitcher App will download the all needed files for you.
    They will be in /sdcard/romswitcher

    Sources:
    https://github.com/RomSwitchers/RomSwitcher-manta
    https://github.com/RomSwitchers/RomSwitcher

    How to install?
    You can use every AOSP rom as second rom
    Download any AOSP rom. Extract it and open META-INF/com/google/android/updater-script
    Look for this line (some roms have two of them)

    Code:
    mount("ext4", "EMMC", "/dev/block/platform/dw_mmc.0/by-name/system", "/system");

    and replace it with

    Code:
    mount("ext4", "EMMC", "/dev/block/platform/dw_mmc.0/by-name/[B]cache[/B]", "/system");

    then delete these lines

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

    and

    Code:
    package_extract_file("boot.img", "/dev/block/platform/dw_mmc.0/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/dw_mmc.0/by-name/cache", "/system");

    Zip your rom and gapps.

    If you have troubles with editing the updater script, you can use my modified Paranoid Android Rom
    http://d-h.st/qjO

    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 current rom.

    Now download and install my app
    https://github.com/RomSwitchers/Downloadlinks/raw/master/RomSwitcher/RomSwitcher.apk

    Open RomSwitcher and follow the instructions. (You need Root and BusyBox to use the App)

    Screenshot_2013-10-03-20-27-23.png
    Screenshot_2013-10-03-20-27-42.png
    Screenshot_2013-10-03-20-27-49.png

    Screenshot_2013-10-03-20-27-54.png
    Screenshot_2013-10-03-20-28-03.png
    Screenshot_2013-10-03-20-28-10.png


    XDA:DevDB Information
    RomSwitcher Manta, a Kernel for the Google Nexus 10

    Contributors
    Grarak
    Kernel Special Features:

    Version Information
    Status: Testing

    Created 2013-09-14
    Last Updated 2013-10-05
    3

    Wipe data/cache on AOSP rom
    Wipe data:
    Delete /data/media/.secondrom/data
    Wipe cache:
    Delete /data/media/.secondrom/cache

    Install new AOSP rom
    Wipe cache in recovery and delete /data/media/.secondrom
    then flash your new rom

    Remove AOSP rom
    Wipe cache in recovery and delete /data/media/.secondrom

    Do you want support me?
    You can buy me a beer via PayPal
    Press Thanks
    Press "Tip us?" above the OP
    Rate this Thread with 5 Stars
    Report bugs

    FAQ

    I forget my password for RomSwitcher! help?!!
    delete /sdcard/romswitcher-tmp/pass

    I can't switch back to firstrom! why?
    Check root access, check busybox, use SuperSu

    Why the app keeps force closing?
    Not my problem. I've written the app that this shouldn't happen

    I want to remove 2nd rom. How???!!
    Wipe options in the app

    Error in recovery when I install 2nd rom!
    don't use editor, wordpad, .. (all windows programms)
    2
    A huge update!

    you can use any rom as firstrom now!

    Turn off app and data sharing

    please delete sdcard/romswitcher to update
    2
    why should I give you instructions which override your current rom?




    Do you think an android app will run on ubuntu touch?

    Sent from my GT-I9500 using xda app-developers app

    Please, cut the guy a break, the instructions in the OP aren't exactly what I'd call 'clear.' The instructions clearly state that the "default kernel for the first ROM is CM kernel." Sure sounds to me like this erases/alters the current ROM, or else how would the CM kernel get on my device, currently running Trinity? It also says that we can use any kernel we want, well the kernel I want is already installed, again, does it alter the current ROM or not? If not, where does the CM kernel come into play on the random AOSP ROM that I elect to flash as the second ROM? Then in the second post there is no indication of which AOSP ROM is being changed. If I just follow those instructions I wipe both ROMs, unless we redo the script edit before the flash, which is not stated there. Finally, how would I change just the first ROM? I can't wipe cache, as that would blow away the second ROM. Do I have to reinstall both?

    As for Ubuntu, I was even unaware that UT lacks the Dalvik VM. A simple explanation would have sufficed.

    I immensely respect both you and what you are doing, for both the device and the community as a whole, and I am not trying to be hostile or to be an ass, so please don't take offense to this. Just please don't go jumping down people throats, especially over a procedure that is deeply removed from the realm of everyday protocol, even for people on XDA.
    1

    Credits

    CyanogenMod (for kernel)
    Jijonhyuni (using the same dualboot method as he does on Galaxy Nexus)
    Gokhanmoral (using some scripts of his Siyah Kernel)
    add12364 (for testing and support)
    [email protected] (GraSwitcher Banner)
    Paul O'Brian (for concept)

    Changelog
    05 Oct
    RomSwitcher App:
    Rework on the App:
    new features:
    Setup Menu
    enable App/Data Sharing
    Wipe options for 2nd rom
    OTA updates
    Password

    RomSwitcher Kernel:
    use /data/media/.secondrom as folder for data and cache for 2nd rom
    new scripts for App/Data Sharing

    15 Sept
    RomSwitcher Kernel:
    Enable App/Data Sharing (Experimental)

    29 Aug
    Inital Release