-
Notifications
You must be signed in to change notification settings - Fork 11
/
device.mk
90 lines (73 loc) · 2.96 KB
/
device.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS 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.
#
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/mixer_paths_skuk.xml:system/vendor/etc/mixer_paths_skuk.xml
# Camera
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/hdrhax:system/vendor/etc/hdrhax
# Display
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/calib.cfg:system/etc/display/calib.cfg \
# IRQ balance
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
# Keylayouts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/atmel_mxt_ts_T100_touchscreen.kl:system/vendor/usr/keylayout/atmel_mxt_ts_T100_touchscreen.kl \
$(LOCAL_PATH)/keylayout/Headset.kl:system/vendor/usr/keylayout/Headset.kl
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_codecs.xml:system/vendor/etc/media_codecs.xml \
$(LOCAL_PATH)/configs/media_codecs_performance.xml:system/vendor/etc/media_codecs_performance.xml
# NFC packages
PRODUCT_PACKAGES += \
NfcNci \
Tag \
nfc_nci.bcm2079x.default
PRODUCT_PACKAGES += \
android.hardware.nfc@1.0-impl-bcm \
android.hardware.nfc@1.0-service
# NFC access control + feature files + configuration
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.xml:system/vendor/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/vendor/etc/permissions/android.hardware.nfc.hce.xml \
$(LOCAL_PATH)/nfc/libnfc-brcm.conf:system/vendor/etc/libnfc-brcm.conf \
$(LOCAL_PATH)/nfc/libnfc-brcm-20795a20.conf:system/vendor/etc/libnfc-brcm-20795a20.conf \
$(LOCAL_PATH)/nfc/nfcee_access.xml:system/etc/nfcee_access.xml
# Permission
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/vendor/etc/permissions/android.hardware.opengles.aep.xml
# Qualcomm
PRODUCT_PROPERTY_OVERRIDES += \
ro.qcom.ad.calib.data=/data/misc/display/calib.cfg \
ro.qcom.ad=1 \
ro.qualcomm.cabl=2
# Ramdisk
PRODUCT_PACKAGES += \
init.qcom.power.rc \
init.target.rc
# Thermal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine.conf:system/vendor/etc/thermal-engine.conf
# Touchscreen
PRODUCT_PACKAGES += \
init.atmel_ts.sh