forked from KonstaT/android_device_zte_blade
-
Notifications
You must be signed in to change notification settings - Fork 1
/
device.mk
136 lines (115 loc) · 5.65 KB
/
device.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
#
# 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.
#
# This file includes all definitions that apply to ALL blade devices, and
# are also specific to blade devices
#
# Everything in this directory will become public
DEVICE_PACKAGE_OVERLAYS := device/zte/blade/overlay
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# Graphics
PRODUCT_PACKAGES := \
gralloc.msm7x27 \
copybit.msm7x27 \
hwcomposer.msm7x27
# OMX
PRODUCT_PACKAGES += \
libmm-omxcore \
libOmxCore \
libstagefrighthw
# Camera
PRODUCT_PACKAGES += \
camera.msm7x27 \
LegacyCamera
# GPS
PRODUCT_PACKAGES += \
librpc \
gps.blade
# Blade specific
PRODUCT_PACKAGES += \
lights.blade \
sensors.blade \
BladeParts
# Audio
PRODUCT_PACKAGES += \
audio.primary.blade \
audio_policy.blade \
audio.a2dp.default \
libaudioutils
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapersPicker \
librs_jni
# Other
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs \
dexpreopt
# for bugmailer
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_PACKAGES += send_bug
PRODUCT_COPY_FILES += \
system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \
system/extras/bugmailer/send_bug:system/bin/send_bug
endif
DISABLE_DEXPREOPT := false
PRODUCT_TAGS += dalvik.gc.type-precise
# Enable repeatable keys in CWM
PRODUCT_PROPERTY_OVERRIDES += \
ro.cwm.enable_key_repeat=true
PRODUCT_COPY_FILES := \
device/zte/blade/prebuilt/root/init.blade.rc:root/init.blade.rc \
device/zte/blade/prebuilt/root/init.blade.usb.rc:root/init.blade.usb.rc \
device/zte/blade/prebuilt/root/ueventd.blade.rc:root/ueventd.blade.rc \
device/zte/blade/prebuilt/system/etc/vold.fstab:system/etc/vold.fstab \
device/zte/blade/prebuilt/system/usr/keylayout/blade_keypad.kl:/system/usr/keylayout/blade_keypad.kl \
device/zte/blade/prebuilt/system/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
device/zte/blade/prebuilt/system/etc/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt \
device/zte/blade/prebuilt/system/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/zte/blade/prebuilt/system/etc/media_codecs.xml:system/etc/media_codecs.xml \
device/zte/blade/prebuilt/system/etc/audio_policy.conf:system/etc/audio_policy.conf \
device/zte/blade/prebuilt/system/etc/start_usb0.sh:system/etc/start_usb0.sh \
device/zte/blade/prebuilt/system/etc/gps.conf:system/etc/gps.conf
# Bluetooth configuration files
PRODUCT_COPY_FILES += \
device/zte/blade/prebuilt/system/etc/init.bt.sh:system/etc/init.bt.sh \
system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf
# WiFi
PRODUCT_COPY_FILES += \
device/zte/blade/prebuilt/system/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/zte/blade/prebuilt/system/wifi/ar6000.ko:system/wifi/ar6000.ko \
device/zte/blade/prebuilt/system/wifi/regcode:system/wifi/regcode \
device/zte/blade/prebuilt/system/wifi/data.patch.hw2_0.bin:system/wifi/data.patch.hw2_0.bin \
device/zte/blade/prebuilt/system/wifi/athwlan.bin.z77:system/wifi/athwlan.bin.z77 \
device/zte/blade/prebuilt/system/wifi/athtcmd_ram.bin:system/wifi/athtcmd_ram.bin \
device/zte/blade/prebuilt/system/wifi/device.bin:system/wifi/device.bin \
device/zte/blade/prebuilt/system/wifi/eeprom.bin:system/wifi/eeprom.bin \
device/zte/blade/prebuilt/system/wifi/eeprom.data:system/wifi/eeprom.data
# These are the hardware-specific features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.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.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.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
$(call inherit-product-if-exists, vendor/zte/blade/blade-vendor.mk)