Giter Site home page Giter Site logo

joaquimorg / android_device_huawei_u8510 Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 3.0 15.14 MB

Unofficial source port of CyanogenMod for HUAWEI IDEOS X3

Home Page: http://www.joaquim.org/Home/projectos-1/android/u8510-rom

Ruby 0.09% Shell 27.20% C++ 49.91% Perl 11.10% C 11.71%

android_device_huawei_u8510's Introduction

HOW-TO BUILD:

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 https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/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://github.com/CyanogenMod/android.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://github.com/joaquimorg/android_device_huawei_u8510.git u8510

or download the tarball https://github.com/joaquimorg/android_device_huawei_u8510/tarball/master 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/

$ ./extract-files.sh

Building CM7

Once thats done you can start compiling.

Follow the aosp instructions on setting up the build environment. - http://source.android.com/source/download.html

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/envsetup.sh && brunch cyanogen_u8510-eng

or

$ ./go

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 setup-makefiles.sh.

$ 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

Remove Assertions from update script

build/tools/releasetools/ota_from_target_files

in line 380

--  AppendAssertions(script, input_zip)

++#  AppendAssertions(script, input_zip)

android_device_huawei_u8510's People

Contributors

joaquimorg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

poshanm f4id3r

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.