forked from nycbjr/android_device_htc_endeavoru-ics
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfull_endeavoru.mk
241 lines (209 loc) · 11 KB
/
full_endeavoru.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
#
# Copyright (C) 2012 The Android Open-Source Project
# Copyright (C) 2012 The CyanogenMod Project
# Copyright (C) 2012 mdeejay <[email protected]>
#
# 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)
DEVICE_PACKAGE_OVERLAYS := device/htc/endeavoru/overlay
# Camera
PRODUCT_PACKAGES := \
Camera \
camera.tegra
# Files needed for boot image
PRODUCT_COPY_FILES := \
device/htc/endeavoru/ramdisk/init.rc:root/init.rc \
device/htc/endeavoru/ramdisk/init.endeavoru.rc:root/init.endeavoru.rc \
device/htc/endeavoru/ramdisk/init.endeavoru.common.rc:root/init.endeavoru.common.rc \
device/htc/endeavoru/ramdisk/init.usb.rc:root/init.usb.rc \
device/htc/endeavoru/ramdisk/ueventd.rc:root/ueventd.rc \
device/htc/endeavoru/ramdisk/ueventd.endeavoru.rc:root/ueventd.endeavoru.rc \
device/htc/endeavoru/ramdisk/init:root/init
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
libaudioutils \
libtinyalsa
# Prebuilt Audio/GPS/Camera/Wi-Fi configs
PRODUCT_COPY_FILES += \
device/htc/endeavoru/dsp/asound.conf:system/etc/asound.conf \
device/htc/endeavoru/dsp/AIC3008_REG_DualMic_XC.csv:system/etc/AIC3008_REG_DualMic_XC.csv \
device/htc/endeavoru/dsp/AIC3008_REG_DualMic.csv:system/etc/AIC3008_REG_DualMic.csv \
device/htc/endeavoru/dsp/DSP_number.txt:system/etc/DSP_number.txt \
device/htc/endeavoru/configs/nvcamera.conf:system/etc/nvcamera.conf \
device/htc/endeavoru/configs/media_profiles.xml:system/etc/media_profiles.xml \
device/htc/endeavoru/configs/gps.conf:system/etc/gps.conf \
device/htc/endeavoru/configs/htcfs.conf:system/etc/htcfs.conf \
device/htc/endeavoru/configs/SuplRootCert:system/etc/SuplRootCert \
device/htc/endeavoru/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/htc/endeavoru/configs/hostapd.conf:system/etc/wifi/hostapd.conf \
device/htc/endeavoru/configs/TQS_D_1.7.ini:system/etc/wifi/TQS_D_1.7.ini \
device/htc/endeavoru/configs/htc_1281fw.bin:system/etc/wifi/htc_1281fw.bin \
device/htc/endeavoru/configs/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
# BT config
PRODUCT_COPY_FILES += \
system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf
# Prebuilt Alsa configs
PRODUCT_COPY_FILES += \
device/htc/endeavoru/usr/share/alsa/alsa.conf:system/usr/share/alsa/alsa.conf \
device/htc/endeavoru/usr/share/alsa/cards/aliases.conf:system/usr/share/alsa/cards/aliases.conf \
device/htc/endeavoru/usr/share/alsa/pcm/center_lfe.conf:system/usr/share/alsa/pcm/center_lfe.conf \
device/htc/endeavoru/usr/share/alsa/pcm/default.conf:system/usr/share/alsa/pcm/default.conf \
device/htc/endeavoru/usr/share/alsa/pcm/dmix.conf:system/usr/share/alsa/pcm/dmix.conf \
device/htc/endeavoru/usr/share/alsa/pcm/dpl.conf:system/usr/share/alsa/pcm/dpl.conf \
device/htc/endeavoru/usr/share/alsa/pcm/dsnoop.conf:system/usr/share/alsa/pcm/dsnoop.conf \
device/htc/endeavoru/usr/share/alsa/pcm/front.conf:system/usr/share/alsa/pcm/front.conf \
device/htc/endeavoru/usr/share/alsa/pcm/iec958.conf:system/usr/share/alsa/pcm/iec958.conf \
device/htc/endeavoru/usr/share/alsa/pcm/modem.conf:system/usr/share/alsa/pcm/modem.conf \
device/htc/endeavoru/usr/share/alsa/pcm/rear.conf:system/usr/share/alsa/pcm/rear.conf \
device/htc/endeavoru/usr/share/alsa/pcm/side.conf:system/usr/share/alsa/pcm/side.conf \
device/htc/endeavoru/usr/share/alsa/pcm/surround40.conf:system/usr/share/alsa/pcm/surround40.conf \
device/htc/endeavoru/usr/share/alsa/pcm/surround41.conf:system/usr/share/alsa/pcm/surround41.conf \
device/htc/endeavoru/usr/share/alsa/pcm/surround50.conf:system/usr/share/alsa/pcm/surround50.conf \
device/htc/endeavoru/usr/share/alsa/pcm/surround51.conf:system/usr/share/alsa/pcm/surround51.conf \
device/htc/endeavoru/usr/share/alsa/pcm/surround71.conf:system/usr/share/alsa/pcm/surround71.conf
# Vold.fstab
PRODUCT_COPY_FILES += \
device/htc/endeavoru/vold.fstab:system/etc/vold.fstab
# Input device configeration files
PRODUCT_COPY_FILES += \
device/htc/endeavoru/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \
device/htc/endeavoru/usr/keylayout/tegra-kbc.kl:system/usr/keylayout/tegra-kbc.kl \
device/htc/endeavoru/usr/idc/atmel-maxtouch.idc:system/usr/idc/atmel-maxtouch.idc \
device/htc/endeavoru/usr/idc/synaptics-rmi-touchscreen.idc:system/usr/idc/synaptics-rmi-touchscreen.idc \
device/htc/endeavoru/usr/idc/tv-touchscreen.idc:system/usr/idc/tv-touchscreen.idc
# Any prebuilt kernel modules
PRODUCT_COPY_FILES += \
device/htc/endeavoru/modules/baseband_usb_chr.ko:system/lib/modules/baseband_usb_chr.ko \
device/htc/endeavoru/modules/baseband-xmm-power2.ko:system/lib/modules/baseband-xmm-power2.ko \
device/htc/endeavoru/modules/bluetooth.ko:system/lib/modules/bluetooth.ko \
device/htc/endeavoru/modules/bnep.ko:system/lib/modules/bnep.ko \
device/htc/endeavoru/modules/btwilink.ko:system/lib/modules/btwilink.ko \
device/htc/endeavoru/modules/cavm_sqos_mod.ko:system/lib/modules/cavm_sqos_mod.ko \
device/htc/endeavoru/modules/cdc-acm.ko:system/lib/modules/cdc-acm.ko \
device/htc/endeavoru/modules/cfg80211.ko:system/lib/modules/cfg80211.ko \
device/htc/endeavoru/modules/compat.ko:system/lib/modules/compat.ko \
device/htc/endeavoru/modules/fm_drv.ko:system/lib/modules/fm_drv.ko \
device/htc/endeavoru/modules/gps_drv.ko:system/lib/modules/gps_drv.ko \
device/htc/endeavoru/modules/hci_uart.ko:system/lib/modules/hci_uart.ko \
device/htc/endeavoru/modules/hidp.ko:system/lib/modules/hidp.ko \
device/htc/endeavoru/modules/htc_sqos_ctrlmsg.ko:system/lib/modules/htc_sqos_ctrlmsg.ko \
device/htc/endeavoru/modules/htc_sqos_encoder.ko:system/lib/modules/htc_sqos_encoder.ko\
device/htc/endeavoru/modules/htc_sqos_wifi.ko:system/lib/modules/htc_sqos_wifi.ko \
device/htc/endeavoru/modules/kineto_gan.ko:system/lib/modules/kineto_gan.ko \
device/htc/endeavoru/modules/lib80211.ko:system/lib/modules/lib80211.ko \
device/htc/endeavoru/modules/mac80211.ko:system/lib/modules/mac80211.ko \
device/htc/endeavoru/modules/raw_ip_net.ko:system/lib/modules/raw_ip_net.ko \
device/htc/endeavoru/modules/rfcomm.ko:system/lib/modules/rfcomm.ko \
device/htc/endeavoru/modules/scsi_wait_scan.ko:system/lib/modules/scsi_wait_scan.ko \
device/htc/endeavoru/modules/st_drv.ko:system/lib/modules/st_drv.ko \
device/htc/endeavoru/modules/tcrypt.ko:system/lib/modules/tcrypt.ko \
device/htc/endeavoru/modules/ti_hci_drv.ko:system/lib/modules/ti_hci_drv.ko \
device/htc/endeavoru/modules/wl12xx.ko:system/lib/modules/wl12xx.ko \
device/htc/endeavoru/modules/wl12xx_sdio.ko:system/lib/modules/wl12xx_sdio.ko
# Hostapd
PRODUCT_PACKAGES += \
hostapd_cli \
calibrator \
hostapd
# lights
PRODUCT_PACKAGES += \
lights.tegra
# a2dp
PRODUCT_PACKAGES += \
audio.a2dp.default \
libaudioutils \
libtinyalsa \
eventd \
t3_calld
#NFC
PRODUCT_PACKAGES += \
libnfc \
libnfc_ndef \
libnfc_jni \
Nfc \
Tag \
com.android.nfc_extras
# fmradio
#PRODUCT_PACKAGES += \
# Fmapplication \
# FmRxService \
# libfm_stack \
# fmreceiverif \
# com.ti.fm.fmreceiverif.xml \
# libfmrx
# Missed apps
#PRODUCT_PACKAGES += \
# Torch
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
librs_jni
# DSPManager
PRODUCT_PACKAGES += \
DSPManager \
libcyanogen-dsp \
audio_effects.conf
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs
# for bugmailer
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_PACKAGES += send_bug
PRODUCT_COPY_FILES += \
system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \
system/extras/bugmailer/send_bug:system/bin/send_bug
endif
# Permissions
PRODUCT_COPY_FILES += \
device/htc/endeavoru/configs/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.execution-mode=int:jit \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.dexopt-flags=m=y \
persist.sys.usb.config=mass_storage,adb
# Tegra 3 spacific overrides
PRODUCT_PROPERTY_OVERRIDES += \
persist.tegra.nvmmlite=1 \
ro.vendor.extension_library=/system/lib/libhtc-opt2.so \
tf.enable=y
# We have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
PRODUCT_LOCALES += en_US xhdpi
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product-if-exists, vendor/htc/endeavoru/endeavoru-vendor.mk)
$(call inherit-product, frameworks/base/build/phone-xhdpi-1024-dalvik-heap.mk)