aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRashed Abdel-Tawab <rashed@linux.com>2015-08-14 20:29:09 -0400
committerRashed Abdel-Tawab <rashed@linux.com>2015-08-14 20:29:09 -0400
commit6657dc2dd4a21d489dd620a1f55c133882905862 (patch)
tree2c41bd7da0c0ded75f57f82042051c16e7bf8f2c
h811: Initial commit
-rw-r--r--Android.mk30
-rw-r--r--BoardConfig.mk26
-rw-r--r--README.md22
-rw-r--r--cm.dependencies6
-rw-r--r--cm.mk15
-rw-r--r--device.mk26
-rwxr-xr-xextract-files.sh7
-rw-r--r--full_h811.mk28
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml35
-rw-r--r--proprietary-files.txt71
-rwxr-xr-xsetup-makefiles.sh7
-rw-r--r--system.prop8
-rwxr-xr-xvendorsetup.sh1
13 files changed, 282 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..55e5cbf
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,30 @@
+#
+# Copyright 2015 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This contains the module build definitions for the hardware-specific
+# components for this device.
+#
+# As much as possible, those components should be built unconditionally,
+# with device-specific names to avoid collisions, to avoid device-specific
+# bitrot and build breakages. Building a component unconditionally does
+# *not* include it on all devices, so it is safe even with hardware-specific
+# components.
+
+LOCAL_PATH := $(call my-dir)
+
+ifneq ($(filter h811,$(TARGET_DEVICE)),)
+include $(call all-makefiles-under,$(LOCAL_PATH))
+endif
diff --git a/BoardConfig.mk b/BoardConfig.mk
new file mode 100644
index 0000000..e96d62c
--- /dev/null
+++ b/BoardConfig.mk
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2015 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# inherit from common g4
+-include device/lge/g4-common/BoardConfigCommon.mk
+
+TARGET_OTA_ASSERT_DEVICE := g4,p1,h811
+
+# Kernel
+TARGET_KERNEL_CONFIG := cyanogenmod_h811_defconfig
+
+# inherit from the proprietary version
+-include vendor/lge/h811/BoardConfigVendor.mk
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..690bf7e
--- /dev/null
+++ b/README.md
@@ -0,0 +1,22 @@
+Copyright 2015 - The CyanogenMod Project
+
+Device configuration for LG G4 (T-Mobile).
+=====================================
+
+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](http://cdn2.gsmarena.com/vv/pics/lg/lg-g4-1.jpg "LG G4")
diff --git a/cm.dependencies b/cm.dependencies
new file mode 100644
index 0000000..172316e
--- /dev/null
+++ b/cm.dependencies
@@ -0,0 +1,6 @@
+[
+ {
+ "repository": "android_device_lge_g4-common",
+ "target_path": "device/lge/g4-common"
+ }
+]
diff --git a/cm.mk b/cm.mk
new file mode 100644
index 0000000..5f23704
--- /dev/null
+++ b/cm.mk
@@ -0,0 +1,15 @@
+$(call inherit-product, device/lge/h811/full_h811.mk)
+
+# Inherit some common CM stuff.
+$(call inherit-product, vendor/cm/config/common_full_phone.mk)
+
+# Enhanced NFC
+$(call inherit-product, vendor/cm/config/nfc_enhanced.mk)
+
+PRODUCT_NAME := cm_h811
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+ PRODUCT_DEVICE="g4" \
+ PRODUCT_NAME="g4_global_com" \
+ BUILD_FINGERPRINT="lge/p1_global_com/p1:5.1/LMY47D/151161552fef7:user/release-keys" \
+ PRIVATE_BUILD_DESC="p1_global_com-user 5.1 LMY47D 151161552fef7 release-keys"
diff --git a/device.mk b/device.mk
new file mode 100644
index 0000000..d8d32d3
--- /dev/null
+++ b/device.mk
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2015 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
+
+# Get non-open-source specific aspects
+$(call inherit-product-if-exists, vendor/lge/h811/h811-vendor.mk)
+
+# Overlays
+DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
+
+# common g4
+$(call inherit-product, device/lge/g4-common/g4.mk)
diff --git a/extract-files.sh b/extract-files.sh
new file mode 100755
index 0000000..410e6ee
--- /dev/null
+++ b/extract-files.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+export VENDOR=lge
+export DEVICE=h811
+./../../$VENDOR/g4-common/extract-files.sh $@
diff --git a/full_h811.mk b/full_h811.mk
new file mode 100644
index 0000000..f078b94
--- /dev/null
+++ b/full_h811.mk
@@ -0,0 +1,28 @@
+#
+# Copyright 2015 The CyanogenMod Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Inherit from those products. Most specific first.
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
+
+# Inherit from h815 device
+$(call inherit-product, device/lge/h811/device.mk)
+
+# Set those variables here to overwrite the inherited values.
+PRODUCT_DEVICE := h811
+PRODUCT_NAME := full_h811
+PRODUCT_BRAND := lge
+PRODUCT_MODEL := LG-H811
+PRODUCT_MANUFACTURER := LGE
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..95e962d
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2012, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <!-- If the DUN connection for this CDMA device supports more than just DUN -->
+ <!-- traffic you should list them here. -->
+ <!-- If this device is not CDMA this is ignored. If this list is empty on -->
+ <!-- a DUN-requireing CDMA device, the DUN APN will support -->
+ <!-- just DUN. -->
+ <string-array translatable="false" name="config_cdma_dun_supported_types">
+ <item>"default"</item>
+ <item>"dun"</item>
+ <item>"mms"</item>
+ <item>"supl"</item>
+ </string-array>
+
+
+</resources>
diff --git a/proprietary-files.txt b/proprietary-files.txt
new file mode 100644
index 0000000..418ceaf
--- /dev/null
+++ b/proprietary-files.txt
@@ -0,0 +1,71 @@
+# Bluetooth
+bin/hci_qcomm_init
+vendor/lib/libbtnv.so
+
+# GPS
+bin/gsiff_daemon
+bin/location-mq
+bin/quipc_igsn
+bin/quipc_main
+bin/xtwifi-client
+bin/xtwifi-inet-agent
+lib/libloc_api_v02.so
+lib/libloc_ds_api.so
+vendor/lib/libalarmservice_jni.so
+vendor/lib/libgeofence.so
+vendor/lib/libizat_core.so
+vendor/lib/liblbs_core.so
+vendor/lib/liblocationservice.so
+vendor/lib/libquipc_os_api.so
+vendor/lib/libquipc_ulp_adapter.so
+vendor/lib/libulp2.so
+vendor/lib/libxtadapter.so
+vendor/lib/libxtwifi_ulp_adaptor.so
+vendor/lib/libxtwifi_zpp_adaptor.so
+
+# Qualcomm framework
+vendor/lib/libdiag.so
+vendor/lib/libdsi_netctrl.so
+vendor/lib/libdsnetutils.so
+vendor/lib/libdsutils.so
+vendor/lib/libidl.so
+vendor/lib/libqcci_legacy.so
+vendor/lib/libqdi.so
+vendor/lib/libqdp.so
+vendor/lib/libqmi.so
+vendor/lib/libqmi_cci.so
+vendor/lib/libqmi_client_qmux.so
+vendor/lib/libqmi_common_so.so
+vendor/lib/libqmi_csi.so
+vendor/lib/libqmi_csvt_srvc.so
+vendor/lib/libqmi_encdec.so
+vendor/lib/libqmiservices.so
+
+# Radio
+bin/netmgrd
+bin/qmuxd
+bin/rfs_access
+bin/rmt_storage
+lib/libril.so
+lib/libvss_common_idl.so
+lib/libvss_common_iface.so
+lib/libvss_nv_idl.so
+lib/libvss_nv_iface.so
+vendor/lib/libnetmgr.so
+vendor/lib/libril-qc-qmi-1.so
+vendor/lib/libril-qcril-hook-oem.so
+
+# Sensors
+bin/sensors.qcom
+vendor/lib/hw/sensors.msm8994.so
+vendor/lib/libsensor1.so
+vendor/lib/libsensor_reg.so
+
+# Venus (media) firmware
+etc/firmware/venus.b00
+etc/firmware/venus.b01
+etc/firmware/venus.b02
+etc/firmware/venus.b03
+etc/firmware/venus.b04
+etc/firmware/venus.mbn
+etc/firmware/venus.mdt
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
new file mode 100755
index 0000000..0680493
--- /dev/null
+++ b/setup-makefiles.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+
+export VENDOR=lge
+export DEVICE=h811
+./../../$VENDOR/g4-common/setup-makefiles.sh $@
diff --git a/system.prop b/system.prop
new file mode 100644
index 0000000..25445a4
--- /dev/null
+++ b/system.prop
@@ -0,0 +1,8 @@
+# Radio
+persist.radio.do_not_init_csvt=1
+rild.libargs=-d /dev/smd0
+ril.subscription.types=NV,RUIM
+ro.telephony.call_ring.multiple=0
+ro.telephony.default_network=9
+telephony.lteOnCdmaDevice=0
+telephony.lteOnGsmDevice=1
diff --git a/vendorsetup.sh b/vendorsetup.sh
new file mode 100755
index 0000000..4b2651a
--- /dev/null
+++ b/vendorsetup.sh
@@ -0,0 +1 @@
+add_lunch_combo cm_h811-userdebug