Quantcast
Channel: xda-developers - Galaxy S Plus I9001 Android Development
Viewing all articles
Browse latest Browse all 315

[GUIDE] Build CWM recovery

$
0
0
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. Current version 6.0.2.8
Files needed for this you can find within device files:
arco github
ivendor github

File location:
/recovery.fstab
/recovery/graphics.c
/recovery/postrecoveryboot.sh
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 needed libs
    Code:

    sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxml2 xsltproc g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-4.7-multilib g++-4.5-multilib
  3. Create Directories
    Code:

    $ mkdir -p ~/bin
    $ mkdir -p ~/android/cm9 //change folder name to the android version you are building cwm from.

  4. Install repo
    Code:

    $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    $ chmod a+x ~/bin/repo

  5. 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

  6. Initialize Repo & sync
    Code:

    $ cd ~/android/cm9/
    $ repo init -u git://github.com/CyanogenMod/android.git -b ics //github.com/CyanogenMod/android_bootable_recovery -> choose branch ->version of recovery in Android.mk
    $ repo sync

  7. Add device files to ~/android/cm9/
    Code:

    $ cd ~/android/cm9/device
    $ mkdir samsung
    $ cd samsung
    $ git clone git://github.com/arco/android_device_samsung_ariesve -b ics-2.6 ariesve

  8. Add vendor files
    Code:

    $ cd ~/android/cm9/vendor
    $ mkdir samsung
    $ cd samsung
    $ git clone git://github.com/arco/android_vendor_samsung_ariesve.git -b ics ariesve

  9. Prepare device specific code
    Code:

    $ cd ~/android/cm9/
    $ . build/envsetup.sh
    $ lunch //choose -> cm_ariesve-userdebug

  10. Compile recovery
    Code:

    make clobber && make -j# recoveryimage  //# CPU-Cores+1

Credits
arco68
ivendor
cyanogenmod

Viewing all articles
Browse latest Browse all 315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>