forked from aftersilence/android_device_huawei_hws7300u
-
Notifications
You must be signed in to change notification settings - Fork 1
/
device_hws7300u.mk
292 lines (250 loc) · 13.2 KB
/
device_hws7300u.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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
#
# Copyright (C) 2010 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.
#
PRODUCT_AAPT_CONFIG := normal large tvdpi hdpi
PRODUCT_AAPT_PREF_CONFIG := tvdpi
DEVICE_PACKAGE_OVERLAYS := \
device/huawei/hws7300u/overlay
include frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
PRODUCT_CHARACTERISTICS := tablet
DEVICE_PACKAGE_OVERLAYS += device/huawei/hws7300u/overlay
# Modules
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/lib/modules/rpc_server_handset.ko:system/lib/modules/rpc_server_handset.ko
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.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.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml
# QCOM Display
PRODUCT_PACKAGES += \
camera.msm8660 \
copybit.msm8660 \
gralloc.msm8660 \
hwcomposer.msm8660 \
memtrack.msm8660 \
libgenlock \
libmemalloc \
liboverlay \
libqdutils \
libtilerenderer
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
audio.primary.msm8660 \
audio.a2dp.default \
audio_policy.msm8660 \
libaudio-resampler \
libaudioutils
# Omx
PRODUCT_PACKAGES += \
libdivxdrmdecrypt \
libmm-omxcore \
libOmxCore \
libstagefrighthw \
libOmxVdec \
libOmxVenc \
libOmxAacEnc \
libOmxAmrEnc \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libc2dcolorconvert \
libdashplayer \
qcmediaplayer
PRODUCT_BOOT_JARS += \
qcmediaplayer
# Device specific settings
PRODUCT_PACKAGES += \
MediapadSettings
# GPS
PRODUCT_PACKAGES += \
gps.msm8660
# GPS
PRODUCT_COPY_FILES += \
device/common/gps/gps.conf_US_SUPL:system/etc/gps.conf
# Power
PRODUCT_PACKAGES += \
power.msm8660
#Bluetooth
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
# QRNGD
PRODUCT_PACKAGES += \
qrngd
# WiFi
PRODUCT_PACKAGES += \
wpa_supplicant \
hostapd \
libnetcmdiface
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
librs_jni
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
e2fsck \
setup_fs
# Ramdisk
PRODUCT_PACKAGES += \
fstab.qcom
# Boot ramdisk
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/root/fstab.hws7300u:root/fstab.hws7300u \
device/huawei/hws7300u/root/ueventd.rc:root/ueventd.hws7300u.rc \
device/huawei/hws7300u/root/init.hws7300u.usb.rc:root/init.hws7300u.usb.rc \
device/huawei/hws7300u/root/init.hws7300u.rc:root/init.hws7300u.rc \
device/huawei/hws7300u/root/init.qcom.usb.sh:root/init.qcom.usb.sh \
device/huawei/hws7300u/root/init.target.rc:root/init.target.rc \
device/huawei/hws7300u/root/init.qcom.sh:root/init.qcom.sh
# Scripts
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/etc/init.qcom.modem_links.sh:system/etc/init.qcom.modem_links.sh \
device/huawei/hws7300u/prebuilt/etc/init.qcom.mdm_links.sh:system/etc/init.qcom.mdm_links.sh \
device/huawei/hws7300u/prebuilt/etc/init.qcom.sdio.sh:system/etc/init.qcom.sdio.sh \
device/huawei/hws7300u/prebuilt/etc/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh
#Wifi
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/etc/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
device/huawei/hws7300u/prebuilt/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/huawei/hws7300u/prebuilt/etc/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
device/huawei/hws7300u/prebuilt/etc/wifi/fw_bcmdhd.bin:system/etc/wifi/fw_bcmdhd.bin \
device/huawei/hws7300u/prebuilt/etc/wifi/fw_bcmdhd_apsta.bin:system/etc/wifi/fw_bcmdhd_apsta.bin \
device/huawei/hws7300u/prebuilt/etc/wifi/nvram-bcm4329.txt:system/etc/wifi/nvram-bcm4329.txt \
#Bluetooth
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/etc/bluetooth/BCM4329.hcd:system/etc/bluetooth/BCM4329.hcd \
device/huawei/hws7300u/prebuilt/etc/bluetooth/blacklist.conf:system/etc/bluetooth/blacklist.conf
# Firmware
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/etc/firmware/cyttsp_8660_ffa.hex:system/etc/firmware/cyttsp_8660_ffa.hex \
device/huawei/hws7300u/prebuilt/etc/firmware/cyttsp_8660_fluid_p2.hex:system/etc/firmware/cyttsp_8660_fluid_p2.hex \
device/huawei/hws7300u/prebuilt/etc/firmware/cyttsp_8660_fluid_p3.hex:system/etc/firmware/cyttsp_8660_fluid_p3.hex \
device/huawei/hws7300u/prebuilt/etc/firmware/dsps_fluid.b00:system/etc/firmware/dsps_fluid.b00 \
device/huawei/hws7300u/prebuilt/etc/firmware/dsps_fluid.b01:system/etc/firmware/dsps_fluid.b01 \
device/huawei/hws7300u/prebuilt/etc/firmware/dsps_fluid.b02:system/etc/firmware/dsps_fluid.b02 \
device/huawei/hws7300u/prebuilt/etc/firmware/dsps_fluid.b03:system/etc/firmware/dsps_fluid.b03 \
device/huawei/hws7300u/prebuilt/etc/firmware/dsps_fluid.mdt:system/etc/firmware/dsps_fluid.mdt \
device/huawei/hws7300u/prebuilt/etc/firmware/vidc_1080p.fw:system/etc/firmware/vidc_1080p.fw \
device/huawei/hws7300u/prebuilt/etc/firmware/t1320_tm1828_001.img:system/etc/firmware/t1320_tm1828_001.img \
device/huawei/hws7300u/prebuilt/etc/firmware/t1320_tm1885_004.img:system/etc/firmware/t1320_tm1885_004.img \
device/huawei/hws7300u/prebuilt/etc/firmware/s7020_suc.img:system/etc/firmware/s7020_suc.img \
device/huawei/hws7300u/prebuilt/etc/firmware/atmel_cmi_pro.img:system/etc/firmware/atmel_cmi_pro.img \
device/huawei/hws7300u/prebuilt/etc/sar/303U_NV.bin:system/etc/sar/303U_NV.bin \
device/huawei/hws7300u/prebuilt/etc/sar/sar_303U.conf:system/etc/sar/sar_303U.conf \
device/huawei/hws7300u/prebuilt/etc/sar/302U_NV.bin:system/etc/sar/302U_NV.bin \
device/huawei/hws7300u/prebuilt/etc/sar/sar_312U.conf:system/etc/sar/sar_312U.conf \
device/huawei/hws7300u/prebuilt/etc/sar/312U_NV.bin:system/etc/sar/312U_NV.bin \
device/huawei/hws7300u/prebuilt/etc/coulometer/bq27510_version:system/etc/coulometer/bq27510_version \
device/huawei/hws7300u/prebuilt/etc/coulometer/bq27510_pro.dffs:system/etc/coulometer/bq27510_pro.dffs \
device/huawei/hws7300u/prebuilt/etc/coulometer/bq27510_pro.bqfs:system/etc/coulometer/bq27510_pro.bqfs
# Adreno libs
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/lib/egl/egl.cfg:system/lib/egl/egl.cfg \
device/huawei/hws7300u/prebuilt/lib/egl/eglsubAndroid.so:system/lib/egl/eglsubAndroid.so \
device/huawei/hws7300u/prebuilt/lib/egl/libEGL_adreno200.so:system/lib/egl/libEGL_adreno200.so \
device/huawei/hws7300u/prebuilt/lib/egl/libGLESv1_CM_adreno200.so:system/lib/egl/libGLESv1_CM_adreno200.so \
device/huawei/hws7300u/prebuilt/lib/egl/libGLESv2_adreno200.so:system/lib/egl/libGLESv2_adreno200.so \
device/huawei/hws7300u/prebuilt/lib/egl/libq3dtools_adreno200.so:system/lib/egl/libq3dtools_adreno200.so \
device/huawei/hws7300u/prebuilt/lib/egl/libplayback_adreno200.so:system/lib/egl/libplayback_adreno200.so \
device/huawei/hws7300u/prebuilt/lib/egl/libGLESv2S3D_adreno200.so:system/lib/egl/libGLESv2S3D_adreno200.so \
device/huawei/hws7300u/prebuilt/lib/libc2d2_z180.so:system/lib/libc2d2_z180.so \
device/huawei/hws7300u/prebuilt/lib/libC2D2.so:system/lib/libC2D2.so \
device/huawei/hws7300u/prebuilt/lib/libgsl.so:system/lib/libgsl.so \
device/huawei/hws7300u/prebuilt/lib/libOpenVG.so:system/lib/libOpenVG.so \
device/huawei/hws7300u/prebuilt/lib/libOpenCL.so:system/lib/libOpenCL.so \
device/huawei/hws7300u/prebuilt/lib/libsc-a2xx.so:system/lib/libsc-a2xx.so\
device/huawei/hws7300u/prebuilt/etc/firmware/yamato_pfp.fw:system/etc/firmware/yamato_pfp.fw \
device/huawei/hws7300u/prebuilt/etc/firmware/yamato_pm4.fw:system/etc/firmware/yamato_pm4.fw \
device/huawei/hws7300u/prebuilt/etc/firmware/leia_pfp_470.fw:system/etc/firmware/leia_pfp_470.fw \
device/huawei/hws7300u/prebuilt/etc/firmware/leia_pm4_470.fw:system/etc/firmware/leia_pm4_470.fw
# Some misc configuration files
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/etc/thermald.conf:system/etc/thermald.conf \
device/huawei/hws7300u/prebuilt/usr/idc/t1320.idc:system/usr/idc/t1320.idc \
device/huawei/hws7300u/prebuilt/usr/idc/s7020.idc:system/usr/idc/s7020.idc
# Keylayouts
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/usr/keylayout/8660_handset.kl:system/usr/keylayout/8660_handset.kl \
device/huawei/hws7300u/prebuilt/usr/keylayout/fluid-keypad.kl:system/usr/keylayout/fluid-keypad.kl \
device/huawei/hws7300u/prebuilt/usr/keylayout/ffa-keypad.kl:system/usr/keylayout/ffa-keypad.kl
# Custom media config
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/huawei/hws7300u/prebuilt/etc/media_codecs.xml:system/etc/media_codecs.xml \
device/huawei/hws7300u/prebuilt/etc/audio_effects.conf:system/etc/audio_effects.conf \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
device/huawei/hws7300u/prebuilt/etc/audio_policy.conf:system/etc/audio_policy.conf
# TWRP
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/root/twrp.fstab:recovery/root/etc/twrp.fstab \
device/huawei/hws7300u/root/init.recovery.hws7300u.rc:root/init.recovery.hws7300u.rc
# Init.d scripts
PRODUCT_COPY_FILES += \
device/huawei/hws7300u/prebuilt/etc/init.d/02extsd:system/etc/init.d/02extsd
# Bootanimation
PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/800.zip
# Misc
PRODUCT_PROPERTY_OVERRIDES += \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.lockprof.threshold=500 \
ro.com.google.locationfeatures=1 \
dalvik.vm.dexopt-flags=m=y \
ro.bluetooth.remote.autoconnect=true \
ro.bluetooth.request.master=true \
ro.bt.bdaddr_path=/data/misc/bluedroid/bdaddr \
lpa.decode=false \
ro.qualcomm.bluetooth.dun=true \
ro.qualcomm.bluetooth.ftp=true \
wifi.interface=eth0 \
wifi.supplicant_scan_interval=30 \
tf.enable=y \
media.stagefright.use-awesome=true \
drm.service.enabled=true
ADDITIONAL_BUILD_PROPERTIES += \
ro.config.max_starting_bg=6 \
persist.sys.root_access=3 \
ro.kernel.android.checkjni=0
# Proprietary side of the device
$(call inherit-product-if-exists, vendor/huawei/hws7300u/hws7300u-vendor.mk)
# 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_NAME := cm_hws7300u
PRODUCT_DEVICE := hws7300u