A few weeks ago I posted instructions for building CyanogenMod 7 for the Huawei U8150. A lot’s changed since then, so I wanted to post updated instructions for building from source. The process is easier now because the U8150 was recently merged to mainline CyanogenMod, so we don’t have to do any finagling.
Assuming you’ve already taken care of installing
repo and the dozen or so required system dependencies, all you need to do is…
Grab the source
mkdir ~/cyanogenmod cd ~/cyanogenmod repo init -u git://github.com/CyanogenMod/android.git -b gingerbread repo sync -j16
As of CyanogenMod 7.x this project is about 8 gigabytes, so don’t try this if you’re on a slow/expensive line! By the way, Ice Cream Sandwich will be much bigger, so you might wanna think about getting a faster Internet connection before it comes out. 😉
Extract proprietary files
Some of the drivers/programs for various hardware in the U8150 are not open source, so we have to use Huawei’s pre-compiled libraries to get everything working properly in CyanogenMod.
Make sure your phone is running a stock Huawei Froyo ROM,
adb is enabled (
Settings -> Applications -> Development -> USB Debugging [✔]), and then plug your phone into the computer and run the
cd device/huawei/u8150 ./extract-files.sh
Cook some bacon
cd ~/cyanogenmod . build/envsetup.sh brunch cyanogen_u8150-eng
A clean build takes my dual-core Core i7 ThinkPad T420 takes about 40 minutes. When it’s done you should see something like this:
[...] Optimizing Stk.apk... Zipping package... Signing package... Cleaning up... Package complete: /home/aorth/android/system/out/target/product/u8150/update-cm-7.1.0-U8150-KANG-signed.zip 21a4ffca4c352ff5998f2ea0e99ae2ea update-cm-7.1.0-U8150-KANG-signed.zip
Leave a comment if you need help. Adios, muchachos!