-
Init Cyanogenmod with
repo
. cm-11.0 needed.$ repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
-
Edit
.repo/manifest.xml
and add the following section:<project path="device/coolpad/cp5310" name="huiyiqun/device_coolpad_cp5310" />
If you are in China, I'll advice you to use AOSP Mirror of TUNA to replace the repo of Google.
-
Get Source:
$ repo sync
-
Apply patch:
$ cd bootable/recovery/ $ patch -p1 < ../../device/coolpad/cp5310/bootable_reocvery.diff
-
Download
msm_ion.h
andmsm_mdp.h
from the forum page or any other place you like. For the reason of license, I don't want to place it in my repo. Then place they underbootable/recovery/minui/linux/
. You have to create the directory first. -
Make:
$ cd ../../ $ bash # If you are using other shell, i.e. zsh $ . build/envsetup.sh $ lunch cm_cp5310-eng $ make recoveryimage
you can see the $RECOVERY_PATH at the end of output.
-
Enjoy the CWM Recovery, boot into fastboot mode by powering off and pluging in USB cable with Volume down pressed, and then:
$ sudo fastboot boot $RECOVERY_PATH
If it looks well, flash it in fastboot mode:
$ sudo fastboot flash reocvery $RECOVERY_PATH
I tried to port cwm to my Android devices several times before, but all ended with failure. This is the first time I get it.
The XDA University has given me a nice begin. However it's far from success.
Then the Forum Page help me a lot, although many parameters it mentioned is useless.