Saturday, May 25, 2013

These instructions will be for building PAC-man ROM (4.2.2) for the Samsung Galaxy Exhibit 4G (T679) and the Samsung Galaxy Wonder (I8150). This is not guaranteed to work, but if done correctly it will.


Step One: Downloading the Source
  1. I have set up a REPO on my github with all the changes needed to get a fully functional build. Therefore just follow these steps and theses steps only and you will have a build.
mkdir ~/pac

cd ~/pac

repo init -u git://github.com/theapant/android-pac.git -b cm-10.1

repo sync




Step Two: Building the Source

./build-pac.sh ancora_tmo       **for T679

./build-pac.sh ancora       **for I8150



Step Three: Testing
  1. Flash the ROM and if everything works, congrats. If you have trouble compiling let me know in the comment section and I will try to help you.
Here I will outline the basic steps, from installing packages to the actual compilation, based on my REPOS for the Galaxy Wonder, My-Touch 4G, and Exhibit 4G. This is only for ROMs that I support, and their is no guarantee that it will work correctly for you.

Prerequisites: 

  1. A computer with a 64 bit processor
  2. 4 GBs of RAM or more
  3. A Linux, preferably Debian based OS. I like Xbuntu and Linux Mint. 
  4. Time, it takes me about an 1.5 hours, although ccache will drop that to 50 min



Step One: Installing Java
  1. Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and download the latest Java 6, right now it is Java SE 6u45  select the linux .bin one
  2. Open a terminal and navigate to where the file was downloaded, then run the following one at a time:

chmod +x  jdk-6u45-linux-x64.bin

./jdk-6u45-linux-x64.bin

sudo mkdir /usr/lib/jvm

sudo mv jdk1.6.0_45 /usr/lib/jvm

wget http://webupd8.googlecode.com/files/update-java-0.5b

chmod +x update-java-0.5b

sudo ./update-java-0.5b

  • Select jdk-6u45 and hit OK


Step Two: Installing Packages

  1. Open the link and copy and paste this into the terminal:
Packages
Step Three: Initializing the Repo

$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo