/device_lge_occam

What the Nexus 4 may have been like if Google had continued supporting it

Primary LanguageMakefile

What the Nexus 4 may have been like if Google had continued supporting it

Introduction:

This repo contains the files and instructions necessary to build a working Oreo ROM for the Nexus 4 (occam). The ROM is meant to emulate the "pure Android experience" found on the Nexus/Pixel devices and includes most of the necessary google apps and services. See instructions below to build the ROM.

Credits:

This ROM is based on the Unlegacy ROM for mako. The google apps were added with the Opengapps AOSP Build System project.

Pre-requisites:

See Requirements and Establishing a Build Environment to set up a build environment on your computer.

Build Instructions:

$ repo init -u git://github.com/Unlegacy-Android/android.git -b aosp-8.1
$ cd .repo
$ git clone https://github.com/pbellanger/local_manifests.git -b oreo
$ cd ..
$ repo sync -d -c --force-sync --jobs=1 --no-tags
$ export ANDROID_JACK_VM_ARGS="-Xmx4g -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
$ . build/envsetup.sh
$ lunch occam-userdebug
$ prepare_occam >occamprepare.log 2>&1
$ make -j$(grep -c processor /proc/cpuinfo) dist >occambuild.log 2>&1
$ make_signed_images

Installation instructions:

On your Nexus 4

1. Power down your phone
2. Press and hold the volume down and the power buttons of your phone to enter fastboot mode
3. Connect your phone to your computer via the USB cable

On your PC

Assuming you are at the top of your AOSP working directory:

$ cd out/target/product/mako

If installing the ROM for the first time (WARNING: all user data will be deleted on your phone!):

$ fastboot oem unlock
$ fastboot -w update occam-signed-img-eng.*.zip

If installing the ROM from an older version of this ROM (no user data will be lost):

$ fastboot update occam-signed-img-eng.*.zip

or, for the OTA update: $ adb sideload occam-signed-ota-update.*.zip

NOTE: the initial boot after flashing the ROM may take a long time (in the order of several minutes)