The basics.
You will need:
1.-Unlocked bootloader.
2.-Rooted device.
3.-CWM installed AND a nandroid backup just in case.
1.-Unlocked bootloader.
2.-Rooted device.
3.-CWM installed AND a nandroid backup just in case.
Step 1. Download and install the tools.
Set environment variables and applications.
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool
Download and install repo as specified here: http://source.android.com/source/downloading.html#installing-repo$ mkdir ~/Programs
$ PATH=~/Programs:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/Programs/repo
$ chmod a+x ~/Programs/repo
$ mkdir -p /path/to/phablet-mirror cd /path/to/phablet-mirror
$ repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git --mirror
$ repo sync -j 8
NOTE:
The sync process will take up to an hour to complete so be patient.
$ PATH=~/Programs:$PATH
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/Programs/repo
$ chmod a+x ~/Programs/repo
$ mkdir -p /path/to/phablet-mirror cd /path/to/phablet-mirror
$ repo init -u https://code-review.phablet.ubuntu.com/p/aosp/platform/manifest.git --mirror
$ repo sync -j 8
NOTE:
The sync process will take up to an hour to complete so be patient.
The Bibliography.
[1] http://source.android.com/source/downloading.html#installing-repo
[2] https://wiki.ubuntu.com/Touch/AndroidDevel
[3] https://wiki.ubuntu.com/Touch/Building
[4] https://wiki.ubuntu.com/Touch/Porting
[2] https://wiki.ubuntu.com/Touch/AndroidDevel
[3] https://wiki.ubuntu.com/Touch/Building
[4] https://wiki.ubuntu.com/Touch/Porting