Huawei Ideos X3 (U8510) device configurations
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 4 commits behind supertoast:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



This short guide assumes you're on Ubuntu 11.04

Getting the (right) source

First, we need to create directories for the build:

$ mkdir -p ~/bin

$ mkdir -p ~/android/system

Now we'll need repo. Let's download it and make it executable:

$ curl > ~/bin/repo

$ chmod a+x ~/bin/repo

Log out and back in so the changes take effect.

Now initialized the repository and pull the source (with my repos attached):

$ cd ~/android/system/

$ repo init -u git:// -b gingerbread

$ repo sync -j16

Depending on your connection, this might take awhile.

Getting the device configuration for the Huawei U8510

We need Makefiles and other stuff for the device. Take it from the repository

$ cd ~/android/system/devices/huawei/

$ git clone git:// u8510

or download the tarball and extract it to ~/android/system/devices/huawei/ and name the new directory u8510

Extract necessary binaries and proprietary files

We will need to reuse some proprietary files from the stock ROM:

$ cd

$ cd ~/android/system/device/huawei/u8510/

$ ./

Building CM7

Once thats done you can start compiling.

Follow the aosp instructions on setting up the build environment. -

When the environment is setup, we need to grab a copy of Koush's ROM Manager. This is necessary to build CM7.

$ cd

$ ~/android/system/vendor/cyanogen/get-rommanager

Now, we build:

$ cd ~/android/system

$ . build/ && brunch cyanogen_u8510-eng

Installing CM7

If the build was successful, you can now take the update zip found in out/target/product/u8510/ and flash using a custom recovery. Make sure to grab the latest Gapps to complete the experience.

Before you syncing to the latest CM src remove the changes in vendor/cyanogen that was made from the script

$ cd ~/android/system/vendor/cyanogen

$ git reset --hard HEAD

When you want to rebuild with new changes or after syncing to the latest CM src make sure to do the following before you recompile.

make clean clobber