Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
racks11479
Old
(Last edited by racks11479; 9th June 2012 at 04:15 AM.) Reason: Updated version 1.4
#1  
racks11479's Avatar
Senior Member - OP
Thanks Meter 745
Posts: 987
Join Date: Jan 2011
Location: Fresh Meadows

 
DONATE TO ME
Default [SCRIPT/TOOL] Convert2Dualboot-SD Tool v1.4[Linux/OSX/Android/DOS][6/8]

Hello all you Triple-Booters out there! I would like to introduce to you:

Convert2Dualboot-SD Tool


What is this you ask?

Quote:
This is a little tool that I've put together that will convert any standard flashable roms for our Nook Color to be DualbootSD compatible. No more waiting on my lazy arse to update you guys!!! I used APK manager as a base for my script. I've written 3 different versions that will run on Linux, OSX and Android. All neccesary binaries are included with each version.
Can I use any kind of flashable zips?

Quote:
Yes and no. You could use any standard flashable "rom" or "gapps" zips only.
How do I use it?

Quote:
You drop a standard rom .zip into a "rom-to-modify" folder. Then execute a shell script that will give you an option to convert it for flashing to Primary or Alternate boot on the DualbootSD.
Can I use any CWM Recovery for flashing?

Quote:
Absolutely not! Only use the CWM Recovery that was included with the DualbootSD.
Will you be updating this to add new features and stuff?

Quote:
Not sure what features I can add, but you can always check the CHANGE LOG in post 3.
Can you give us step by step directions on how to use this?

Quote:
Of course! See second post for more details.
***Disclaimer: Usual disclaimer applies here as well... you use this at your own risk, I am not responsible for anything that happens to any of your devices. You assume all responsibility when using this tool.***


Credits:
Daneshm90 for the APK Manager Script I used as a base
Pinako/Inportb/Jyio/Boss! - for his Android binaries
DizzyDen - for porting this over to DOS and his many ideas to get the script to where it's at
HacDan - for some bash guidance

If I forgot someone else, please notify me.
The Following 17 Users Say Thank You to racks11479 For This Useful Post: [ Click to Expand ]
 
racks11479
Old
(Last edited by racks11479; 9th June 2012 at 04:07 AM.) Reason: Updated new version 1.4
#2  
racks11479's Avatar
Senior Member - OP
Thanks Meter 745
Posts: 987
Join Date: Jan 2011
Location: Fresh Meadows

 
DONATE TO ME
Convert2Dualboot-SD Tool-README


Convert2Dualboot-SD-Linux v1.4

DOWNLOAD

*C2DSD=Convert2Dualboot-SD*

Quote:
1-Extract the zip file you just downloaded anywhere on your system

2-In the C2DSD folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip and/or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.

3-Open up terminal and cd into Convert2Dualboot-SD-Linux

4-At the termninal prompt execute the C2DSD script

Code:
$ sh convert*
5-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.

6-Choose your option and wait while it does its thing.

7-Once it's finished you can exit the program by choosing "0"

8-Now browse to the C2DSD folder and you can find your DualbootSD modded rom file either in "Primary-Mod" or "Alternate-Mod" depending on your earlier selection.

9-Copy that file to the /sdcard partition of your DualbootSD

10-Boot to CWM Recovery that is included with the DualbootSD

11-Flash and enjoy!
------------------------------------------------------------------------------------------

Convert2Dualboot-SD-OSX v1.4

DOWNLOAD

*C2DSD=Convert2Dualboot-SD*

Quote:
1-Extract the zip file you just downloaded anywhere on your system

2-In the C2DSD folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip and/or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.

3-Open up terminal and cd into Convert2Dualboot-SD-OSX

4-At the termninal prompt execute the C2DSD script

Code:
$ ./convert*
5-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.

6-Choose your option and wait while it does its thing.

7-Once it's finished you can exit the program by choosing "0"

8-Copy that file to the /sdcard partition of your DualbootSD

9-Boot to CWM Recovery that is included with the DualbootSD

10-Flash and enjoy!
------------------------------------------------------------------------------------------

Convert2Dualboot-SD-Android v1.4

DOWNLOAD

*C2DSD=Convert2Dualboot-SD*

Quote:
1-This will allow you to modify the zip files directly on your Nook

