[Miscellaneous Android Development] mifl:
Compile Unofficial CyanogenMod 10 for Pantech Burst

To compile Unofficial CyanogenMod for Pantech Burst P9070 (presto), following the next steps.

1º - Prepare the Build Environment:

You must have a Linux build environment, I have followed this guide: Compile JB on Ubuntu. Follow the guide until completing step "4)".

2º - Create the Directories

You will need to set up some directories in your build environment.

Note

:

For the next steps, information was obtained from: HTC One XL: Compile CyanogenMod (Linux).

I modified the installation path sources, because in this way you can include other repositories (CAF, AOSP, etc ...).

To create them:

mkdir -p ~/bin
mkdir -p ~/android
mkdir -p ~/android/cyanogenmod
mkdir -p ~/android/cyanogenmod/jellybean

3º - Install the repo:

Enter the following to download make executable the "repo" binary:

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

Note

:

You may need to reboot for these changes to take effect.

4º - Install the CM10 Repository:

Now enter the following to initialize the CyanogenMod repository:

cd ~/android/cyanogenmod/jellybean/
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
repo sync -j16

5º - Obtain the presto device tree:

Create/Edit a file with the name local_manifest.xml in the ".repo" directory. To see this directory, you have to press Ctrl-H in your file manager.

gedit ~/android/cyanogenmod/jellybean/.repo/local_manifest.xml.

Add these lines

<project name="PrestoTeam/android_device_pantech_presto" path="device/pantech/presto" remote="github" revision="jellybean" />
<project name="PrestoTeam/android_kernel_pantech_p9070" path="kernel/pantech/p9070" remote="github" revision="jellybean" />

6º - Copy proprietary files:

Option 1

:

To compile pantech presto, connect the device to the computer and ensure that ADB is working properly.

cd ~/android/cyanogenmod/jellybean/device/pantech/presto
./extract-files.sh

Option 2

:

You can also include the repository with the necessary files for complilación:

gedit ~/android/cyanogenmod/jellybean/.repo/local_manifest.xml.

Add this line

<project name="PrestoTeam/android_vendor_pantech_presto" path="vendor/pantech/presto" remote="github" revision="jellybean" />

7º - Download RomManager

Note

:

This only needs to be done when an update to RomManager is released. If you are-up-to date, you may skip to Building CyanogenMod.

Download RomManager which is needed by the build:

~/android/cyanogenmod/jellybean/vendor/cm/get-prebuilts

8º - Building CyanogenMod

First, check for updates in the source:

cd ~/android/cyanogenmod/jellybean/
repo sync

Now, the environment must be configured to build and the ROM compiled.

. build/envsetup.sh && brunch presto

9º - Install

If you're a little crazy, and at your own risk, you can complete the installation:

Copy your .zip file from ~/android/cyanogenmod/jellybean/out/target/product/presto/cm-10-XXXXX-UNOFFICIAL-presto.zip to the root of the SD card.

Optional

: Download Google Apps for CyanogenMod 10 and place it on the root of the SD card.

Flash both of these .zip files from recovery.

-----------------------------------------------------------------------------------------

Greetings.