/android_device_lge_g4

Unified device tree for all (relevant) g4 models

Primary LanguageMakefile

Copyright 2015-2016 - The CyanogenMod Project

Copyright 2017-2019 - The LineageOS Project

Unified device tree for all G4 models

ToC

Specs

Basic Spec Sheet
CPU Dual-core 2.0 GHz ARM® Cortex™ A57 and quad-core 1.5 GHz ARM® Cortex™ A53
CHIPSET Qualcomm MSM8992 Snapdragon 808
GPU Adreno 418
Memory 3GB
Shipped Android Version 5.1
Storage 32GB
MicroSD Up to 128GB
Battery 3000 mAh
Dimensions 148.9 x 76.1 x 6.3 - 9.8 mm
Display 2560 x 1440 pixels, 5.5" HD-IPS LCD
Rear Camera 16 MP hybrid infared autofocus, dual-LED flash
Front Camera 8 MP
Release Date April 2015

LG G4

Port this tree to a new / other ROM

every model will need a single build run. porting that to another rom means you might (depends on the ROM):

  1. rename the main mk file lineage.mk (e.g. to mynewrom.mk)
  2. rename all lineage_*mk files (e.g to mynewrom_*.mk)
  3. rename PRODUCT_NAME in all lineage_*mk files to match mynewrom
  4. rename inherits of lineage.mk to the mynewrom.mk from step 1
  5. rename lunch combos in vendorsetup.sh
  6. <model>/BoardConfig.mk might need to be changed to another kernel defconfig (if you want to use different ones)
  7. rename lineage.dependencies to mynewrom.dependencies

that sounds a lot first but tbh its just a few for loop runs and its almost done.

for 1:

mv lineage.mk mynewrom.mk

for 2:

check how it would look like:

for i in $(ls lineage_*.mk);do echo mv $i ${i/lineage/mynewrom};done

if that looks good do the change:

for i in $(ls lineage_*.mk);do mv $i ${i/lineage/mynewrom};done

for 3:

check how it would look like:

for i in $(ls mynewrom_*.mk);do sed "s/lineage_/mynewrom_/g" $i ;done | grep PRODUCT_NAME

if that looks good do the change:

for i in $(ls mynewrom_*.mk);do sed -i "s/lineage_/mynewrom_/g" $i ;done

for 4:

check how it would look like:

for i in $(ls *.mk);do sed 's/lineage.mk/mynewrom.mk/g' $i ;done |grep mynewrom

if that looks good do the change:

for i in $(ls *.mk);do sed -i 's/lineage.mk/mynewrom.mk/g' $i ;done

for 5:

check how it would look like:

for i in $(echo vendorsetup.sh);do sed "s/lineage_/mynewrom_/g" $i;done

if that looks good do the change:

for i in $(echo vendorsetup.sh);do sed -i "s/lineage_/mynewrom_/g" $i;done

for 6-7:

I trust in you that you can handle that ;)