-
Notifications
You must be signed in to change notification settings - Fork 10
/
device.mk
184 lines (154 loc) · 6.77 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
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
178
179
180
181
182
183
184
# Copyright (C) 2014 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.
DEVICE_PACKAGE_OVERLAYS := device/motorola/clark/overlay
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/motorola/clark/clark-vendor.mk)
# copy customized media_profiles and media_codecs xmls for 8992
PRODUCT_COPY_FILES += device/motorola/clark/configs/media_profiles.xml:system/etc/media_profiles.xml \
device/motorola/clark/configs/media_codecs.xml:system/etc/media_codecs.xml
PRODUCT_BOOT_JARS += qcmediaplayer
PRODUCT_PACKAGES += \
audiod \
audio.a2dp.default \
audio.primary.msm8992 \
audio.r_submix.default \
audio.usb.default \
audio_policy.msm8992 \
tinymix
PRODUCT_PACKAGES += \
libaudio-resampler \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing
# Audio configuration file
PRODUCT_COPY_FILES += \
device/motorola/clark/audio/audio_policy.conf:system/etc/audio_policy.conf
PRODUCT_COPY_FILES += \
device/motorola/clark/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
device/motorola/clark/audio/mixer_paths.xml:system/etc/mixer_paths.xml \
device/motorola/clark/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml
# Listen configuration file
PRODUCT_COPY_FILES += \
device/motorola/clark/audio/listen_platform_info.xml:system/etc/listen_platform_info.xml
# WLAN driver configuration files
PRODUCT_COPY_FILES += \
device/motorola/clark/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \
device/motorola/clark/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
device/motorola/clark/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv.bin
#FEATURE_OPENGLES_EXTENSION_PACK support string config file
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml
PRODUCT_PACKAGES += \
wpa_supplicant \
wpa_supplicant_overlay.conf \
p2p_supplicant_overlay.conf
PRODUCT_PACKAGES += \
libqcomvisualizer \
libqcomvoiceprocessing \
libqcompostprocbundle
# MSM IRQ Balancer configuration file
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:system/etc/permissions/android.hardware.sensor.ambient_temperature.xml \
frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:system/etc/permissions/android.hardware.sensor.relative_humidity.xml
# Camera
#PRODUCT_PACKAGES += \
# camera.msm8992
# Display
PRODUCT_PACKAGES += \
copybit.msm8992 \
gralloc.msm8992 \
hwcomposer.msm8992 \
memtrack.msm8992 \
liboverlay
# Keymaster
PRODUCT_PACKAGES += \
keystore.msm8992
# GPS
#PRODUCT_PACKAGES += \
# gps.msm8992
# Power
PRODUCT_PACKAGES += \
power.msm8992
# Init configuration
PRODUCT_PACKAGES += \
fstab.qcom \
init.qcom.rc \
ueventd.qcom.rc
# Init scripts
PRODUCT_PACKAGES += \
init.qcom.sh
# USB
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# OMX
PRODUCT_PACKAGES += \
libc2dcolorconvert \
libdashplayer \
libdivxdrmdecrypt \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxSwVencMpeg4 \
libOmxVdec \
libOmxVdecHevc \
libOmxVenc \
libOmxVidcCommon \
libstagefrighthw \
qcmediaplayer
#ANT+ stack
PRODUCT_PACKAGES += \
AntHalService \
libantradio \
antradio_app
PRODUCT_PACKAGES += \
nfc.msm8952 \
NfcNci \
libnfc-nci \
libnfc_nci_jni \
nfc_nci.nqx.default \
Tag \
com.android.nfc_extras
# file that declares the MIFARE NFC constant
# Commands to migrate prefs from com.android.nfc3 to com.android.nfc
# NFC access control + feature files + configuration
PRODUCT_COPY_FILES += \
packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt \
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml
# SmartcardService, SIM1,SIM2,eSE1 not including eSE2,SD1 as default
ADDITIONAL_BUILD_PROPERTIES += persist.nfc.smartcard.config=SIM1,SIM2,eSE1
PRODUCT_COPY_FILES += \
packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt \
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := 560dpi
$(call inherit-product, frameworks/native/build/phone-xxxhdpi-3072-dalvik-heap.mk)