Hi all, I don't have a nexus 7 3G so I decided to post this guide for people that want to build their own ROMs using my AOSP source from github.
Working on both Ubuntu 12.04+
NOTE: DEPENDING ON YOUR COMPUTER'S HARDWARE, COMPILING TIME WILL BE DIFFERENT
If you have a MAC OSX, I do not have a guide for that as I don't have one.
EVERYTHING THAT IS IN A BOX, OPEN TERMINAL AND ENTER THE COMMAND IN THAT SECTION
Guide Requirements:
- Computer
- Common Sense
- Some Linux Experience
- Ubuntu 64-bit Installed
- At least 4GB of ram with a quad core processor.
Required Software to Install:
Link libx11
1a. Use this guide to install it before continuing. Use java 1.7
http://forum.xda-developers.com/showpost.php?p=33061055&postcount=1
Setting Up Android SDK
2a. Download Android SDK at http://developer.android.com/sdk/index.html
2b. Extract it to your home folder [e. x. ~/android/sdk]
Setting Up the .bashrc file
Add this to the very bottom of the file:
Setup Workplace
3a. Downloading the Source
(Open a new terminal window after this)
3b. Setup Necessary Source
3c. Download Necessary Source. Put the number of cpu's you have where # is
3d. Set up ccache. The suggested cache size is 50-100GB. You will need to run the following commands once you have downloaded the source code:
3e. Extract needed files for building a fully funtional ROM. I've added CyanogenMod's extraction scripts to the device tree for tilapia which is only needed to be run one time. Do not do this with every build. Make sure your device is plugged in and adb is working.
3f. Building the source code
Building The Source
Checking for updates
My own current working builds for tilapia can be found HERE
Note which ones are for tilapia and which ones are for grouper
Gapps (optional add-on package) can be found HERE
Original thread for the device I own for a full list of changes is HERE
Full ROM source code including kernel is available from viewing on my github HERE
Working on both Ubuntu 12.04+
NOTE: DEPENDING ON YOUR COMPUTER'S HARDWARE, COMPILING TIME WILL BE DIFFERENT
If you have a MAC OSX, I do not have a guide for that as I don't have one.
EVERYTHING THAT IS IN A BOX, OPEN TERMINAL AND ENTER THE COMMAND IN THAT SECTION
Guide Requirements:
- Computer
- Common Sense
- Some Linux Experience
- Ubuntu 64-bit Installed
- At least 4GB of ram with a quad core processor.
Required Software to Install:
Code:
sudo apt-get install git-core gnupg flex bison python gawk p7zip-full gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool xsltproc wx2.8-doc lib32z1-dev ia32-libs lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++-multilib libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-glx libreadline6-dev libgl1-mesa-dev mingw32 tofrodos python-markdown libxml2-utils gcc-4.7 g++-4.7
Code:
sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so
http://forum.xda-developers.com/showpost.php?p=33061055&postcount=1
Setting Up Android SDK
2a. Download Android SDK at http://developer.android.com/sdk/index.html
2b. Extract it to your home folder [e. x. ~/android/sdk]
Setting Up the .bashrc file
Code:
gedit ~/.bashrc
Code:
export PATH=$PATH:~/bin:~/android/sdk:~/android/sdk/tools:~/android/sdk/platform-tools
3a. Downloading the Source
Code:
mkdir -p ~/bin
mkdir -p ~/android/SaberMod
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
3b. Setup Necessary Source
Code:
cd ~/android/SaberMod
Code:
repo init -u https://github.com/SaberMod/android.git -b sm-jb-mr1
Code:
repo sync -j#
Code:
prebuilts/misc/linux-x86/ccache/./ccache -M 50G
Code:
bash device/asus/tilapia/extract-files
Building The Source
Code:
bash sm-tilapia
Code:
repo sync -j#
Note which ones are for tilapia and which ones are for grouper
Gapps (optional add-on package) can be found HERE
Original thread for the device I own for a full list of changes is HERE
Full ROM source code including kernel is available from viewing on my github HERE
Last edited: