-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathascend.mk
executable file
·262 lines (223 loc) · 12.6 KB
/
ascend.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
#
# 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.
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_small.mk)
# The gps config appropriate for this device
#$(call inherit-product, device/common/gps/gps_us_supl.mk)
#$(call inherit-product-if-exists, vendor/huawei/ascend/ascend-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/huawei/ascend/overlay
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/huawei/ascend/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
PRODUCT_PACKAGES += \
copybit.M860 \
gps.M860 \
libRS \
hwprops \
rzscontrol \
libOmxCore \
libmm-omxcore \
libOmxVidEnc \
Gallery
# Live Wallpapers
PRODUCT_PACKAGES += \
librs_jni \
LiveWallpapersPicker
# Live Wallpapers support
PRODUCT_COPY_FILES += \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
# vold
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/vold.fstab:system/etc/vold.fstab
# Compcache module
PRODUCT_COPY_FILES += \
device/huawei/ascend/modules/ramzswap.ko:system/lib/modules/2.6.29-perf/kernel/drivers/staging/ramzswap/ramzswap.ko
# Board-specific init
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/initlogo.rle:root/initlogo.rle
# DHCP config for wifi
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/dhcpcd/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf
PRODUCT_COPY_FILES += \
device/huawei/ascend/ueventd.qcom.rc:root/ueventd.qcom.rc
# Keylayouts
PRODUCT_COPY_FILES += \
device/huawei/ascend/keychars/surf_keypad.kcm.bin:system/usr/keychars/surf_keypad.kcm.bin \
device/huawei/ascend/keylayout/surf_keypad.kl:system/usr/keylayout/surf_keypad.kl
# Install the features available on this device.
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.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.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml
PRODUCT_PROPERTY_OVERRIDES := \
wifi.interface=eth0 \
wifi.supplicant_scan_interval=120 \
ro.sf.lcd_density=160 \
ro.com.android.dataroaming=false
# Default network type
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.default_network=4
# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=65537
# Perfomance tweaks
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.execution-mode=int:jit \
dalvik.vm.heapsize=24m \
persist.sys.use_dithering=1 \
persist.sys.purgeable_assets=1 \
ro.compcache.default=18
# Don't put dexfiles in /cache on ascend
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-data-only=1
# Media configuration xml file
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/media_profiles.xml:system/etc/media_profiles.xml
# wpa_supplicant configuration file
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
# Proprietary hardware related
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/lib/libcamera.so:obj/lib/libcamera.so \
vendor/huawei/ascend/proprietary/lib/libcamera.so:system/lib/libcamera.so \
vendor/huawei/ascend/proprietary/lib/libqcamera.so:system/lib/libqcamera.so \
vendor/huawei/ascend/proprietary/lib/libmmjpeg.so:system/lib/libmmjpeg.so \
vendor/huawei/ascend/proprietary/lib/libmmipl.so:system/lib/libmmipl.so \
vendor/huawei/ascend/proprietary/lib/libmmprocess.so:system/lib/libmmprocess.so \
vendor/huawei/ascend/proprietary/etc/init.qcom.bt.sh:system/etc/init.qcom.bt.sh
# Sound and OMX
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
device/huawei/ascend/include/etc/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt \
vendor/huawei/ascend/proprietary/lib/libaudioeq.so:system/lib/libaudioeq.so \
vendor/huawei/ascend/proprietary/lib/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \
vendor/huawei/ascend/proprietary/lib/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \
vendor/huawei/ascend/proprietary/lib/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \
vendor/huawei/ascend/proprietary/lib/libOmxVidEnc.so:system/lib/libOmxVidEnc.so
# Lights and graphics
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/lib/hw/gralloc.msm7k.so:system/lib/hw/gralloc.msm7k.so \
vendor/huawei/ascend/proprietary/lib/hw/lights.msm7k.so:system/lib/hw/lights.msm7k.so \
vendor/huawei/ascend/proprietary/lib/hw/lights.glacier.so:system/lib/hw/lights.glacier.so
# Sensors
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/bin/akmd2:system/bin/akmd2 \
vendor/huawei/ascend/proprietary/lib/hw/sensors.default.so:system/lib/hw/sensors.default.so
# GPS
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/gps.conf:system/etc/gps.conf
# Proprietary RIL related
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/apns-conf.xml:system/etc/apns-conf.xml \
vendor/huawei/ascend/proprietary/lib/libauth.so:system/lib/libauth.so \
vendor/huawei/ascend/proprietary/lib/libril-qc-1.so:system/lib/libril-qc-1.so \
vendor/huawei/ascend/proprietary/lib/libril.so:system/lib/libril.so \
vendor/huawei/ascend/proprietary/lib/liboncrpc.so:system/lib/liboncrpc.so \
vendor/huawei/ascend/proprietary/lib/libdsm.so:system/lib/libdsm.so \
vendor/huawei/ascend/proprietary/lib/libqueue.so:system/lib/libqueue.so \
vendor/huawei/ascend/proprietary/lib/libcm.so:system/lib/libcm.so \
vendor/huawei/ascend/proprietary/lib/libdiag.so:system/lib/libdiag.so \
vendor/huawei/ascend/proprietary/lib/libmmgsdilib.so:system/lib/libmmgsdilib.so \
vendor/huawei/ascend/proprietary/lib/libgsdi_exp.so:system/lib/libgsdi_exp.so \
vendor/huawei/ascend/proprietary/lib/libgstk_exp.so:system/lib/libgstk_exp.so \
vendor/huawei/ascend/proprietary/lib/libwms.so:system/lib/libwms.so \
vendor/huawei/ascend/proprietary/lib/libnv.so:system/lib/libnv.so \
vendor/huawei/ascend/proprietary/lib/libwmsts.so:system/lib/libwmsts.so \
vendor/huawei/ascend/proprietary/lib/libril-qcril-hook-oem.so:system/lib/libril-qcril-hook-oem.so \
vendor/huawei/ascend/proprietary/lib/libdss.so:system/lib/libdss.so \
vendor/huawei/ascend/proprietary/lib/libdll.so:system/lib/libdll.so \
vendor/huawei/ascend/proprietary/lib/libqmi.so:system/lib/libqmi.so \
vendor/huawei/ascend/proprietary/lib/libpbmlib.so:system/lib/libpbmlib.so \
vendor/huawei/ascend/proprietary/lib/libwpa_client.so:system/lib/libwpa_client.so \
vendor/huawei/ascend/proprietary/bin/qmuxd:system/bin/qmuxd \
vendor/huawei/ascend/proprietary/bin/hci_qcomm_init:system/bin/hci_qcomm_init
# OEM RPC
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/bin/modempre:system/bin/modempre \
vendor/huawei/ascend/proprietary/bin/oem_rpc_svc:system/bin/oem_rpc_svc \
vendor/huawei/ascend/proprietary/lib/libhwrpc.so:system/lib/libhwrpc.so \
vendor/huawei/ascend/proprietary/lib/liboem_rapi.so:system/lib/liboem_rapi.so
## Wifi related
PRODUCT_COPY_FILES += \
device/huawei/ascend/modules/bcm4319.ko:system/lib/modules/bcm4319.ko \
device/huawei/ascend/include/etc/firmware/fw_bcm4319.bin:system/etc/firmware/fw_bcm4319.bin \
device/huawei/ascend/include/etc/firmware/nvram.txt:system/etc/firmware/nvram.txt
$(call inherit-product, build/target/product/small_base.mk)
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := generic_ascend
PRODUCT_DEVICE := ascend
PRODUCT_MODEL := Huawei-M860
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-huawei-us \
ro.com.google.locationfeatures=1 \
ro.cdma.home.operator.numeric=31016 \
ro.config.cdma_subscription=1 \
ro.cdma.voicemail.number=mine \
ro.setupwizard.enable_bypass=1 \
ro.config.play.bootsound=1
##Added Files for bootsound and themes
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/app/RoverCyan.apk:system/app/RoverCyan.apk \
device/huawei/ascend/include/app/com.mike.theme.hc3d3d-1.apk:system/app/com.mike.theme.hc3d3d-1.apk \
device/huawei/ascend/include/app/DarkADBWireless-v1.apk:system/app/DarkADBWireless-v1.apk \
device/huawei/ascend/include/app/com.elgubbo.a2sdGUI-1.apk:system/app/com.elgubbo.a2sdGUI-1.apk \
device/huawei/ascend/include/bin/bootsound:system/bin/bootsound \
device/huawei/ascend/include/media/audio/ui/android_audio.mp3:system/media/audio/ui/android_audio.mp3 \
device/huawei/ascend/include/media/bootanimation.zip:system/media/bootanimation.zip \
device/huawei/ascend/include/etc/init.local.rc:system/etc/init.local.rc
## Dark Tremors apps2sd
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/apps2sd_files/data/dtinstall.launch:data/dtinstall.launch \
device/huawei/ascend/include/apps2sd_files/data/jit/bin/dalvikvm:data/jit/bin/dalvikvm \
device/huawei/ascend/include/apps2sd_files/data/jit/lib/libdvm.so:data/jit/lib/libdvm.so \
device/huawei/ascend/include/apps2sd_files/data/jit/lib/libnativehelper.so:data/jit/lib/libnativehelper.so \
device/huawei/ascend/include/apps2sd_files/system/bin/a2sd:system/bin/a2sd \
device/huawei/ascend/include/apps2sd_files/system/bin/apps2sd.hlp:system/bin/apps2sd.hlp \
device/huawei/ascend/include/apps2sd_files/system/bin/bash:system/bin/bash \
device/huawei/ascend/include/apps2sd_files/system/bin/busybox.a2sd:system/bin/busybox.a2sd \
device/huawei/ascend/include/apps2sd_files/system/bin/chka2sd:system/bin/chka2sd \
device/huawei/ascend/include/apps2sd_files/system/bin/dtinstall:system/bin/dtinstall \
device/huawei/ascend/include/apps2sd_files/system/bin/jita2sd:system/bin/jita2sd \
device/huawei/ascend/include/apps2sd_files/system/bin/launcha2sd:system/bin/launcha2sd \
device/huawei/ascend/include/apps2sd_files/system/bin/starta2sd:system/bin/starta2sd \
device/huawei/ascend/include/apps2sd_files/system/bin/sysinit:system/bin/sysinit \
device/huawei/ascend/include/apps2sd_files/system/bin/zipalign:system/bin/zipalign \
device/huawei/ascend/include/apps2sd_files/system/etc/init.d/00banner:system/etc/init.d/00banner \
device/huawei/ascend/include/apps2sd_files/system/etc/init.d/01sysctl:system/etc/init.d/01sysctl \
device/huawei/ascend/include/apps2sd_files/system/etc/init.d/02firstboot:system/etc/init.d/02firstboot \
device/huawei/ascend/include/apps2sd_files/system/etc/init.d/04apps2sd:system/etc/init.d/01apps2sd \
device/huawei/ascend/include/apps2sd_files/system/etc/init.d/99complete:system/etc/init.d/99complete \
device/huawei/ascend/include/apps2sd_files/system/sd/placeholder:system/sd/placeholder \
device/huawei/ascend/include/apps2sd_files/system/xbin/a2sd:system/xbin/a2sd \
device/huawei/ascend/include/apps2sd_files/system/xbin/apps2sd:system/xbin/apps2sd \
device/huawei/ascend/include/apps2sd_files/move_cache_sd:root/move_cache_sd \
device/huawei/ascend/include/apps2sd_files/apps2sd_run_program:root/apps2sd_run_program \
device/huawei/ascend/include/apps2sd_files/apps2sd_system:root/apps2sd_system
##Screen Rotation Fix
# device/huawei/ascend/include/lib/libui.so:system/lib/libui.so
##No Ads Host file
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/etc/hosts:system/etc/hosts