Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,657 Members 43,373 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Build CWM recovery

Tip us?
 
buffo1987
Old
(Last edited by buffo1987; 29th July 2013 at 01:08 PM.)
#1  
buffo1987's Avatar
Senior Member - OP
Thanks Meter 415
Posts: 218
Join Date: Jun 2012
Post [GUIDE] Build CWM recovery

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 24 Users Say Thank You to buffo1987 For This Useful Post: [ Click to Expand ]
 
buffo1987
Old
(Last edited by buffo1987; 29th July 2013 at 12:16 PM.)
#2  
buffo1987's Avatar
Senior Member - OP
Thanks Meter 415
Posts: 218
Join Date: Jun 2012
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: [ Click to Expand ]
 
buffo1987
Old
#3  
buffo1987's Avatar
Senior Member - OP
Thanks Meter 415
Posts: 218
Join Date: Jun 2012
reserved
The Following 3 Users Say Thank You to buffo1987 For This Useful Post: [ Click to Expand ]
 
anuseb89
Old
#4  
anuseb89's Avatar
Senior Member
Thanks Meter 407
Posts: 613
Join Date: Nov 2012
Location: Bangalore
Default 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
Seb

Current Device :: Google Nexus 5
===
Old Device :: Samsung Galaxy S Plus - I9001
ROM:CyanogenMod 11 by ADC Team - Kernel 3.4.x
Kernel : K^Kernel 3.4.x for Kitkat 4.4 by Christopher83 ( 389 MB RAM )
Recovery : TWRP-2.6.3.0 by ADC team
Baseband : XXKPM :: Get it from here
CPU Governor & Scheduler : smartAssv2/ondemand + SIO
Read I9001 xda wiki Page if you are new here or have any doubts in general. Very useful one
Read this for cm11 FAQ
===
 
buffo1987
Old
#5  
buffo1987's Avatar
Senior Member - OP
Thanks Meter 415
Posts: 218
Join Date: Jun 2012
Quote:
Originally Posted by anuseb89 View Post
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.
 
XeLLaR*
Old
#6  
XeLLaR*'s Avatar
Senior Member
Thanks Meter 4,303
Posts: 2,593
Join Date: Jun 2012
Location: DevConnection
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.

Samsung Galaxy S Plus (GT-I9001) | CyanogenMod 11 AriesVE_DevCon-Experimental X | Experimental Kernels - In Pension

Samsung Galaxy S3 (GT-I9300) | StockRom JSS15J.I9300XXUGNA5 | Boeffla-Kernel 5.2 - DEAD

Google Nexus 5 (LG D821) | AOSP Android 4.4.4 KTU84P KitKat | Google-Kernel 3.4


Team GitHub
The Following 2 Users Say Thank You to XeLLaR* For This Useful Post: [ Click to Expand ]
 
Harshraj
Old
#7  
Harshraj's Avatar
Senior Member
Thanks Meter 390
Posts: 356
Join Date: Aug 2012
Location: Kalyan

 
DONATE TO ME
Default background wallpaper change

how to change the backgroung wallpaper of my cwm recovery ..??
 
miki2o
Old
#8  
Senior Member
Thanks Meter 948
Posts: 652
Join Date: Nov 2012

 
DONATE TO ME
Default R: [GUIDE] Build CWM recovery

Is there a way to manually build a touch version?

Inviato dal mio GT-I8150 con Tapatalk 2
Phone: Galaxy S5 - Model: SM-G900F - ROM: Stock ANG9 - Kernel: Stock - Knox: 0x0
 
buffo1987
Old
#9  
buffo1987's Avatar
Senior Member - OP
Thanks Meter 415
Posts: 218
Join Date: Jun 2012
Default AW: [GUIDE] Build CWM recovery

Quote:
Originally Posted by Harshraj View Post
how to change the backgroung wallpaper of my cwm recovery ..??
Never thought about that, so i do not know





Quote:
Originally Posted by miki2o View Post
Is there a way to manually build a touch version?

Inviato dal mio GT-I8150 con Tapatalk 2
Noway
 
Harshraj
Old
#10  
Harshraj's Avatar
Senior Member
Thanks Meter 390
Posts: 356
Join Date: Aug 2012
Location: Kalyan

 
DONATE TO ME
Default Re: [GUIDE] Build CWM recovery

Quote:
Originally Posted by buffo1987 View Post
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes