forked from h8rift/android_device_htc_apq8064-common
-
Notifications
You must be signed in to change notification settings - Fork 91
/
m7-common.mk
154 lines (125 loc) · 4.74 KB
/
m7-common.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Copyright (C) 2016 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.
# common msm8960 configs
$(call inherit-product, device/htc/msm8960-common/msm8960.mk)
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Boot animation
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
# Audio
PRODUCT_PACKAGES += \
audio_amplifier.msm8960
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_effects.conf:system/vendor/etc/audio_effects.conf \
$(LOCAL_PATH)/configs/audio_platform_info.xml:system/etc/audio_platform_info.xml \
$(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/mixer_paths.xml:system/etc/mixer_paths.xml
# Bluetooth
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bluetooth/bcm4335_prepatch.hcd:system/vendor/firmware/bcm4335_prepatch.hcd
# Camera
PRODUCT_PACKAGES += \
camera.msm8960 \
libcamera_shim \
Snap
# Gello
PRODUCT_PACKAGES += \
Gello
# GPS
PRODUCT_PACKAGES += \
gps.msm8960
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf
# IDC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/projector_input.idc:system/usr/idc/projector_input.idc \
$(LOCAL_PATH)/idc/synaptics-rmi-touchscreen.idc:system/usr/idc/synaptics-rmi-touchscreen.idc
# Keylayouts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl \
$(LOCAL_PATH)/keylayout/keypad_8960.kl:system/usr/keylayout/keypad_8960.kl \
$(LOCAL_PATH)/keylayout/projector-Keypad.kl:system/usr/keylayout/projector-Keypad.kl \
$(LOCAL_PATH)/keylayout/synaptics-rmi-touchscreen.kl:system/usr/keylayout/synaptics-rmi-touchscreen.kl \
# Keystore
PRODUCT_PACKAGES += \
keystore.msm8960
# Log
PRODUCT_PACKAGES += \
liblog_shim
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
# NFC
PRODUCT_PACKAGES += \
com.android.nfc_extras \
libnfc \
libnfc_jni \
libnfc_ndef \
libpn544_fw \
Nfc \
nfc.msm8960 \
Tag
ifeq ($(TARGET_BUILD_VARIANT),user)
NFCEE_ACCESS_PATH := $(LOCAL_PATH)/configs/nfcee_access.xml
else
NFCEE_ACCESS_PATH := $(LOCAL_PATH)/configs/nfcee_access_debug.xml
endif
PRODUCT_COPY_FILES += \
$(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml
# Permissions
PRODUCT_COPY_FILES += \
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.consumerir.xml:system/etc/permissions/android.hardware.consumerir.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml
# PowerHAL
PRODUCT_PACKAGES += \
libqc-opt_shim
# Ramdisk
PRODUCT_PACKAGES += \
fstab.qcom \
init.qcom.power.rc \
init.qcom.rc \
init.qcom.usb.rc \
init.target.rc \
ueventd.qcom.rc
# System properties
-include $(LOCAL_PATH)/system_prop.mk
# Thermal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermald.conf:system/etc/thermald.conf
# Voice processing
PRODUCT_PACKAGES += \
libqcomvoiceprocessing
# Widevine
PRODUCT_PACKAGES += \
libshim_wvm
# WiFi
PRODUCT_PACKAGES += \
libnetcmdiface
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/calibration:system/etc/calibration \
$(LOCAL_PATH)/configs/calibration_EMEA:system/etc/calibration_EMEA \
$(LOCAL_PATH)/configs/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf
# Include non-opensource parts
$(call inherit-product-if-exists, vendor/htc/m7-common/m7-common-vendor.mk)