forked from CyanogenMod/android_device_htc_m7-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
m7-common.mk
177 lines (145 loc) · 5.68 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
#
# Copyright (C) 2011 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)
# overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Boot animation
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
# Ramdisk
PRODUCT_PACKAGES += \
fstab.qcom \
init.qcom.firmware_links.sh \
init.qcom.rc \
init.qcom.usb.rc \
init.target.rc \
remount.qcom \
ueventd.qcom.rc
# Post boot service
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/init.post_boot.sh:system/etc/init.post_boot.sh
# Recovery
PRODUCT_PACKAGES += \
init.recovery.qcom.rc \
choice_fn \
detect_key \
offmode_charging \
power_test
# QC thermald config
PRODUCT_COPY_FILES += $(LOCAL_PATH)/configs/thermald.conf:system/etc/thermald.conf
# Vold config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/vold.fstab:system/etc/vold.fstab
PRODUCT_CHARACTERISTICS := nosdcard
PRODUCT_PACKAGES += \
libnetcmdiface
# Wifi config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/calibration:/system/etc/calibration \
$(LOCAL_PATH)/configs/calibration_EMEA:/system/etc/calibration_EMEA
# Audio config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf
# Sound configs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/dsp/soundimage/srs_bypass.cfg:system/etc/soundimage/srs_bypass.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_51.cfg:system/etc/soundimage/srsfx_trumedia_51.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_movie.cfg:system/etc/soundimage/srsfx_trumedia_movie.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_music.cfg:system/etc/soundimage/srsfx_trumedia_music.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_voice.cfg:system/etc/soundimage/srsfx_trumedia_voice.cfg \
$(LOCAL_PATH)/dsp/soundimage/srs_geq10.cfg:system/etc/soundimage/srs_geq10.cfg \
$(LOCAL_PATH)/dsp/soundimage/srs_global.cfg:system/etc/soundimage/srs_global.cfg
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/AudioBTID.csv:system/etc/AudioBTID.csv \
$(LOCAL_PATH)/configs/AudioBTIDnew.csv:system/etc/AudioBTIDnew.csvs \
$(LOCAL_PATH)/dsp/snd_soc_msm/snd_soc_msm_2x_Fusion3:system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3
# Keylayouts and Keychars
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 \
# Input device config
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
# Audio
PRODUCT_PACKAGES += \
libaudioamp
# Camera
PRODUCT_PACKAGES += \
camera.msm8960
# GPS
PRODUCT_PACKAGES += \
gps.msm8960
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf
# NFC
PRODUCT_PACKAGES += \
nfc.msm8960 \
libnfc \
libnfc_ndef \
libnfc_jni \
Nfc \
Tag \
com.android.nfc_extras
# Misc Packages
PRODUCT_PACKAGES += \
DeviceSettings \
Torch
# Prepatch to fix BT/WiFi bus lockups
PRODUCT_COPY_FILES += \
device/htc/m7-common/bluetooth/bcm4335_prepatch.hcd:system/vendor/firmware/bcm4335_prepatch.hcd
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml
# NFCEE access control
ifeq ($(TARGET_BUILD_VARIANT),user)
NFCEE_ACCESS_PATH := device/htc/m7-common/configs/nfcee_access.xml
else
NFCEE_ACCESS_PATH := device/htc/m7-common/configs/nfcee_access_debug.xml
endif
PRODUCT_COPY_FILES += \
$(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb
# Common build properties
PRODUCT_PROPERTY_OVERRIDES += \
debug.nfc.fw_download=true \
debug.nfc.fw_boot_download=false \
debug.nfc.se=true \
ro.nfc.port=I2C \
ro.sf.lcd_density=480 \
persist.timed.enable=true \
persist.gps.qmienabled=true \
ro.baseband.arch=mdm \
ro.telephony.call_ring.multiple=false \
ro.telephony.call_ring.delay=3000
# Set build date
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi xxhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi xxhdpi
# call dalvik heap config
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
# call hwui memory config
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
# call the proprietary setup
$(call inherit-product-if-exists, vendor/htc/m7-common/m7-common-vendor.mk)