DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 6 1 2 3 ... LastLast
Results 1 to 10 of 56

Thread: Compiling Clockwork Mod From Source

  1. Droid Ninja
    brando56894's Avatar
    Member #
    45165
    Join Date
    Mar 2010
    Location
    New Jersey
    Posts
    1,217
    Phone
    HTC Incredible
    #1

    Question Compiling Clockwork Mod From Source

    Edit: It seems like I forgot a major requirement: you need to have Ubuntu (or a variant of it) installed

    After two days and countless hours spent I finally figured out how to make a custom version of ClockworkMod Recovery for the OG Droid. Everything will easily be done by two bash scripts.

    The first script will set up the build environment by pulling the source tree from Cyanogens github and pulling proprietary files from your phone.

    The second script will compile the source code and automatically flash the recovery you just built, then reboot into it for you to test it out.

    The attached zip file has both of these scripts plus ADB. All you have to do is extract them, execute setup.sh, change whatever you want, execute flash_recovery.sh and then bask in your creation! warning: the scripts above are newer, use those

    Note: the setup.sh only needs to be run once, each successive time just run flash_recovery.sh

    Or if you want to take the easy way out heres the image I compiled. Put it on your sdcard and acquire root access in a terminal then type flash_image recovery /sdcard/recovery.img thats it! It doesn't like to flash some zip files for some reason.

    Changes from stock
    1. Removed Factory Default option and replaced with a complete phone wiping option
    1. Wipe all but sdcard does what it says, wipe is done twice to ensure a clean partition.
    2. Removed all the extra "No's" from the confirmation screens

    Known Bugs
    1. Wont flash certain zips, namely those that use the amend scripting language, which is no longer supported.
    Attached Files
    Last edited by brando56894; 01-18-2011 at 11:33 PM. Reason: Updated Scripts
    How To: Compiling a Custom Version of Clockwork Mod Recovery
    <-- Lockscreen

    ROM: Incredibly Re-Engineered v2.3
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     
  3. Droid Ninja
    brando56894's Avatar
    Member #
    45165
    Join Date
    Mar 2010
    Location
    New Jersey
    Posts
    1,217
    Phone
    HTC Incredible
    #2
    Anyone? I know I have to set up a vendor system or something (I know koush has one that everyone uses for roms but Ive never built a custom rom) but no idea how to go about it. Once I get it to work Ill upload it for everyone.
    How To: Compiling a Custom Version of Clockwork Mod Recovery
    <-- Lockscreen

    ROM: Incredibly Re-Engineered v2.3
  4. Droid
    Nerotoxen's Avatar
    Member #
    72622
    Join Date
    May 2010
    Posts
    37
    Phone
    Moto Droid
    #3
    I wish I had the know how to do this stuff... I got linux installed, just need to start reading more! If you can't find any help here check out xda developers forum for some Q&A. Those guys have some good faq's to check out. I'm sure someone on here has the knowledge to help out though!

    GL and keep us updated!
  5. Droid Ninja
    brando56894's Avatar
    Member #
    45165
    Join Date
    Mar 2010
    Location
    New Jersey
    Posts
    1,217
    Phone
    HTC Incredible
    #4
    Someone on here (I forget who ATM) made a custom SPR so at least one person has to know how to do it, I'm sure its not that much different (if at all!).
    How To: Compiling a Custom Version of Clockwork Mod Recovery
    <-- Lockscreen

    ROM: Incredibly Re-Engineered v2.3
  6. Droid Ninja
    brando56894's Avatar
    Member #
    45165
    Join Date
    Mar 2010
    Location
    New Jersey
    Posts
    1,217
    Phone
    HTC Incredible
    #5
    I just learned Java and IIRC the code isnt java.
    How To: Compiling a Custom Version of Clockwork Mod Recovery
    <-- Lockscreen

    ROM: Incredibly Re-Engineered v2.3
  7. Developer
    jeffv2's Avatar
    Member #
    151962
    Join Date
    Dec 2010
    Location
    south jersey
    Posts
    1,241
    Liked
    3 times
    Phone
    galaxy nexus
    DroidForums.net Developer
    #6
    i posted on here earlier but didn't fully understand your question.. but could you post the source code or a link to where you found it? I've been looking all over for it
  8. Junior Droid
    droidzone's Avatar
    Member #
    121127
    Join Date
    Sep 2010
    Location
    India
    Posts
    11
    Phone
    HTC Desire A8181
    #7
    Quote Originally Posted by jeffv2 View Post
    i posted on here earlier but didn't fully understand your question.. but could you post the source code or a link to where you found it? I've been looking all over for it
    So does anyone else know how to compile the code and convert it into an .img file?
  9. Developer
    jeffv2's Avatar
    Member #
    151962
    Join Date
    Dec 2010
    Location
    south jersey
    Posts
    1,241
    Liked
    3 times
    Phone
    galaxy nexus
    DroidForums.net Developer
    #8
    Quote Originally Posted by droidzone View Post
    Quote Originally Posted by jeffv2 View Post
    i posted on here earlier but didn't fully understand your question.. but could you post the source code or a link to where you found it? I've been looking all over for it
    So does anyone else know how to compile the code and convert it into an .img file?
    give me a link to the source code and ill figure it out
  10. Droid Ninja
    brando56894's Avatar
    Member #
    45165
    Join Date
    Mar 2010
    Location
    New Jersey
    Posts
    1,217
    Phone
    HTC Incredible
    #9
    I dont remember where I got it from originally, but heres my modified version. I probably have the original archive somewhere on my ext4 partition but im in windows right now.

    I'd like to add an option in there that says "Wipe All" which will do double passes on /boot, /cache, /data and /system. But thats going to take a little figuring out. So far all I did was remove all the annoying "No's" and made it wipe everything twice.

    BTW the source code is written in C.
    How To: Compiling a Custom Version of Clockwork Mod Recovery
    <-- Lockscreen

    ROM: Incredibly Re-Engineered v2.3
  11. Junior Droid
    droidzone's Avatar
    Member #
    121127
    Join Date
    Sep 2010
    Location
    India
    Posts
    11
    Phone
    HTC Desire A8181
    #10
    This is the original source code. So which compiler to use, and how does one compile it in the .img Fastboot flashable form?
Page 1 of 6 1 2 3 ... LastLast

Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. [?] Help compiling framework-res.apk
    By UnkleDuke in forum Droid X Themes
    Replies: 14
    Last Post: 01-09-2011, 06:42 AM
  2. Compiling ROM
    By pkbest in forum Motorola Droid 2
    Replies: 0
    Last Post: 12-10-2010, 06:30 AM
  3. Compiling New Gmail with APK Manager??!!
    By ecsnead69 in forum Droid Themes
    Replies: 5
    Last Post: 11-27-2010, 11:55 PM
  4. Compiling for Droid
    By microbolt in forum Droid Hacks
    Replies: 3
    Last Post: 11-09-2009, 04:04 PM

Search tags for this page

build clockworkmod from source
,
clockwork mod source
,
clockwork recovery source
,
clockwork recovery source code
,
clockwork source
,
clockworkmod git
,
clockworkmod github
,

clockworkmod recovery source

,
clockworkmod recovery source code
,

clockworkmod source

,

clockworkmod source code

,
compile clockworkmod
,
compile clockworkmod recovery
,
how to compile clockworkmod
,
how to compile clockworkmod recovery
Click on a term to search our site for related topics.
Find us on Google+