2-Extract the zip file you just downloaded to the root of your DualbootSD /sdcard partition.

3-The folder should be named c2dsd

4-In the c2dsd folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.

5-Open up any Terminal Emulator and cd into the c2dsd folder which should be "/sdcard/c2dsd"

6-At the termninal prompt execute the C2DSD script

Code:
$ su
# sh convert*
7-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.

8-Choose your option and wait while it does its thing.

9-Once it's finished you can exit the program by choosing "0"

10-Now you can choose to boot to CWM Recovery that is included with the DualbootSD

11-Choose "install zip from sdcard" and browse to either "Primary-Mod" or "Alternate-Mod" depending on your earlier selection.

12-Flash and enjoy!
------------------------------------------------------------------------------------------

Convert2Dualboot-SD-DOS v1.3

DOWNLOAD

*C2DSD=Convert2Dualboot-SD*

Quote:
1-Extract the zip file you just downloaded anywhere on your system

2-In the C2DSD folder, there are 2 folders called "modify-for-pri" and "modify-for-alt". Copy your rom.zip and/or gapps.zip file into its respective folder. No need to rename the file as long as it has a .zip extension.

3-Open up command window and cd into Convert2Dualboot-SD-DOS or create a shortcut on your desktop

4-At the command prompt execute the C2DSD script

Code:
convert2dualboot-sd-dos
5-This will give you a menu where you can choose to modify the "rom" and/or "gapps" for either Primary or Alternate boot. It will also give you an option to clear out recently modded zips. Now with option to mod both ROM & GAPPS on the fly. Just place both files inside either "modify-for-pri" or "modify-for-alt" and choose the option to modify both from the menu.

6-Choose your option and wait while it does its thing.

7-Once it's finished you can exit the program by choosing "0"

8-Copy that file to the /sdcard partition of your DualbootSD

9-Boot to CWM Recovery that is included with the DualbootSD

10-Flash and enjoy!
And that's all she wrote... well he, being me.

If I've helped in anyway. Don't hesitate to hit the thanks button.
The Following 9 Users Say Thank You to racks11479 For This Useful Post: [ Click to Expand ]
 
racks11479
Old
(Last edited by racks11479; 9th June 2012 at 04:14 AM.) Reason: Updated to v1.4
#3  
racks11479's Avatar
Senior Member - OP
Thanks Meter 745
Posts: 987
Join Date: Jan 2011
Location: Fresh Meadows

 
DONATE TO ME
Change log:

v1.4 (6/8/2012)
-Fixed gapps being zipped with rom when converting rom & gapps together
-Added SDCacheMount to converted roms (see the SDCacheMount thread for more info)
-Fixed mkimage binary executing error for Linux version
-No DOS update yet.... DizzyDen?????
-Thanks goes to xda user "shumash" for the SDCacheMount addition into the script

v1.3a
-Mkimage error on Android Script fixed.
-Mkimage is dependent on 'libmusl.so' which I did not include and linked in the tools folder. I overlooked this tidbit because I had "BOTBREW" installed on my system so it never complained about linking to it.

v1.3
-I effed up on the script!
-RASTAVIPER kept asking me about issues with his gapps. Apparently the mod for Gapps Alt Boot had the wrong mount points inserted into the updater script. NOW I SEE IT!
-Also in the DOS version. Prep of ROM Alt Boot had the wrong mount points as well. Sorry guys.
-It's been fixed and uploaded. Please don't use v1.2 anymore. Thanks.

