spock1104
Android Expert
Well I'm apparently behind in the times but better late than never. I finally cleaned up my source code mods and pushed to github, so hopefully this guide gives people an easy start so we can aid in PhenomX4's incredible JB efforts.
So of course, thanks to PhenomX4 and Giantpune, and anyone else who has contributed.
There may be a few inconsistencies in the information I give as I set up with Ubuntu 10.04 when that was what Google supported, but the guidance has switched to 12.04.
Environment
This can be done on either a dedicated box or a virtual machine. I've seen recommendations of 50-100GB of space, but I recommend 150 for managing several build directories at once. Follow most of the instructions on Initializing a Build Environment | Android Developers but ignore the java instructions. Also don't mind the RAM requirements, I run my virtual machine with 4GB and its fine.
instead, to install java, from a command line
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo update-java-alternatives -s java-6-oracle
and to install git
deb http://ppa.launchpad.net/git-core/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/git-core/ppa/ubuntu lucid main
sudo apt-get install git-core
use the instructions at Downloading the Source | Android Developers to install Repo
Downloading the source
Decide on a directory structure for yourself on where you want to put your builds. I use ~/lg696/ics/
From the directory you want to work in, enter these commands
repo init -u git://github.com/oecm9/android.git -b ics
repo sync
This will pull the latest code from the ics branch of Cyanogenmod and the additions from the oecm9 group.
One time setup
Before you can compile, you need to grab prebuilt apps that aren't under Cyanogenmod control.
cd vendor/cm
./get-prebuilts
cd ../..
Build the code!
First we'll automatically set up variables that tell the system what we're building and how to do it
. ./build/envsetup.sh
lunch
This will bring up a prompt asking what device to build for. Select 4 (cm_m3s-userdebug). The command will take a moment, then put you back at the command prompt. Lastly, enter
mka bacon
Using the build
The result will be two flashable zip files in out/target/product/m3s.
cm_m3s-ota-eng.user.zip
cm-9-date-UNOFFICIAL-m3s.zip
Either of these is usable, but the second of them is the "optimized" version. Install using clockworkmod or TWRP and enjoy testing.
==========
If you have any feedback on this guide and how it can be better please let me know. I want this to be as informative as possible.
Hopefully I'll have one of these for CM10 soon so we can get more people helping out, making ROMs, and just plain making our phone better.
So of course, thanks to PhenomX4 and Giantpune, and anyone else who has contributed.
There may be a few inconsistencies in the information I give as I set up with Ubuntu 10.04 when that was what Google supported, but the guidance has switched to 12.04.
Environment
This can be done on either a dedicated box or a virtual machine. I've seen recommendations of 50-100GB of space, but I recommend 150 for managing several build directories at once. Follow most of the instructions on Initializing a Build Environment | Android Developers but ignore the java instructions. Also don't mind the RAM requirements, I run my virtual machine with 4GB and its fine.
instead, to install java, from a command line
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo update-java-alternatives -s java-6-oracle
and to install git
deb http://ppa.launchpad.net/git-core/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/git-core/ppa/ubuntu lucid main
sudo apt-get install git-core
use the instructions at Downloading the Source | Android Developers to install Repo
Downloading the source
Decide on a directory structure for yourself on where you want to put your builds. I use ~/lg696/ics/
From the directory you want to work in, enter these commands
repo init -u git://github.com/oecm9/android.git -b ics
repo sync
This will pull the latest code from the ics branch of Cyanogenmod and the additions from the oecm9 group.
One time setup
Before you can compile, you need to grab prebuilt apps that aren't under Cyanogenmod control.
cd vendor/cm
./get-prebuilts
cd ../..
Build the code!
First we'll automatically set up variables that tell the system what we're building and how to do it
. ./build/envsetup.sh
lunch
This will bring up a prompt asking what device to build for. Select 4 (cm_m3s-userdebug). The command will take a moment, then put you back at the command prompt. Lastly, enter
mka bacon
Using the build
The result will be two flashable zip files in out/target/product/m3s.
cm_m3s-ota-eng.user.zip
cm-9-date-UNOFFICIAL-m3s.zip
Either of these is usable, but the second of them is the "optimized" version. Install using clockworkmod or TWRP and enjoy testing.
==========
If you have any feedback on this guide and how it can be better please let me know. I want this to be as informative as possible.
Hopefully I'll have one of these for CM10 soon so we can get more people helping out, making ROMs, and just plain making our phone better.
Not anytime soon but hopefully one day. got ALOT more to learn but at least I am somewhat use to the programming language of Java now