FORUMS
Remove All Ads from XDA

[GUIDE] Build CWM recovery

219 posts
Thanks Meter: 423
 
By buffo1987, Senior Member on 4th February 2013, 12:44 PM
Post Reply Email Thread
How to build CWM Recovery
You may also use http://builder.clockworkmod.com/, there you can build touch and non-touch version. Always latest version.
Files needed for this you can find within device files: AriesVE Dev Connection Team github


File location:
/recovery.fstab
/recovery/graphics.c
/recovery/postrecoveryboot.sh
+ any recovery.img, which works on your device

Manually build CWM (non-touch)
(Base is arco cm9, other possible sources and their included CWM Version second post)
  1. Install android sdk http://developer.android.com/sdk/index.html
  2. Install Java
    http://wiki.ubuntuusers.de/Java/Inst...on/Oracle_Java
  3. Install needed libs (Ubuntu 13.04)
    Code:
    sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python
  4. Create Directories
    Code:
    $ mkdir -p ~/bin && mkdir -p ~/android/system
  5. Install repo
    Code:
    $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    $ chmod a+x ~/bin/repo
  6. Add "~/bin" to PATH of execution
    Code:
    $ gedit ~/.bashrc
    add:
    Code:
    #Android
    export PATH=${PATH}:~/android-sdk/tools
    export PATH=${PATH}:~/android-sdk/platform-tools
    export PATH=${PATH}:~/bin
  7. Initialize Repo & sync
    Code:
    $ cd ~/android/system/
    $ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
    $ repo sync
  8. Add device files //possible sources on second post
    Code:
    $ cd ~/android/system/device && mkdir samsung && cd samsung
    $ git clone git://github.com/AriesVE-DevCon-TEAM/android_device_samsung_ariesve -b cm-10.1
  9. Add vendor files ////possible sources on second post
    Code:
    $ cd ~/android/system/vendor && mkdir samsung && cd samsung
    $ git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b jellybean ariesve
  10. Prepare device specific code
    Code:
    $ cd ~/android/system/
    $ . build/envsetup.sh
    $ lunch //choose -> cm_ariesve-userdebug
  11. Compile recovery
    Code:
    make clobber && make -j# recoveryimage  //# CPU-Cores+1

Credits
DevConnection_Team
arco68
ivendor
cyanogenmod
The Following 30 Users Say Thank You to buffo1987 For This Useful Post: [ View ] Gift buffo1987 Ad-Free
 
 
4th February 2013, 12:46 PM |#2  
buffo1987's Avatar
OP Senior Member
Thanks Meter: 423
 
More
Info 2
Versions of CWM
https://github.com/CyanogenMod/andro...table_recovery -> choose branch -> Android.mk -> Version
cm-9.0 -> 5.5.0.4
ics -> 6.0.1.2
jellybean -> 6.0.2.8
cm 10.1 -> 6.0.3.4

Sources for building CWM

CM9
Arco:
Device files
git clone git://github.com/arco/android_device_samsung_ariesve -b ics-2.6 ariesve
git clone git://github.com/arco/android_device_samsung_ariesve -b ics-3.0 ariesve
Vendor files
git clone git://github.com/arco/android_vendor_samsung_ariesve.git -b ics ariesve

Ivendor:
Device files
git clone git://github.com/ivendor/android_device_samsung_ariesve.git -b ics-2.6 ariesve
git clone git://github.com/ivendor/android_device_samsung_ariesve.git -b ics-3.0 ariesve
Vendor files
git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b ics ariesve

CM10
Ivendor:
Device files
git clone git://github.com/ivendor/android_device_samsung_ariesve.git -b jb-2.6 ariesve
git clone git://github.com/ivendor/android_device_samsung_ariesve.git -b jb-3.0 ariesve
Vendor files
git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b jellybean ariesve

CM10.1
blackmamba97:
Device files
git clone git://github.com/blackmamba97/android_device_samsung_ariesve.git -b cm-10.1 ariesve

davidteri91:
Device files
git clone git://github.com/Davidteri/android_device_samsung_ariesve.git -b cm-10.1 ariesve
Vendor files
git clone git://github.com/Davidteri/android_vendor_samsung_ariesve.git -b jellybean ariesve

Xistance:
Device files
git clone git://github.com/xistance21/android_device_samsung_ariesve.git -b jb-3.0 ariesve
Vendor files
git clone git://github.com/xistance21/android_vendor_samsung_ariesve.git -b jellybean ariesve

Doomsday94:
Device files
git clone git://github.com/doomsday94/CyanogenMod-10.1-ariesve.git -b master ariesve
The Following 6 Users Say Thank You to buffo1987 For This Useful Post: [ View ] Gift buffo1987 Ad-Free
4th February 2013, 12:46 PM |#3  
buffo1987's Avatar
OP Senior Member
Thanks Meter: 423
 
More
reserved
The Following 3 Users Say Thank You to buffo1987 For This Useful Post: [ View ] Gift buffo1987 Ad-Free
4th February 2013, 01:21 PM |#4  
anuseb89's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 407
 
More
Re: [GUIDE] Build CWM recovery
Good work man...now you are our dedicated person for recovery it seems.....

Sent from my GT-I9001 using xda app-developers app
4th February 2013, 01:45 PM |#5  
buffo1987's Avatar
OP Senior Member
Thanks Meter: 423
 
More
Quote:
Originally Posted by anuseb89

Good work man...now you are our dedicated person for recovery it seems.....

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

I'll do my best .
In fact i hope that we can get more stability if more people know how to compile. Especially twrp has some interesting flags e.g. TARGET_PREBUILT_RECOVERY_KERNEL := path/to/kernel -- use to specify a kernel specifically for building recovery.
4th February 2013, 01:58 PM |#6  
XeLLaR*'s Avatar
Senior Member
Flag DevConnection
Thanks Meter: 4,724
 
More
I would like to say that you can use CWM 5.5.0.4 for Gingerbread, ICS & Jellybean without any problems. Its more reliable than any other CWM or TWRP we have.

Only the usage of the volume rockers for going up and down in the menĂ¼ is a little bit annoying and not that good for the device.
The Following 2 Users Say Thank You to XeLLaR* For This Useful Post: [ View ] Gift XeLLaR* Ad-Free
20th March 2013, 05:56 PM |#7  
Harshraj's Avatar
Senior Member
Flag Kalyan
Thanks Meter: 396
 
Donate to Me
More
background wallpaper change
how to change the backgroung wallpaper of my cwm recovery ..??
20th March 2013, 11:47 PM |#8  
Senior Member
Thanks Meter: 967
 
Donate to Me
More
R: [GUIDE] Build CWM recovery
Is there a way to manually build a touch version?

Inviato dal mio GT-I8150 con Tapatalk 2
21st March 2013, 02:39 AM |#9  
buffo1987's Avatar
OP Senior Member
Thanks Meter: 423
 
More
AW: [GUIDE] Build CWM recovery
Quote:
Originally Posted by Harshraj

how to change the backgroung wallpaper of my cwm recovery ..??

Never thought about that, so i do not know





Quote:
Originally Posted by miki2o

Is there a way to manually build a touch version?

Inviato dal mio GT-I8150 con Tapatalk 2

Noway
21st March 2013, 02:57 AM |#10  
Harshraj's Avatar
Senior Member
Flag Kalyan
Thanks Meter: 396
 
Donate to Me
More
Re: [GUIDE] Build CWM recovery
Quote:
Originally Posted by buffo1987

Never thought about that, so i do not know







Noway

Please do think about that !!!

Sent from my GT-S7500 using xda app-developers app
28th March 2013, 07:34 PM |#11  
amank22's Avatar
Junior Member
Flag greater noida
Thanks Meter: 7
 
More
Re: [GUIDE] Build CWM recovery
Hey sir,how to use dat recovery builder???wat file to add in that recovery image file??

Sent from my A52 using xda app-developers app
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes