Skip to content

playfulgod/android_device_lge_l1m

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

**Work in progress for the LG Spirit 4G.

HOW-TO BUILD:

This short guide assumes you're on Ubuntu 11.04 or above

Getting the (right) source

First, we need to create directories for the build (system can be whatever you want to name your working directory):

$ mkdir -p ~/bin

$ mkdir -p ~/android/system

Now we'll need repo. Let's download it and make it executable:

$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

$ chmod a+x ~/bin/repo

Log out and back in so the changes take effect.

Now initialized the repository and pull the source (with my repos attached):

$ cd ~/android/system/

$ repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0

$ repo sync

Note: Depending on your connection, this might take awhile.

Getting my repos for the LG Spirit (l1m)

$ cd ~/android/system/device/

$ mkdir lge

$ cd lge

$ git clone https://github.com/playfulgod/android_device_lge_l1m.git -b cm-11.0 l1m

Getting kernel source

Then cd to the kernel directory (custom kernels unable to be used at this time due to locked bootloader, but setup for them just in case):

$ mkdir ~/android/system/kernel (if it doesnt exist already!)

$ cd ~/android/system/kernel

$ mkdir lge

$ cd ~/android/system/kernel/lge

$ git clone https://github.com/playfulgod/kernel_lge_l1m.git l1m

Extract necessary binaries and proprietary files

We will need to reuse some proprietary files from the stock ROM:

$ cd

$ cd ~/android/system/device/lge/l1m

$ ./extract-files.sh

or place a copy of a stock ROM zip or previous CM build in device/lge/l1m

$ ./unzip-files.sh name-of-zip.zip

Building CM11

Once thats done you can start compiling.

Follow the aosp instructions on setting up the build environment. - http://source.android.com/source/download.html

When the environment is setup, we need to grab a copy of Term.apk. This is necessary to build CM11.

$ cd ~/android/system/vendor/cm

$ ./get-prebuilts

Now, we build (system being your work directory):

$ cd ~/android/system

To build for the LG Spirit 4G:

$ . build/envsetup.sh && brunch l1m

Installing CM11

If the build was successful, you can now take the update zip found in out/target/product/l1m/ and flash using a custom recovery. Make sure to grab the latest Gapps to complete the experience.

Note: Currently the produced zip will need to be edited and repack with the stock boot.img or the boot.img removed and the updater-script edited accordingly.

When you want to rebuild with new changes to the BoardConfig.mk or after syncing to the latest CM src make sure to do the following before you recompile.

$ make clobber

About

Device tree for LG Spirit 4G (MS870) on MetroPCS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 50.9%
  • Python 25.4%
  • Shell 21.3%
  • Java 2.4%