Skip to content

Commit

Permalink
h811: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashed97 committed Aug 15, 2015
0 parents commit 6657dc2
Show file tree
Hide file tree
Showing 13 changed files with 282 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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")
6 changes: 6 additions & 0 deletions cm.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"repository": "android_device_lge_g4-common",
"target_path": "device/lge/g4-common"
}
]
15 changes: 15 additions & 0 deletions cm.mk
Original file line number Diff line number Diff line change
@@ -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"
26 changes: 26 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
@@ -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)
7 changes: 7 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -e

export VENDOR=lge
export DEVICE=h811
./../../$VENDOR/g4-common/extract-files.sh $@
28 changes: 28 additions & 0 deletions full_h811.mk
Original file line number Diff line number Diff line change
@@ -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
35 changes: 35 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -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>
71 changes: 71 additions & 0 deletions proprietary-files.txt
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions setup-makefiles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -e

export VENDOR=lge
export DEVICE=h811
./../../$VENDOR/g4-common/setup-makefiles.sh $@
8 changes: 8 additions & 0 deletions system.prop
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_lunch_combo cm_h811-userdebug

0 comments on commit 6657dc2

Please sign in to comment.