v1.2
-Changed up UI layout of script: Please re-read README from post 2 above for edited instructions.
-Edited script to speed up mod process (Thanks DizzyDen!)
-Added option to mod both "ROM & GAPPS" on the fly
-Android version now has a tool.img file. This makes modding quicker and safer.
-Added DOS version ported by DizzyDen! (Thank you sir!)
-Modding for EMMC dualboot version in the works???? (That's if you guys want it)

v1.1
-Added gapps option
-Cleaned up some scripting behaviors

v1.0
-Initial release
The Following 2 Users Say Thank You to racks11479 For This Useful Post: [ Click to Expand ]
 
racks11479
Old
#4  
racks11479's Avatar
Senior Member - OP
Thanks Meter 745
Posts: 987
Join Date: Jan 2011
Location: Fresh Meadows

 
DONATE TO ME
Well.. after some thought, it really didn't make sense to release this without an option to mod gapps for the DualbootSD. I mean what good is a rom without gapps?!

Convert2Dualboot-SD v1.1 is up if anyone wants to try.

Check post 3 for all changlogs.

Thanks,
Racks
The Following 2 Users Say Thank You to racks11479 For This Useful Post: [ Click to Expand ]
 
mateorod
Old
#5  
Senior Member
Thanks Meter 2684
Posts: 1,723
Join Date: Nov 2011
Location: New Orleans
Taking advantage of the opportunity to try something new, I made a dual-boot card for my sister-in-law.

This is cool. I actually haven't tested the card yet as I have my device flashed to internal and have modded the recovery some. I haven't backed up any of the changes I made (I know, I know) and don't want to have to do it again.

I may try updating the card now that you've included gapps, though. I hadn't made a bootable card since I first rooted this thing, and to be honest it was by accident even that time. So I was wondering how to get gapps, was thinking about setting an alt-recovery just for that.

But anyway, I hadn't looked at how to do the gapps yet, maybe it was easier than that. But this seems even easier.

Cool, man! I bet the dual/triple booters will love being able to make their own updates. The experience I had last night couldn't have been easier. My wife got me and her sister the Nooks at the same time, I am excited for her to see what I have been talking about the last six months.
The Following User Says Thank You to mateorod For This Useful Post: [ Click to Expand ]
 
Nick N
Old
#6  
Nick N's Avatar
Senior Member
Thanks Meter 125
Posts: 669
Join Date: Sep 2009
Location: Columbus, Ohio
I will be sure to try this once my NC gets here. Thanks!
Current: iPhone 4 8GB <- Pandora hack is the only reason I am using it!!!

Tablets: Nook Color & HTC Flyer

Retired: HTC Touch/HTC Touch Pro/HTC Touch Pro 2/Samsung Moment/HTC Evo 4G/Samsung Nexus S 4G
The Following User Says Thank You to Nick N For This Useful Post: [ Click to Expand ]
 
shumash
Old
#7  
Senior Member
Thanks Meter 860
Posts: 586
Join Date: Jun 2008
Racks,

Works great but there's an odd 0 byte file in the DB zip called ^A@. Is that an artifact and can I just delete it?
 
racks11479
Old
(Last edited by racks11479; 5th May 2012 at 12:22 AM.)
#8  
racks11479's Avatar
Senior Member - OP
Thanks Meter 745
Posts: 987
Join Date: Jan 2011
Location: Fresh Meadows

 
DONATE TO ME
Quote:
Originally Posted by shumash View Post
Racks,

Works great but there's an odd 0 byte file in the DB zip called ^A@. Is that an artifact and can I just delete it?
DB zip? Sorry, but what are you referring to with that?

And could you also let me know which one you used? OSX, Linux, Android?

Edit: That might just be the stupid __MACOSX hidden folder that osx likes to include Forgot to exclude that and the .gitignore file when zipping. Although they aren't detrimental to running the C2DSD Tool, you can choose to delete them if you wish.

Thanks,
Racks
 
DizzyDen
Old
#9  
DizzyDen's Avatar
Senior Member
Thanks Meter 513
Posts: 1,252
Join Date: Feb 2011
Thanks a lot Racks... great work... we'll get together and sort out the windows based version... can include it in your work here... or as another feature of the IMEI generator.
Always remember...
YCGIYWG
(You Can't Get... If You Won't Give)
The Dizzy One

My humble contributions:
IMEI Generator
Customizing ROMs thread
To have devices added to IMEI Generator
IMEIme bug report thread
The Following 2 Users Say Thank You to DizzyDen For This Useful Post: [ Click to Expand ]
 
racks11479
Old
#10  
racks11479's Avatar
Senior Member - OP
Thanks Meter 745
Posts: 987
Join Date: Jan 2011
Location: Fresh Meadows

 
DONATE TO ME
Quote:
Originally Posted by DizzyDen View Post
Thanks a lot Racks... great work... we'll get together and sort out the windows based version... can include it in your work here... or as another feature of the IMEI generator.
Awesome to hear! Was hoping you would jump in.

We'll hook up and get the Windows based version here as well as incorporate it into your IMEI generator.

Thanks!
Racks

The Following User Says Thank You to racks11479 For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...