-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathascend2.mk
177 lines (142 loc) · 6.94 KB
/
ascend2.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
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
#$(call inherit-product, device/common/gps/gps_us_supl.mk)
# proprietary side of the device
$(call inherit-product-if-exists, vendor/huawei/ascend2/ascend2-vendor.mk)
$(call inherit-product, build/target/product/full.mk)
DEVICE_PACKAGE_OVERLAYS += device/huawei/ascend2/overlay
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/huawei/ascend2/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_ascend2
PRODUCT_DEVICE = hwm865
PRODUCT_MODEL := Huawei-M865
PRODUCT_LOCALES := en_US
PRODUCT_DEFAULT_REGION := US
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
MagicSmokeWallpapers \
VisualizationWallpapers \
librs_jni \
Gallery3d \
SpareParts \
Term \
libcamera \
libOmxCore \
libOmxVidEnc \
dexpreopt \
gps.M865 \
DISABLE_DEXPREOPT := false
# Vold
PRODUCT_COPY_FILES += \
device/huawei/ascend2/vold.fstab:system/etc/vold.fstab \
device/huawei/ascend2/include/bin/vold/:system/bin/vold
# bluetooth
PRODUCT_COPY_FILES += \
device/huawei/ascend2/include/etc/init.qcom.bt.sh:system/etc/init.qcom.bt.sh
# apns-conf.xml
PRODUCT_COPY_FILES += \
device/huawei/ascend2/include/etc/apns-conf.xml:system/etc/apns-conf.xml
PRODUCT_COPY_FILES += \
device/huawei/ascend2/include/etc/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
# Root init
PRODUCT_COPY_FILES += \
device/huawei/ascend2/init.huawei.rc:root/init.huawei.rc \
device/huawei/ascend2/include/ueventd.rc:root/ueventd.rc
# Audio
PRODUCT_COPY_FILES += \
device/huawei/ascend2/include/AudioFilter.csv:system/etc/AudioFilter.csv \
device/huawei/ascend2/include/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt
#Media profile
PRODUCT_COPY_FILES += \
device/huawei/ascend2/include/etc/media_profiles.xml:system/etc/media_profiles.xml
# Wifi firmware
PRODUCT_COPY_FILES += \
device/huawei/ascend2/prebuilt/wifi/dhd.ko:system/wifi/dhd.ko \
device/huawei/ascend2/prebuilt/wifi/firmware.bin:system/wifi/firmware.bin \
device/huawei/ascend2/prebuilt/wifi/firmware_apsta.bin:system/wifi/firmware_apsta.bin \
device/huawei/ascend2/prebuilt/wifi/nvram.txt:system/wifi/nvram.txt \
device/huawei/ascend2/prebuilt/wifi/bcm_loadecho.sh:system/wifi/bcm_loadecho.sh \
device/huawei/ascend2/prebuilt/wifi/bcm_loadipf.sh:system/wifi/bcm_loadipf.sh \
device/huawei/ascend2/prebuilt/wifi/connectap.sh:system/wifi/connectap.sh \
device/huawei/ascend2/prebuilt/wifi/iwconfig:system/wifi/iwconfig \
device/huawei/ascend2/prebuilt/wifi/iwlist:system/wifi/iwlist \
device/huawei/ascend2/prebuilt/wifi/iwpriv:system/wifi/iwpriv \
device/huawei/ascend2/prebuilt/wifi/nvram.txt:system/wifi/nvram.txt \
device/huawei/ascend2/prebuilt/wifi/udp_server:system/wifi/udp_server
# DHCP Config
PRODUCT_COPY_FILES += \
device/huawei/ascend2/prebuilt/wifi/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
##Added Files for bootsound and themes
PRODUCT_COPY_FILES += \
device/huawei/ascend2/include/app/RoverCyan.apk:system/app/RoverCyan.apk \
device/huawei/ascend2/include/app/com.mike.theme.hc3d3d-1.apk:system/app/com.mike.theme.hc3d3d-1.apk \
device/huawei/ascend2/include/app/DarkADBWireless-v1.apk:system/app/DarkADBWireless-v1.apk \
device/huawei/ascend2/include/app/com.elgubbo.a2sdGUI-1.apk:system/app/com.elgubbo.a2sdGUI-1.apk \
device/huawei/ascend2/include/bin/bootsound:system/bin/bootsound \
device/huawei/ascend2/include/media/audio/ui/android_audio.mp3:system/media/audio/ui/android_audio.mp3 \
device/huawei/ascend2/include/media/bootanimation.zip:system/media/bootanimation.zip \
device/huawei/ascend2/include/etc/hosts:system/etc/hosts \
device/huawei/ascend2/include/etc/init.local.rc:system/etc/init.local.rc
# 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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.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.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
# HW
PRODUCT_COPY_FILES += \
device/huawei/ascend2/include/lib/hw/sensors.default.so:system/lib/hw/sensors.default.so \
device/huawei/ascend2/include/lib/hw/lights.msm7k.so:system/lib/hw/lights.msm7k.so \
device/huawei/ascend2/include/lib/hw/copybit.msm7k.so:system/lib/hw/copybit.msm7k.so \
device/huawei/ascend2/include/lib/hw/gralloc.msm7k.so:system/lib/hw/gralloc.msm7k.so
# M865 uses mid-density
PRODUCT_LOCALES += mdpi
PRODUCT_PROPERTY_OVERRIDES := \
wifi.interface=eth0 \
wifi.supplicant_scan_interval=90 \
ro.sf.lcd_density=160 \
ro.com.android.dataroaming=false \
ro.config.play.bootsound=1
ro.config.hw_virtualsdcard=true \
ro.config.srs.equalizer=true \
ro.config.srs.default.type=1 \
ro.config.hw_new_double_signal=1 \
ro.config.hw_fast_dormancy=1 \
ro.config.hw_camera_resize=true \
debug.sf.hw=0 \
ro.config.hw_menu_unlockscreen=false \
ro.config.hw_allow_g_map=false \
ro.config.hw_voicerecord=true \
ro.config.hw_GSensorOptimize=true \
ro.config.hw_proximity=true \
ro.config.hw_opta=92 \
ro.config.hw_optb=156 \
ro.telephony.default_network=4 \
ro.com.google.clientidbase=android-cricket-us
ro.cdma.home.operator.alpha=Cricket \
ro.cdma.home.operator.numeric=31016 \
ro.config.cdma_subscription=1 \
ro.cdma.voicemail.number=mine \
ro.com.google.locationfeatures=1 \
# Perfomance tweaks
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.execution-mode=int:jit \
dalvik.vm.heapsize=32m \
dalvik.vm.dexopt-data-only=1
# apps2sd
#$(call inherit-product-if-exists, include/a2sd/a2sd.mk)