Coder Social home page Coder Social logo

android_vendor_sm's Introduction

SudaMod

Getting Started

###Initializing the environment

repo start sm-2.0 .
(Make your changes and commit)
repo upload .

Note: "." meaning current directory For more help on using this tool, use this command: repo help upload

$ sudo apt-get install openjdk-7-jdk

Let that install and then proceed. More copy and paste:

[Hint: Running this command installs the other required packages to build android]

$ sudo apt-get update && sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib

###Getting the Source

Making required directories Obtaining the repo binary Adding repo binary to your path Giving the repo binary proper permissions Initializing an empty repo Syncing the repo Alright, so now we’re getting there. I have outlined the basics of what we’re about to do and broke them down as I know them. This is all pretty much going to be copy/paste so it’ll be fairly difficult to screw this up :) Make directory for the repo binary

$ mkdir ~/bin

Add directory for the repo binary to its path

$ PATH=~/bin:$PATH

Downloading repo binary and placing it in the proper directory

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

Giving the repo binary the proper permissions

$ chmod a+x ~/bin/repo

Creating directory for where the SudaMod repo will be stored and synced

$ mkdir ~/SudaMod $ cd ~/SudaMod

Initializing the SudaMod repo and downloading the manifest

$ repo init -u git://github.com/SudaMod/android.git -b sm-2.0

Then to sync up:

$ repo sync --force-sync -j8

[Hint: This might take a long time as the source is about 15GB+]

###Setting Up CCache

CCache is a method of utilizing a specified storage space to speed up building. It can be referred to as the same caching your android device does to speed up application and system boot times. In this case, CCache will help build SudaMod faster than standard build times (Able to cut-down 50% of time taken to build).

To set up CCache, follow the following:

$ echo "export USE_CCACHE=1" >> ~/.bashrc

$ ~/SudaMod/prebuilts/misc/linux-x86/ccache/ccache -M 50G

-M 50G The number before the letter G at the end specifies the amount of space CCache can use in your storage unit. As such, ensure that not too much of space is specified as this might result in unexpected errors although, the more storage you have, its recommended to have more CCache as it will increase the build times. Most efficient build systems are able to utilize CCache to about 120G or more.

###To build SudaMod

$ cd ~/SudaMod 

$ . build/envsetup.sh

$ breakfast "device name"

$ brunch "device name"

or make is all one line.

$ . build/envsetup.sh && breakfast "device name" && brunch "device name"

Obtaining the zip created from the build process

To get the zip file that has been built, navigate to the following directory and find for the zip file:

$ cd ~/SudaMod/out/target/product/

If you found it, then congratulations! If you didn't, try retrying the build process but before doing so, ensure you do the following to make sure your next build is clean;

$ cd ~/SudaMod && make clean && repo sync -j 16

android_vendor_sm's People

Contributors

3eleven avatar apr20th311 avatar arco avatar ardevd avatar blackzigong avatar brinlyau avatar chirayudesai avatar ciwrl avatar ctso avatar danesh avatar defer avatar dhacker29 avatar ghbhaha avatar guillaume777 avatar hyperb1iss avatar intervigilium avatar invisiblek avatar kali- avatar kalimochoaz avatar kmobs avatar koush avatar mdmower avatar merudo avatar mikeng avatar pawitp avatar rmcc avatar ryzenforce990 avatar tpruvot avatar turl avatar wesgarner avatar

Watchers

 avatar  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.