Ujanja Ni Uhai (Hustling Is Life)

Building CyanogenMod 7 for the Huawei U8150

Note: this was originally posted on the XDA Developers forum, where it is undergoing active development/testing by several people. I’ve re-posted a version of it here so it can both gain more visibility as well as be a sort of mirror. –Alan, Sept 21, 2011

Note 2: The U8150 was merged into the official CyanogenMod repositories, so the build process is a lot easier now, see: Building CyanogenMod 7.1 for the Huawei U8150. I’ll leave this post unmodified as it is a useful resource for people trying to port CyanogenMod to new devices. –Alan, Nov 1, 2011

In order to help move along the CyanogenMod 7 port for Huawei U8150, I decided to try to get it built using some of the existing work of a few devs over at the XDA Developers forum. I figured that if I could help, it would bring the port along faster. Here is my attempt to submerse myself in git, bash, and bacon to see if I have what it takes to be any help!

Preparation…

You need to set up your computer so it can build Android. It’s too much to write here, so see, for example, the Galaxy S page on the CyanogenMod wiki. Pay specific attention to getting adb, repo, installing necessary OS packages with apt-get and cloning/initializing the actual repository. It’s ~8 gigs, so don’t try this on dialup! Not for the faint of heart…

Here we go…

Edit vendor/cyanogen/vendorsetup.sh to add a lunch “combo” for the U8150:

add_lunch_combo cyanogen_u8150-eng

Android’s build system uses a “lunch menu” to choose what you want to build. There’s also brunch and breakfast, but they’re all used for other things.

7 thoughts on “Building CyanogenMod 7 for the Huawei U8150”

The repo is so big because Android has a lot of code in it. Also, CyanogenMod supports ~50 devices, each of which has some customization in it (bugs, device-specific features, etc). I don’t know how to build CyanogenMod Froyo (CM6)… I don’t think anyone is interested in CyanogenMod 6 anymore…

Yes, I did essentially that when I started working on the U8150. But you have to do much, much more to get it to actually build.

Which device are you trying to build? The .so error means you’re missing the proprietary libraries which are required for building. You can either use the extract-files.sh script to pull them from your phone, or clone this repository to your vendor folder.

Hey Allan, long time no post… so I’ve run into a bit of a problem, after your help on java i was FINALLY able to compile cm7 for the u8150. the problem is although I’ve followed two guides tihs guide and the one found at cyanogen mod http://wiki.cyanogenmod.org/w/Build_for_u8150 (both which have finished successfully), network access via sim card does not seem to work…please help. Thanks in advance.