Target Device: Huawei Honor 4C / 4X
Target Board: HiSilicon Kirin 620 (hi6210sft)
- Fortunately for you, there is a great guide to achieve that .
For OmniROM: http://docs.omnirom.org/Setting_Up_A_Compile_Environment
- You'll first need to clone this device tree to download the files needed to build the recovery.
- cd to the device directory in your main work folder (where you have synced CM or OmniROM sources)
cd device
- Create a new folder huawei
mkdir huawei
- Clone this repository
git clone https://github.com/muhammadfahadbaig/android_device_huawei_cherry/ cherry
- cd back to your main work folder. Prepare device specific source code
source build/envsetup.sh && lunch omni_cherry-userdebug
- Finally, build the image!
make -j# recoveryimage
replace # with your total host cpu cores + 1 - Your recovery image will be located at
out/target/product/cherry/recovery.img
- Use fastboot to flash the recovery
fastboot flash recovery recovery.img