-
Notifications
You must be signed in to change notification settings - Fork 9
/
device_ascendc.mk
executable file
·189 lines (156 loc) · 8.36 KB
/
device_ascendc.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
$(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/overlayc
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 += \
VoiceDialer \
Gallery
# vold
PRODUCT_COPY_FILES += \
device/huawei/ascend/vold.fstab:system/etc/vold.fstab \
device/huawei/ascend/vold:system/bin/vold
# 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/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf
# 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.xml:system/etc/permissions/android.hardware.camera.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 \
ro.com.android.dataroaming=false
# Time between scans in seconds. Keep it high to minimize battery drain.
# This only affects the case in which there are remembered access points,
# but none are in range.
PRODUCT_PROPERTY_OVERRIDES += \
wifi.supplicant_scan_interval=30
# density in DPI of the LCD of this board. This is used to scale the UI
# appropriately. If this property is not defined, the default value is 160 dpi.
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160
# Default network type
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.default_network=4
# Disable JIT by default
#PRODUCT_PROPERTY_OVERRIDES += \
# dalvik.vm.execution-mode=int:fast
# 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
# 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/media_profiles.xml:system/etc/media_profiles.xml
# wpa_supplicant configuration file
PRODUCT_COPY_FILES += \
device/huawei/ascend/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
# Proprietary hardware related
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/akmd2:system/bin/akmd2 \
vendor/huawei/ascend/proprietary/libcamera.so:obj/lib/libcamera.so \
vendor/huawei/ascend/proprietary/libcamera.so:system/lib/libcamera.so \
vendor/huawei/ascend/proprietary/libqcamera.so:system/lib/libqcamera.so \
vendor/huawei/ascend/proprietary/libmmjpeg.so:system/lib/libmmjpeg.so \
vendor/huawei/ascend/proprietary/libmmipl.so:obj/lib/libmmipl.so \
vendor/huawei/ascend/proprietary/libmmipl.so:system/lib/libmmipl.so \
vendor/huawei/ascend/proprietary/libmmprocess.so:system/lib/libmmprocess.so \
vendor/huawei/ascend/proprietary/init.qcom.bt.sh:system/etc/init.qcom.bt.sh \
# Sound and OMX
PRODUCT_COPY_FILES += \
device/huawei/ascend/AudioFilter.csv:system/etc/AudioFilter.csv \
device/huawei/ascend/include/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt \
vendor/huawei/ascend/proprietary/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \
vendor/huawei/ascend/proprietary/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \
vendor/huawei/ascend/proprietary/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \
vendor/huawei/ascend/proprietary/libOmxVidEnc.so:system/lib/libOmxVidEnc.so
# HW
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/sensors.default.so:system/lib/hw/sensors.default.so \
vendor/huawei/ascend/proprietary/copybit.msm7k.so:system/lib/hw/copybit.msm7k.so \
vendor/huawei/ascend/proprietary/gralloc.default.so:system/lib/hw/gralloc.default.so \
vendor/huawei/ascend/proprietary/gralloc.msm7k.so:system/lib/hw/gralloc.msm7k.so \
vendor/huawei/ascend/proprietary/lights.msm7k.so:system/lib/hw/lights.msm7k.so
# GPS
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/libcommondefs.so:system/lib/libcommondefs.so \
vendor/huawei/ascend/proprietary/libloc_api.so:system/lib/libloc_api.so \
vendor/huawei/ascend/proprietary/libloc_api-rpc.so:system/lib/libloc_api-rpc.so
# Cricket APN
PRODUCT_COPY_FILES += \
device/huawei/ascend/include/capns-conf.xml:system/etc/apns-conf.xml \
# Proprietary RIL related
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/libauth.so:system/lib/libauth.so \
vendor/huawei/ascend/proprietary/libril-qc-1.so:system/lib/libril-qc-1.so \
vendor/huawei/ascend/proprietary/libril.so:system/lib/libril.so \
vendor/huawei/ascend/proprietary/liboncrpc.so:system/lib/liboncrpc.so \
vendor/huawei/ascend/proprietary/libdsm.so:system/lib/libdsm.so \
vendor/huawei/ascend/proprietary/libqueue.so:system/lib/libqueue.so \
vendor/huawei/ascend/proprietary/libcm.so:system/lib/libcm.so \
vendor/huawei/ascend/proprietary/libdiag.so:system/lib/libdiag.so \
vendor/huawei/ascend/proprietary/libmmgsdilib.so:system/lib/libmmgsdilib.so \
vendor/huawei/ascend/proprietary/libgsdi_exp.so:system/lib/libgsdi_exp.so \
vendor/huawei/ascend/proprietary/libgstk_exp.so:system/lib/libgstk_exp.so \
vendor/huawei/ascend/proprietary/libwms.so:system/lib/libwms.so \
vendor/huawei/ascend/proprietary/libnv.so:system/lib/libnv.so \
vendor/huawei/ascend/proprietary/libwmsts.so:system/lib/libwmsts.so \
vendor/huawei/ascend/proprietary/libril-qcril-hook-oem.so:system/lib/libril-qcril-hook-oem.so \
vendor/huawei/ascend/proprietary/libdss.so:system/lib/libdss.so \
vendor/huawei/ascend/proprietary/libdll.so:system/lib/libdll.so \
vendor/huawei/ascend/proprietary/libqmi.so:system/lib/libqmi.so \
vendor/huawei/ascend/proprietary/libpbmlib.so:system/lib/libpbmlib.so \
vendor/huawei/ascend/proprietary/libwpa_client.so:system/lib/libwpa_client.so \
vendor/huawei/ascend/proprietary/qmuxd:system/bin/qmuxd \
vendor/huawei/ascend/proprietary/hci_qcomm_init:system/bin/hci_qcomm_init
## OEM RPC
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/modempre:system/bin/modempre \
vendor/huawei/ascend/proprietary/oem_rpc_svc:system/bin/oem_rpc_svc \
vendor/huawei/ascend/proprietary/libhwrpc.so:system/lib/libhwrpc.so \
vendor/huawei/ascend/proprietary/liboem_rapi.so:system/lib/liboem_rapi.so
## Wifi related
PRODUCT_COPY_FILES += \
device/huawei/ascend/prebuilt/dhd.ko:system/wifi/dhd.ko \
device/huawei/ascend/prebuilt/firmware.bin:system/wifi/firmware.bin \
device/huawei/ascend/prebuilt/nvram.txt:system/wifi/nvram.txt
## Some Huawei BS
PRODUCT_COPY_FILES += \
vendor/huawei/ascend/proprietary/autorun.iso:system/cdrom/autorun.iso \
## Some of my BS :D
PRODUCT_COPY_FILES += \
device/huawei/ascend/prebuilt/sdspeedincrease142.apk:system/app/sdspeedincrease142.apk \
device/huawei/ascend/include/98sdboost:system/etc/init.d/98sdboost \
device/huawei/ascend/include/99complete:system/etc/init.d/99complete
$(call inherit-product, build/target/product/full.mk)
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := generic_ascendc
PRODUCT_DEVICE := ascend
PRODUCT_MODEL := Huawei Ascend
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-huawei-us \
ro.com.google.locationfeatures=1 \
ro.cdma.home.operator.numeric=310016 \
ro.cdma.voicemail.number=mine \
ro.setupwizard.enable_bypass=1 \
ro.config.cdma_subscriptions=1