Building Jellybean for the Vibrant MTD (Galaxy S1)

These are Nate’s notes from the FB group. Nate runs ubuntu so all his Linux stuff is horribly broken crap but the bones are here to make this workable:

***ROM BUILD TUTORIAL***
Wanna build a Paranoid Android Vibrant ROM?
I’ll point you in the right direction.
This can be applied to many devices. Want help? Just ask.
Start here:
–Install the repo
–Open your terminal and enter the following

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

–Download the SDK here: http://developer.android.com/sdk/index.html
–Extract the SDK and place it in your home directory.
–I renamed my SDK to android-sdk to make it easier to navigate to.
–Type
gksudo gedit ~/.bashrc
–in terminal
–Enter your Admin. password to open the document
–Add these lines at the bottom of the file:

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

–Then save and close

–Now type
gksudo gedit ~/.profile
–In terminal
–Add the following to the bottom

PATH=”$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH”

–Then save and close
–SDK now being set up, type this in terminal

android

–If you get an exception error type

sudo mount -o remount,exec /tmp

–and retry

–Now time to install packages (64 bit required)
–Paste this and enter

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils

–Then this

sudo ln -s /usr/lib/i386-linux-gnu/libX11.so.6 /usr/lib/i386-linux-gnu/libX11.so

–Configure your USB

gksudo gedit /etc/udev/rules.d/51-android.rules

–and copy/paste this to your document.

http://pastebin.com/gXcZ7vx7

–Save and close
–This will add all the devices to the list
–Type the following in terminal

sudo chmod a+r /etc/udev/rules.d/51-android.rules

–Creating your working directory and add a repo
–back to terminal

mkdir -p ~/android/jellybean
cd ~/android/jellybean
repo init -u git://github.com/ParanoidAndroid/android.git -b jellybean
repo sync

–Sit back and enjoy a good movie or two. This will take a long time.
–For the time being you’ll need to sync my modified PA vendor with Vibrant support

cd ~/android/jellybean/vendor
rm -Rf pa
git clone -b jellybean https://github.com/ngiordano/android_vendor_pa.git pa
cd ..

–The fun stuff begins!!!
./rom-build.sh vibrantmtd

When complete look in /out/target/product/vibrantmtd for the zip. The one listed in terminal is your choice

Phew!
Looks good but I’m only human. If I made an error, let’s talk about it.

Advertisements

One thought on “Building Jellybean for the Vibrant MTD (Galaxy S1)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s