Welcome to Our Website!

This Guide was created by Reven Tech, one of the Developers on our XDA-Developers Forum. All I have done is create this WebPage and place his words in it.

   

  How To Setup the Android Rom Devolepoment Environment
for Linux Mint 17 Cinnamon x64


Step 1. Neccessary Packages

First things we need to get are the neccessary Packages. To do so lets open Terminal and do the following:

NOTE: Everytime a new terminal is opened and a sudo command is used it will ask for your password. It does this to grant your user account on Linux root or "su" permissions to modify or change system files which is needed for this setup (dont worry you will not mess anything up)

Copy and paste each as instructed

sudo apt-get install git-core gnupg flex bison python rar original-awk gawk p7zip-full gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool

(Press enter and let it finish up) Once done follow next step same method as before

sudo apt-get install libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils

(Press enter and let it finish up) Once done follow next step same method as before

sudo apt-get install g++-multilib lib32z1-dev ia32-libs lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++-multilib xsltproc

(Press enter and let it finish up)

You can now safely close out of this terminal

Step 2. Java JDKs

Now its time to install the correct Java JDK for deveolping android. To do so open a new Terminal and do the following:

Copy and paste each as instructed

sudo apt-get purge openjdk*

(Press enter and let it finish up) on to next one

sudo apt-get purge openjdk*

(Press enter and let it finish up) on to next one

sudo apt-get install software-properties-common

(Press enter and let it finish up) on to next one

sudo add-apt-repository ppa:webupd8team/java

(Press enter and let it finish up) on to next one

sudo apt-get update

(Press enter and let it finish up) on to next one

sudo apt-get install oracle-java6-installer

(You can now safely close out of this terminal

Step 3. Android SDK

Now its time to setup the Android SDK for linux. To do so go to this link:
      http://developer.android.com/sdk/index.html
and click where it says download the sdk adt bundle. Checkbox the agreement and check 64-bit and click the Download button. This download will take a little bit. Once downloaded go into the Downloads folder and click on it. It will open up archive manger and you will want to extract it. Go into the "Home" directory and right click inside it to "create a new folder". Simply name the folder "android" without the quotation marks. go to the folder where you extracted the sdk adt bundle. Inside it you will find "eclipse" and "sdk" right click on "sdk" and select copy. Now we are going to go into that "android" folder you created in "Home" and paste it inside there. You can now delete the folder for adt bundle that you extracted earlier as well as the zip if you want to.

Step 4. Setup Paths

Now its time to setup the proper Files and paths needed for repositories and building tools. Go back into home directory and right click and "create new folder". Weare are simply going to name this one "bin" with no quotation marks. now right click on that bin folder you just made and "Open as Root". It will ask for password. once it opens up right click inside it and select "Properties". Go to the "Permissions" tab. For Owner select your username and for folder access select "Create and delete files". For Group select your username and for folder access select "Create and delete files". You can now close out of "Properties" and the folder for bin that was opened as Root. Open up a new terminal and copy/paste the following:

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

(Press enter and let it finish up) Then next is

chmod a+x ~/bin/repo

(Press enter and let it finish up)

Once this is done ensure there is a file inside your "bin" folder titled "repo". If its there then go back to the terminal and copy/paste the following:

sudo nano ~/.bashrc

(Press enter and it will open up the Gnu Nano screen) copy/paste the following:

export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin

once pasted in on your keyboard hit CTRL O and then press enter to save it. then hit CTRL X to exit out and it will return back to terminal screen.

Step 5. Last One

This is the very last step. In the Terminal copy/paste the following:

sudo apt-get install git-core

(Press enter and let it finish up) Then next is

sudo apt-get update

(Press enter and let it finish up)

If you have an account on Github which will be needed if you are on my Team copy/paste the following (enter Username and Email without quotations):

git config --global user.name "your git Username here"

(Press enter)

git config --global user.email "your email that your git is connected to here"

(Press enter)

Now you are all done with setup and are ready for building...each rom is different on how its initiated and built so be sure to look for instructions. they are generally found in the manifest or android repo on the Roms github. Any further questions or concerns feel free to cantact REV3NT3CH on hangouts at rev3nt3ch@gmail.com