-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathpico.mk
241 lines (208 loc) · 11.9 KB
/
pico.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) 2011 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.
# proprietary side of the device
# Inherit from those products. Most specific first
# We havent decided what props we need,yet
# $(call inherit-product-if-exists, vendor/htc/pico/pico-vendor.mk)
# Video decoding
PRODUCT_PACKAGES += \
libstagefrighthw \
libmm-omxcore \
libOmxCore \
libOmxVidEnc \
libOmxH264Dec \
libOmxMpeg4Dec
# Graphics
PRODUCT_PACKAGES += \
copybit.msm7x27a \
gralloc.msm7x27a \
hwcomposer.msm7x27a \
libtilerenderer \
libQcomUI
# Audio
PRODUCT_PACKAGES += \
audio.primary.msm7x27a \
audio_policy.msm7x27a\
audio.a2dp.default \
libaudioutils
# Other
PRODUCT_PACKAGES += \
dexpreopt \
lights.msm7x27a \
sensors.msm7x27a \
gps.pico
# Camera
PRODUCT_PACKAGES += \
camera.default
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
## Hardware properties
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/base/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.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.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.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 \
frameworks/base/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
# Init
PRODUCT_COPY_FILES += \
device/htc/pico/files/init.pico.rc:root/init.pico.rc \
device/htc/pico/files/ueventd.pico.rc:root/ueventd.pico.rc \
device/htc/pico/files/init.pico.usb.rc:root/init.pico.usb.rc \
# Camera
PRODUCT_COPY_FILES += \
vendor/htc/pico/proprietary/lib/hw/camera.default.so:system/lib/hw/camera.default.so \
vendor/htc/pico/proprietary/lib/liboemcamera.so:system/lib/liboemcamera.so \
vendor/htc/pico/proprietary/lib/libmmipl.so:system/lib/libmmipl.so \
vendor/htc/pico/proprietary/lib/libmmjpeg.so:system/lib/libmmjpeg.so \
vendor/htc/pico/proprietary/lib/libcameraface.so:system/lib/libcameraface.so \
vendor/htc/pico/proprietary/lib/libcamerapp.so:system/lib/libcamerapp.so \
vendor/htc/pico/proprietary/lib/libOlaEngine.so:system/lib/libOlaEngine.so \
vendor/htc/pico/proprietary/lib/libchromatix_mt9t013_default_video.so:system/lib/libchromatix_mt9t013_default_video.so \
vendor/htc/pico/proprietary/lib/libchromatix_mt9t013_preview.so:system/lib/libchromatix_mt9t013_preview.so \
vendor/htc/pico/proprietary/bin/awb_camera:system/bin/awb_camera \
vendor/htc/pico/proprietary/bin/lsc_camera:system/bin/lsc_camera \
vendor/htc/pico/proprietary/bin/mm-qcamera-daemon:system/bin/mm-qcamera-daemon \
device/htc/pico/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
# OMX
PRODUCT_COPY_FILES += \
vendor/htc/pico/proprietary/lib/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \
vendor/htc/pico/proprietary/lib/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \
vendor/htc/pico/proprietary/lib/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \
vendor/htc/pico/proprietary/lib/libOmxVidEnc.so:system/lib/libOmxVidEnc.so \
vendor/htc/pico/proprietary/lib/libmmosal.so:system/lib/libmmosal.so \
vendor/htc/pico/proprietary/lib/libmmparser.so:system/lib/libmmparser.so \
vendor/htc/pico/proprietary/lib/libmmparser_divxdrmlib.so:system/lib/libmmparser_divxdrmlib.so \
vendor/htc/pico/proprietary/lib/libdivxdrmdecrypt.so:system/lib/libdivxdrmdecrypt.so \
# Set usb type
ADDITIONAL_DEFAULT_PROPERTIES += \
persist.sys.usb.config=mass_storage \
persist.service.adb.enable=1
$(call inherit-product, build/target/product/full.mk)
DEVICE_PACKAGE_OVERLAYS += device/htc/pico/overlay
# Publish that we support the live wallpaper feature.
PRODUCT_COPY_FILES += \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
librs_jni
# Releasetools
PRODUCT_COPY_FILES += \
device/htc/pico/releasetools/extras.sh:system/bin/extras.sh
# Vold
PRODUCT_COPY_FILES += \
device/htc/pico/files/etc/vold.fstab:system/etc/vold.fstab
# Prebuilt Binaries
# Don't work on 4.0.4 because from 2.3.5! And we don't need this !
# Prebuilt Modules
PRODUCT_COPY_FILES += \
device/htc/pico/prebuilt/bcmdhd.ko:system/lib/modules/bcmdhd.ko \
device/htc/pico/prebuilt/kineto_gan.ko:system/lib/modules/kineto_gan.ko \
device/htc/pico/prebuilt/cifs.ko:system/lib/modules/cifs.ko \
device/htc/pico/prebuilt/tun.ko:system/lib/modules/tun.ko \
# Wifi
PRODUCT_COPY_FILES += \
device/htc/pico/files/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/htc/pico/files/etc/dhcpd/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
device/htc/pico/prebuilt/etc/firmware/fw_bcm4330_b2.bin:system/etc/firmware/fw_bcm4330_b2.bin \
device/htc/pico/prebuilt/etc/firmware/fw_bcm4330_apsta_b2.bin:system/etc/firmware/fw_bcm4330_apsta_b2.bin \
device/htc/pico/prebuilt/etc/firmware/fw_bcm4330_p2p_b2.bin:system/etc/firmware/fw_bcm4330_p2p_b2.bin \
# Audio
# Need all audio filters
PRODUCT_COPY_FILES += \
device/htc/pico/prebuilt/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
device/htc/pico/prebuilt/etc/AudioBTID.csv:system/etc/AudioBTID.csv \
device/htc/pico/prebuilt/etc/AudioPara4.csv:system/etc/AudioPara4.csv \
device/htc/pico/prebuilt/etc/AudioPara4_WB.csv:system/etc/AudioPara4_WB.csv \
device/htc/pico/prebuilt/etc/AudioPreProcess.csv:system/etc/AudioPreProcess.csv \
device/htc/pico/prebuilt/etc/AudioFilter_HP.csv:system/etc/AudioFilter_HP.csv \
vendor/htc/pico/proprietary/lib/libaudioeq.so:system/lib/libaudioeq.so \
vendor/htc/pico/proprietary/lib/libhtc_acoustic.so:system/lib/libhtc_acoustic.so \
# Sensors
PRODUCT_COPY_FILES += \
vendor/htc/pico/proprietary/lib/hw/sensors.pico.so:system/lib/hw/sensors.pico.so \
# GPS
# Don't work on 4.0.4 because from 2.3.5! You need to compile it with yourself
# 3D(ICS Blobs)
PRODUCT_COPY_FILES += \
vendor/htc/pico/proprietary/etc/firmware/yamato_pfp.fw:system/etc/firmware/yamato_pfp.fw \
vendor/htc/pico/proprietary/etc/firmware/yamato_pm4.fw:system/etc/firmware/yamato_pm4.fw \
vendor/htc/pico/proprietary/lib/libgsl.so:system/lib/libgsl.so \
vendor/htc/pico/proprietary/lib/libOpenVG.so:system/lib/libOpenVG.so \
vendor/htc/pico/proprietary/lib/libsc-a2xx.so:system/lib/libsc-a2xx.so \
vendor/htc/pico/proprietary/lib/libC2D2.so:system/lib/libC2D2.so \
vendor/htc/pico/proprietary/lib/egl/eglsubAndroid.so:system/lib/egl/eglsubAndroid.so \
vendor/htc/pico/proprietary/lib/egl/libEGL_adreno200.so:system/lib/egl/libEGL_adreno200.so \
vendor/htc/pico/proprietary/lib/egl/libGLESv1_CM_adreno200.so:system/lib/egl/libGLESv1_CM_adreno200.so \
vendor/htc/pico/proprietary/lib/egl/libGLESv2_adreno200.so:system/lib/egl/libGLESv2_adreno200.so \
vendor/htc/pico/proprietary/lib/egl/libq3dtools_adreno200.so:system/lib/egl/libq3dtools_adreno200.so
# RIL
PRODUCT_COPY_FILES += \
vendor/htc/pico/proprietary/lib/libhtc_ril.so:system/lib/libhtc_ril.so \
vendor/htc/pico/proprietary/lib/libqc-opt.so:system/lib/libqc-opt.so \
# Don't work on 4.0.4 because from 2.3.5! You need to compile it with yourself
PRODUCT_COPY_FILES += \
vendor/htc/pico/proprietary/etc/gps.conf:system/etc \
vendor/htc/pico/proprietary/etc/spn-conf.xml:system/etc
# Audio DSP Profiles
PRODUCT_COPY_FILES += \
device/htc/pico/prebuilt/etc/soundimage/srs_global.cfg:system/etc/soundimage/srs_global.cfg \
device/htc/pico/prebuilt/etc/soundimage/srs_bypass.cfg:system/etc/soundimage/srs_bypass.cfg \
device/htc/pico/prebuilt/etc/soundimage/srsfx_trumedia_51.cfg:system/etc/soundimage/srsfx_trumedia_51.cfg \
device/htc/pico/prebuilt/etc/soundimage/srsfx_trumedia_movie.cfg:system/etc/soundimage/srsfx_trumedia_movie.cfg \
device/htc/pico/prebuilt/etc/soundimage/srsfx_trumedia_voice.cfg:system/etc/soundimage/srsfx_trumedia_voice.cfg \
device/htc/pico/prebuilt/etc/soundimage/srs_geq10.cfg:system/etc/soundimage/srs_geq10.cfg \
device/htc/pico/prebuilt/etc/soundimage/srsfx_trumedia_music.cfg:system/etc/soundimage/srsfx_trumedia_music.cfg \
# Bluetooth
PRODUCT_COPY_FILES += \
vendor/htc/pico/proprietary/etc/firmware/BCM4330B1_002.001.003.0221.0228.hcd:system/etc/firmware/BCM4330B1_002.001.003.0221.0228.hcd \
# Keylayouts
PRODUCT_COPY_FILES += \
device/htc/pico/prebuilt/usr/keychars/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \
device/htc/pico/prebuilt/usr/keychars/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin \
device/htc/pico/prebuilt/usr/keychars/pico-keypad.kcm.bin:system/usr/keychars/pico-keypad.kcm.bin \
device/htc/pico/prebuilt/usr/keychars/BT_HID.kcm.bin:system/usr/keychars/BT_HID.kcm.bin \
device/htc/pico/prebuilt/usr/keylayout/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl \
device/htc/pico/prebuilt/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \
device/htc/pico/prebuilt/usr/keylayout/BT_HID.kl:system/usr/keylayout/BT_HID.kl \
device/htc/pico/prebuilt/usr/keylayout/pico-keypad.kl:system/usr/keylayout/pico-keypad.kl \
device/htc/pico/prebuilt/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/htc/pico/prebuilt/usr/keylayout/himax-touchscreen.kl:system/usr/keylayout/himax-touchscreen.kl \
device/htc/pico/prebuilt/usr/keylayout/synaptics-rmi-touchscreen.kl:system/usr/keylayout/synaptics-rmi-touchscreen.kl \
device/htc/pico/prebuilt/usr/idc/himax-touchscreen.idc:system/usr/idc/himax-touchscreen.idc \
device/htc/pico/prebuilt/usr/idc/synaptics-rmi-touchscreen.idc:system/usr/idc/synaptics-rmi-touchscreen.idc \
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.camera=pico \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1 \
ro.com.google.gmsversion=2.3_r6 \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.dexopt-flags=m=y \
ro.telephony.call_ring.multiple=false \
ro.vold.umsdirtyratio=20
PRODUCT_AAPT_CONFIG := normal mdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi