Code Monkey home page Code Monkey logo

android-3's Introduction

#Quick steps to sync and build Evervolv

###Getting Started

#####Install the Android SDK.

Not strictly required to build, but if you want adb / fastboot / monitor, you'll want it see googles instructions

#####Install the Build Packages

See initializing the environment for googles detailed instructions

######For Ubuntu 12.04 64-bit:

$ sudo apt-get install git gnupg flex bison gperf build-essential \
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
    libgl1-mesa-dev g++-multilib mingw32 tofrodos \
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

If you have dependency issues, try installing only a couple of packages at a time.

######Install Java

As of KitKat, Android cannot be built with openjdk6. You will have to install Oracle's JDK6 manually.

Alternatively. KitKat experimentally supports openjdk7. On Ubuntu install openjdk-7-jdk and you must put export EXPERIMENTAL_USE_JAVA7=true in your bashrc in order to use it.

#####Create the Directories

######You will need to set up some directories in your build environment.

mkdir ~/bin
mkdir -p ~/android/system

#####Install Repo

######Enter the following to download and make executable the "repo" binary:

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Add export PATH=~/bin:$PATH to your bashrc You may need to logout/login for path changes to take effect.

#####Download Source

######Now enter the following to initialize the repository:

cd ~/android/system/
repo init -u git://github.com/Evervolv/android.git -b kitkat
# Then to start the Sync. (This is gonna take awhile)
repo sync -f

All proprietary files are kept in the repo, no need to pull them from your device (unless adding devices).

#####Configure Build

######Now, your environment must be configured to build specifically for your device. To set up your build environment:

. build/envsetup.sh
lunch

And choose your correct device.

The first time you run lunch the device, vendor, and any dependencies will be automatically downloaded.

#####Building

######Next, we will build the actual ROM. We will specify the amount of jobs you want to run (replace # with number of cpu cores, or be adventurous and max it out!) 'otapackage' creates the zip file that can be flashed through recovery

make -j# otapackage

#####Completed! Your compiled Evervolv rom will be located at:

~/android/system/out/target/product/<product>/ev_<product>-<release>.zip

android-3's People

Contributors

drewis avatar preludedrew avatar elginsk8r avatar mongoosehelix avatar nikez avatar dastin1015 avatar helicopter88 avatar ponsasinorem avatar leoisright avatar spearce avatar flintman avatar

Watchers

yanningyuqi avatar

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.