-
Notifications
You must be signed in to change notification settings - Fork 15
/
device_u8160.mk
196 lines (164 loc) · 6.99 KB
/
device_u8160.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
# 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.
#
DEVICE_PACKAGE_OVERLAYS += device/huawei/u8160/overlay
PRODUCT_PACKAGES += \
copybit.msm7k \
Gallery \
gps.u8160 \
gralloc.msm7k \
huawei_brcm_patchram_plus \
libOmxCore \
libOmxVidEnc \
lights.msm7k \
rzscontrol \
screencap
# Recovery tools
PRODUCT_PACKAGES += \
flash_image \
dump_image \
erase_image \
make_ext4fs \
e2fsck
# U8160Parts
PRODUCT_PACKAGES += \
U8160Parts
# Live wallpaper packages
PRODUCT_PACKAGES += \
LiveWallpapersPicker \
librs_jni \
LiveWallpapers \
VisualizationWallpapers
# 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
# Hardware permissions
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/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
# Keys
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/usr/keylayout/7k_handset.kl:system/usr/keylayout/7k_handset.kl
# Init files
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/init.u8160.rc:root/init.u8160.rc \
device/huawei/u8160/prebuilt/ueventd.huawei.rc:root/ueventd.huawei.rc \
device/huawei/u8160/prebuilt/etc/init.d/02setuphardware:system/etc/init.d/02setuphardware \
device/huawei/u8160/prebuilt/etc/init.d/05mountsd:system/etc/init.d/05mountsd
# Kernel modules
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/lib/modules/cifs.ko:system/lib/modules/cifs.ko \
device/huawei/u8160/prebuilt/lib/modules/dhd.ko:system/lib/modules/dhd.ko \
device/huawei/u8160/prebuilt/lib/modules/oprofile.ko:system/lib/modules/oprofile.ko \
device/huawei/u8160/prebuilt/lib/modules/ramzswap.ko:system/lib/modules/ramzswap.ko \
device/huawei/u8160/prebuilt/lib/modules/tun.ko:system/lib/modules/tun.ko
# Wi-Fi related
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/etc/dhcpcd/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
device/huawei/u8160/prebuilt/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
# Audio
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
device/huawei/u8160/prebuilt/etc/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt
# Bluetooth
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/etc/bluetooth/audio.conf:system/etc/bluetooth/audio.conf
# Other
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/lib/egl/egl.cfg:system/lib/egl/egl.cfg \
device/huawei/u8160/prebuilt/etc/sysctl.conf:system/etc/sysctl.conf \
device/huawei/u8160/prebuilt/etc/vold.fstab:system/etc/vold.fstab
# U8160Parts
PRODUCT_COPY_FILES += \
device/huawei/u8160/prebuilt/etc/init.u8160parts.rc:system/etc/init.u8160parts.rc
# Enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1
# Extended JNI checks
# The extended JNI checks will cause the system to run more slowly, but they can spot a variety of nasty bugs
# before they have a chance to cause problems.
# Default=true for development builds, set by android buildsystem.
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false
# RIL properties
PRODUCT_PROPERTY_OVERRIDES += \
rild.libargs=-d/dev/smd0 \
rild.libpath=/system/lib/libril-qc-1.so \
ro.telephony.default_network=0 \
ro.telephony.call_ring.delay=0 \
ro.telephony.call_ring.multiple=false
# Networking properties
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=60
# Performance & graphics properties
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapsize=24m \
persist.sys.purgeable_assets=1 \
persist.sys.rotationanimation=0 \
persist.sys.scrollingcache=2 \
persist.sys.use_16bpp_alpha=1 \
persist.sys.use_dithering=1 \
ro.media.dec.jpeg.memcap=20000000 \
ro.opengles.version=65537 \
ro.sf.lcd_density=120 \
ro.vold.umsdirtyratio=20
# Touchscreen properties
PRODUCT_PROPERTY_OVERRIDES += \
view.fading_edge_length=8 \
view.minimum_fling_velocity=25 \
view.scroll_friction=0.008 \
view.touch_slop=15
# Compcache properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.compcache.default=0
# Tethering (rndis kernel kickback) properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.tethering.kb_disconnect=1
# Audio properties
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.speaker-attn=6
# Limit camera to 2mp resolution
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.PicMaxSize=2mp
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/huawei/u8160/prebuilt/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
$(call inherit-product-if-exists, vendor/huawei/u8160/u8160-vendor.mk)
$(call inherit-product, build/target/product/full_base.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_ww_supl.mk)
# LDPI assets
PRODUCT_LOCALES += ldpi mdpi
PRODUCT_NAME := huawei_u8160
PRODUCT_DEVICE := u8160
PRODUCT_MODEL := U8160
PRODUCT_BRAND := huawei
PRODUCT_MANUFACTURER := huawei