Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,580 Members 40,568 Now Online
XDA Developers Android and Mobile Development Forum

[Roms]DualRom-The dual booting solution for Incredible. Use any Rom!!(Update)4-26-11

Tip us?
 
Team ADX
Old
(Last edited by Team ADX; 28th May 2011 at 09:41 PM.)
#1  
Team ADX's Avatar
Member - OP
Thanks Meter 42
Posts: 48
Join Date: Oct 2010
Location: In a Yellow Submarine
Default [Roms]DualRom-The dual booting solution for Incredible. Use any Rom!!(Update)4-26-11

The below info will remain for historical informations but this system has been replaced by a better system found at http://forum.xda-developers.com/show....php?t=1100777


DualRom ***Dual boot 2 roms on your Droid Incredible***

Team ADX presents your dual booting solution for the Droid Incredible. Please Read entire post before using any of the zips given. Undo zip in second post to put your phone back to the state it was in before flashing these zips.

I have added some empty shells to allow people to use any rom. See bottom of first posts.
DualRom comes in DualRomSenseFroyo and DualRomCM7. We wanted to give you the option to basically use the opposite of what you would use as your normal rom. CM7 is CM7. It was compiled from CM7 source and only made changes needed for it to boot off interanl storage. SenseFroyo is stock rom with Ziggy's kernel to allow overclocking. I did not remove any bloat since you will have over 5GB's free so there is plenty of room. I don't use sense roms so I'm not familiar with what sense tweaks are out there but I may research and make changes to the sense rom in future updates. I chose these roms because I wanted roms that would be very stable right out of the box. This is a new method for dual booting and there hasn't been any wide testing yet so you should still consider this Beta till there is more feedback. Everything has been stable in the limited testing. All feedback encouraged and appreciated.

DualRom Terminology for this post

PhoneRom - refers to the rom that is installed normally on your phone
InternalRom - refers to the DualRom version that you install




* Who is Team ADX?

For those that don't know us Team ADX was formed by a few Dev's from the HTC Droid Eris. We collaborate on projects together even though we've all branched to different phones. Team ADX is Conap, Workshed, and Gnarlyc. Conap has the Droid Incredible and will handle most of the support in this thread. The Team ADX account is usually only used for the op and all follow posts will be done with our personall accounts.

* Why would you want 2 roms on your phone?

Sometimes you can't decide between Sense and CM/Aosp roms. Both have thier benifits and both have thier downfalls. Why not have both on your phone. For app developers this is a great solution so that you can easily test your apps on Sense and Aosp roms. Also it's just another cool reason to root right?

* Any downside to this?

The only downside for this is that it uses the entire 6.5Gb of internal storage that the incredible has. The reason it does is because the emmc which includes the 6.5GB of internal storage also includes the 750mb's for the data partition and the 200mb's for the cache partition of the phone. For this reason HTC has locked this from being repartitioned. I did not find a way to unlock it although there probably is. I personally don't use the internal storage on my phone at all since most apps defaut to sdcard. If you don't use or need to use your internal storage this is a great alternative to what you can use it for. I tested many methods which included putting the rom on SD card or rearanging the partitions where the normal rom is stored and I found this method to be most stable and the least intrusive to your normal rom.

* How does it work?

With this DualRom setup you will be able to keep your current rom and even change your current rom on your phone in the normal fashion you are used too. There is a zip file to flash before flashing your DualRom that will set up your current rom to work with DualRom. It only makes minor changes to your current rom and I will explain that during install instructions. The DualRom will then get installed to the internal storage of the phone. An app called DR Reboot written by Conap specifically for this setup will be installed in both roms that will let you boot back and forth between the 2 roms. There will also be zips automatically added to your sd card that will allow you to choose which rom you want to boot to from recovery.

* Is this risky?

With any phone modification done with root there is always risk involved. From my testing I determined the phone would not let me repartition the internal storage therefore not letting me screw up the phone. As long as you use the zips we provide there should be no issues. As always though flash at your own risk!!!!

* Is this compatible with my rom?

DualRom should work with any rom you use. For the DR Reboot app to work you will need a rom with busybox installed but that is pretty standard. If DR Reboot does not work for you you can use recovery to boot back and forth. The zip you flash in recovery only takes a few seconds so this is still a much faster option then doing nandroid/restore's.

* How do I install this? What do the zips do?


The zip files are named with a number to start. Flash in the order of the numbers. All my testing was done with CWM v2.5.1.2.

1DRPrep-setupEMMCforRomFlash.zip We flash this zip first. All it does is change the filesystem of the internal storage partition(6.5gb) from fat32 to ext3. THIS WILL ERASE ALL FILES FROM YOUR INTERNAL STORAGE. Please backup any files you want to keep. This zip can also be used to reformat if you decide you want to switch from one version of DualRom to another(i.e. Sense to CM7). This zip will take a few minutes to flash so be patient.(I know my progress bars don't move right in recovery but it is working).

2SetupPhoneRomForDualBoot.zip We flash this second. This zip will do a couple of things. It installs the app into your current rom that will allow you to boot back and forth. It also backups the boot.img from your current rom to your sdcard so that it can use it when you want to boot back to the Phone Rom. It add's another zip to sdcard that allows you to boot back to Phone Rom from recovery. It also adds an edited vold.fstab to your current rom so that your phone will not complain that it can no longer fine the interal storage since your using it for something else. If you have dualrom already installed and decide to flash another normal rom to your phone you can just re-run this zip after flashing the normal rom.

3DualRomSenseFroyo.zip or 3DualRomCM7.zip These are the actuall roms. They will install the rom to the internal partition and also put a zip on your sdcard that allows you to boot the internal storage rom from recovery if you need too. Please flash only one of these.


* I've installed it now what?

Once you have flashed the first 3 zips your phone is ready to reboot. Reboot the phone and it will boot to the internalrom. This is a first boot so it will take a few minutes but not really longer then the first boot on a normal rom. Once it boots go through the normal setup of the rom. Then you can look in the app drawer and you well see DR Reboot app. I would reccomend placing a shortcut to this on a home screen somewhere for ease of access. Open DR reboot and from there you can reboot to the phone rom, internal rom, or recovery.(See Photo at top of post) You can still use the normal reboot options of the rom if you want to boot back into the same rom you are in. Alternativley you can boot to recovery and flash the bootphonerom.zip or the boot-internal.zip's to boot to either rom. These are a backup mainly in case the DR Reboot app malfunctions (occasionally it fails to flash the boot.img)and you need to get back into one rom or the other. I would not delete them from the sdcard. That's it....use the roms as normal and boot back and forth as you wish.

* My phone won't reboot to the phonerom even after flashing the phonerom.zip in recovery?

This is why we do a nandroid backup. Restore it now and then reflash the 2SetupPhoneRomForDualBoot.zip.


* What about tweaks/zips/themes?


If the phone is booted into either rom then anything you apply will get applied to the rom you are booted in...(i.e. metamorph). Keep in mind I have not tested much as of yet with the internal rom but in theory it will work fine. The phone rom will continue to work as normal. Any flashable tweaks/themes will only affect the phone rom. The install scripts would need to be modified to apply them to the internal rom. It shouldn't be too hard to modify them and I will try to post some instructions on that later.

* What about ADB?

ADB will acess what ever rom you have booted at the time.

* Will this allow us to boot other operating systems(i.e. WM, IOS)?

No they are not bootable on android devices and don't know if they ever will be. This will allow us to boot larger Rom Ports as some of the Rom's are getting larger then our internal storage.

** KEY POINTS TO REMEMBER
1. Everytime you flash a normal rom please flash 2SetupPhoneRomForDualBoot.zip after to update your stored boot.img.
2. Try to stick with more stable tweaks on the internalrom untill we can work out a easy way to wipe data/cache or a way to make a reliable nand.
3. Nandroid is your friend. Don't forget to do your normal Nandroid's in recovery for the phonerom before flashing any zips.
4. Zips are numbered in order so you can flash them in order.
5. Enjoy your 2 roms!!!

** TODO List
1. Make data/cache wipes available
2. Watch to see if the roms sharing the .android_secure folder on sd is going to be a big problem. So far in my testing is has not been an issue.
3. Make some type of Nandroid available...We have a something but it's not very reliable so working on a more stable method.

*Thanks to:

Cyanogenmod for thier great work http://www.cyanogenmod.com/
Htc I guess for sense and for making quality phones.
Ziggy471 for his kernel http://www.ziggy471.com/
TeamADX members for all they do!!!
XDA member unCoRrUpTeD for getting me interested in Dual Booting
Everyone and anyone who contributes to open source projects

Downloads
FLASH AT YOUR OWN RISK

1DRPrep-setupEMMCforRomFlash.zip - THIS ZIP WILL ERASE EVERYTHING ON YOUR INTERNAL STORAGE WHEN FLASHED. YOU HAVE BEEN WARNED MD5-ea34104a4b8ee11ee3d6442c13c0f93c

2SetupPhoneRomForDualBootV2.zip MD5-f2a55ed14f720332cfe9f88d32918a9f
V2 fixes flash_image binary not having execute permissions causing phone to not boot from phone rom to internal rom. Make sure you are on phonerom and reboot to recovery and just flash this zip if you've already installed DualRom.

3DualRomSenseFroyoV2.zip
V2 includes update boot.img that i added in the test zip i posted. That's the only change.

DRSenseUpdatetoV2.zip
If you flashed v1 of sensefroyo you can just flash this to update so you don't need to wipe.

3DualRomCM7v3.zip
v3
Updated to CM7.02 Stable
v2
Adds new boot.img that automatically fixes the filesystem on reboot.

DRCM7v2Update.zip
Updates DRCM7 to v2 with no wipe if you already have DualRomCM7 installed.

How can I use other roms with this?

I made some rom "shells". You can open the zip of the rom you want to use and drag the system and data folders and drop them in the "shell" zip. There is a shell for miui 2.3, cm/aosp 2.3, and Sense 2.2. This way you all have the option to use any rom without me releasing other peoples work.

MIUI-GB-shell.zip

Sense-2.2-shell.zip

CM-AOSP-GB-shell.zip
The Following 16 Users Say Thank You to Team ADX For This Useful Post: [ Click to Expand ]
 
Team ADX
Old
(Last edited by Team ADX; 24th April 2011 at 11:36 PM.)
#2  
Team ADX's Avatar
Member - OP
Thanks Meter 42
Posts: 48
Join Date: Oct 2010
Location: In a Yellow Submarine
* What if I want my phone back to normal?

This Zip will completely undo the changes to your phone rom and will reformat your internal storage back to fat32 so it can be used for storage again.
UndoDualRom.Zip

* Nandroid Backup and Restore

DualRomNandroid.zip Boot to your internal rom and then boot to recovery. Then flash this zip in recovery and it will create a folder called DR on your sdcard in /DualRom/backups/. If you want to make multiple backups then you can rename the DR folder to whatever you want. If you want to restore the backup just rename the folder back to DR. If your only making one backup you can leave it named DR. If you make another backup without renaming the folder then it will overwrite the old backup.

DualRomNandroidRestore.zip Guess what this does ...flash this to restore the backup you made with the DualRomNandroid.zip. This script will restore from the DualRom/backups/DR/ folder on your sdcard. Rename whichever backup you want to restore back to DR.

All zips are provide as is. Use at your own risk.
If you have suggestions/ideas/improvements feel free to let us know. I will note here that I have looked at symlinking the database's for mms and phone logs so they would show on both roms but it seems to cause issues. I beleive the issues have something to do with CM7/2.3 databases is not the same as Sense/2.2 database. I know people have had problems when trying to restore that type of data when switching roms so it's probably the same case here. If anyone has idea's or knowledge more in depth on that issue feel free to share!!!!
The Following 5 Users Say Thank You to Team ADX For This Useful Post: [ Click to Expand ]
 
TheWhiteBandito
Old
#3  
TheWhiteBandito's Avatar
Recognized Developer
Thanks Meter 84
Posts: 596
Join Date: Jun 2010
Location: NY/CT
So how does this work with SMS/phone logs? If I get a text while on one ROM, and switch to the other, will it still be read with the other? Same thing for phone calls.

This looks like a groundbreaking project, and I look forward to trying this out
Lead Developer for Simplr App Labs
 
Conap
Old
#4  
Retired Recognized Developer
Thanks Meter 233
Posts: 1,350
Join Date: Apr 2010
Quote:
Originally Posted by TheWhiteBandito View Post
So how does this work with SMS/phone logs? If I get a text while on one ROM, and switch to the other, will it still be read with the other? Same thing for phone calls.

This looks like a groundbreaking project, and I look forward to trying this out
Currently they act independently of each other so you will only see it on the rom booted up. At some point I will attempt to merge them as much as possilbe. I will need to test what backups and databases are compatible between CM and Sense.
The Following User Says Thank You to Conap For This Useful Post: [ Click to Expand ]
 
kschwarz88
Old
#5  
kschwarz88's Avatar
Senior Member
Thanks Meter 18
Posts: 121
Join Date: Dec 2010
Quote:
Originally Posted by Team ADX View Post
* Will this allow us to boot other operating systems(i.e. WM, IOS)?

No they are not bootable on android devices and don't know if they ever will be. This will allow us to boot larger Rom Ports as some of the Rom's are getting larger then our internal storage.
This sounds sick, especially having the space to port large roms like Sense 3.0! Looking forward to whatever comes out of this.
Current:
HTC Rezound

Retired:
Droid Incredible 003 SLCD
08.08 radio
 
renzo.olivares
Old
#6  
renzo.olivares's Avatar
Recognized Developer
Thanks Meter 16199
Posts: 9,086
Join Date: Jan 2011

 
DONATE TO ME
Wow this is great ill try it out once there's some way to nandroid.
 
forgotteni
Old
#7  
forgotteni's Avatar
Member
Thanks Meter 2
Posts: 66
Join Date: Oct 2010
Location: Norcal
Wow good job guys. Just wanted to give you some props and say ill definitely be watching this thread for updates and sometime soon I will definitely try it out. Keep up the great work, and thanks.

Sent from my ADR6300 using XDA Premium App
 
PGleo86
Old
#8  
PGleo86's Avatar
Senior Member
Thanks Meter 36
Posts: 520
Join Date: Dec 2010
Location: Rochester, NY
Quote:
Originally Posted by kschwarz88 View Post
This sounds sick, especially having the space to port large roms like Sense 3.0! Looking forward to whatever comes out of this.
Oh yes *licks lips* Sense 3.0, here we come!
Verizon Samsung Galaxy SIII, 32GB Pebble Blue
PAC-MAN 3.99 Nightlies (4.3)
32GB Sandisk MicroSDHC

Unlocked bootloader! F U VERIZON

***RETIRED***
Droid Incredible
Rooted with unrevoked 3.22 + forever
Running Kang CM9 a8
Kernel: ICS CM Stock
Recovery: ClockworkMod 3.0.0.8
2GB Samsung MicroSD
Seidio 1750 mAh Extended Battery
 
Conap
Old
#9  
Retired Recognized Developer
Thanks Meter 233
Posts: 1,350
Join Date: Apr 2010
Quote:
Originally Posted by r3nz024 View Post
Wow this is great ill try it out once there's some way to nandroid.
You can nandroid your current rom in recovery as normal and flashing this won't have much affect on your current rom other then adding the app that lets you boot into the other. The only thing you can't back up is the rom on the internal storage. But even if the internal rom goes all crazy on you it won't affect your current rom.
 
jonesh
Old
#10  
Member
Thanks Meter 1
Posts: 35
Join Date: May 2010
Is there a way to restore the EMMC partition to FAT32 if I decide not to keep the dual ROM functionality? aka: what's a command I could stick inside of a CWM zip to format back to FAT32?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes