-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice.mk
executable file
·218 lines (184 loc) · 9.94 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
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
#
# Copyright (C) 2011 The CyanogenMod 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_full.mk)
PRODUCT_AAPT_CONFIG := normal mdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi
PRODUCT_COPY_FILES += \
device/lge/c800/init.lgc800.rc:root/init.lgc800.rc \
device/lge/c800/init.lgc800.usb.rc:root/init.lgc800.usb.rc \
device/lge/c800/init.lgc800.usb.rc:recovery/root/usb.rc \
device/lge/c800/ueventd.lgc800.rc:root/ueventd.lgc800.rc
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.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.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.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.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.camera=msm7630 \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1 \
ro.com.google.gmsversion=2.3_r6 \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.dexopt-flags=m=y \
ro.bt.bdaddr_path=/data/misc/bd_addr
# Override /proc/sys/vm/dirty_ratio on UMS
PRODUCT_PROPERTY_OVERRIDES += \
ro.vold.umsdirtyratio=20
# Configure the qcom surface compositor
PRODUCT_PROPERTY_OVERRIDES += \
debug.composition.type=dyn \
debug.enabletr=true
# Set default USB interface, adb is added automatically
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp
# Set default USB interface for first boot
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh
DEVICE_PACKAGE_OVERLAYS += device/lge/c800/overlay
# gsm config xml file
PRODUCT_COPY_FILES += \
device/lge/c800/configs/spn-conf.xml:system/etc/spn-conf.xml \
device/lge/c800/configs/voicemail-conf.xml:system/etc/voicemail-conf.xml
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio_policy.msm7x30 \
audio.primary.msm7x30 \
libaudioutils
# Display
PRODUCT_PACKAGES += \
copybit.msm7x30 \
gralloc.msm7x30 \
hwcomposer.msm7x30 \
libgenlock \
libmemalloc \
liboverlay \
libQcomUI \
libtilerenderer
# Media
PRODUCT_PACKAGES += \
libstagefrighthw \
libOmxCore \
libOmxVdec \
libOmxVenc
# Sensor/Camera/Lights/GPS HAL, Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory \
gps.lgc800 \
lights.lgc800 \
sensors.default
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
MagicSmokeWallpapers \
VisualizationWallpapers \
librs_jni
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs
# 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
# Input device calibration files
PRODUCT_COPY_FILES += \
device/lge/c800/idc/qt602240_ts_input.idc:system/usr/idc/atcmd_virtual_kbd.idc \
device/lge/c800/idc/qt602240_ts_input.idc:system/usr/idc/gpio-sidekey-device.idc \
device/lge/c800/idc/qt602240_ts_input.idc:system/usr/idc/univa_q-keypad.idc \
device/lge/c800/idc/qt602240_ts_input.idc:system/usr/idc/qt602240_ts_input.idc
# Keychars
PRODUCT_COPY_FILES += \
device/lge/c800/keychars/gpio-sidekey-device.kcm:system/usr/keychars/gpio-sidekey-device.kcm \
device/lge/c800/keychars/univa_q-keypad.kcm:system/usr/keychars/univa_q-keypad.kcm \
device/lge/c800/keychars/qt602240_ts_input.kcm:system/usr/keychars/qt602240_ts_input.kcm
# Keylayouts
PRODUCT_COPY_FILES += \
device/lge/c800/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/lge/c800/keylayout/7k_handset.kl:system/usr/keylayout/7k_handset.kl \
device/lge/c800/keylayout/qt602240_ts_input.kl:system/usr/keylayout/qt602240_ts_input.kl \
device/lge/c800/keylayout/atcmd_virtual_kbd.kl:system/usr/keylayout/atcmd_virtual_kbd.kl \
device/lge/c800/keylayout/univa_q-keypad.kl:system/usr/keylayout/univa_q-keypad.kl \
device/lge/c800/keylayout/gpio-sidekey-device.kl:system/usr/keylayout/gpio-sidekey-device.kl
# BT/Wifi
PRODUCT_COPY_FILES += \
device/lge/c800/prebuilt/init.qcom.bt.sh:system/bin/init.qcom.bt.sh
PRODUCT_PACKAGES += \
hwaddrs.lgc800 \
hcitool
# The splashscreen and offmode charger program
PRODUCT_COPY_FILES += \
device/lge/c800/recovery/rmt_storage/rmt_storage:/root/sbin/rmt_storage \
device/lge/c800/misc/wallpaper:/root/sbin/wallpaper \
device/lge/c800/misc/initlogo.rle:root/initlogo.rle \
device/lge/c800/misc/chargerlogo:root/sbin/chargerlogo \
device/lge/c800/misc/chargerimages/battery_ani_01.rle:root/chargerimages/battery_ani_01.rle \
device/lge/c800/misc/chargerimages/battery_ani_02.rle:root/chargerimages/battery_ani_02.rle \
device/lge/c800/misc/chargerimages/battery_ani_03.rle:root/chargerimages/battery_ani_03.rle \
device/lge/c800/misc/chargerimages/battery_ani_04.rle:root/chargerimages/battery_ani_04.rle \
device/lge/c800/misc/chargerimages/battery_ani_05.rle:root/chargerimages/battery_ani_05.rle \
device/lge/c800/misc/chargerimages/battery_bg.rle:root/chargerimages/battery_bg.rle \
device/lge/c800/misc/chargerimages/battery_bg_bk.rle:root/chargerimages/battery_bg_bk.rle \
device/lge/c800/misc/chargerimages/battery_charging_01.rle:root/chargerimages/battery_charging_01.rle \
device/lge/c800/misc/chargerimages/battery_charging_02.rle:root/chargerimages/battery_charging_02.rle \
device/lge/c800/misc/chargerimages/battery_charging_03.rle:root/chargerimages/battery_charging_03.rle \
device/lge/c800/misc/chargerimages/battery_charging_04.rle:root/chargerimages/battery_charging_04.rle \
device/lge/c800/misc/chargerimages/battery_charging_05.rle:root/chargerimages/battery_charging_05.rle \
device/lge/c800/misc/chargerimages/battery_charging_06.rle:root/chargerimages/battery_charging_06.rle \
device/lge/c800/misc/chargerimages/battery_charging_07.rle:root/chargerimages/battery_charging_07.rle \
device/lge/c800/misc/chargerimages/battery_charging_08.rle:root/chargerimages/battery_charging_08.rle \
device/lge/c800/misc/chargerimages/battery_charging_09.rle:root/chargerimages/battery_charging_09.rle \
device/lge/c800/misc/chargerimages/battery_charging_10.rle:root/chargerimages/battery_charging_10.rle \
device/lge/c800/misc/chargerimages/battery_charging_11.rle:root/chargerimages/battery_charging_11.rle \
device/lge/c800/misc/chargerimages/battery_charging_12.rle:root/chargerimages/battery_charging_12.rle \
device/lge/c800/misc/chargerimages/battery_charging_13.rle:root/chargerimages/battery_charging_13.rle \
device/lge/c800/misc/chargerimages/battery_charging_warning.rle:root/chargerimages/battery_charging_warning.rle \
device/lge/c800/misc/chargerimages/battery_wait_ani_01.rle:root/chargerimages/battery_wait_ani_01.rle \
device/lge/c800/misc/chargerimages/battery_wait_ani_02.rle:root/chargerimages/battery_wait_ani_02.rle \
device/lge/c800/misc/chargerimages/black_bg.rle:root/chargerimages/black_bg.rle
# config files
PRODUCT_COPY_FILES += \
device/lge/c800/configs/media_profiles.xml:system/etc/media_profiles.xml \
device/lge/c800/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
PRODUCT_COPY_FILES += \
device/lge/c800/configs/vold.fstab:system/etc/vold.fstab
$(call inherit-product, frameworks/base/build/phone-hdpi-512-dalvik-heap.mk)
#BOARD_WLAN_DEVICE_REV := bcm4330_b1
#WIFI_BAND := 802_11_ABG
#$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
# The gps config appropriate for this device
PRODUCT_COPY_FILES += device/common/gps/gps.conf_US:system/etc/gps.conf
# Inherit non-open-source blobs.
$(call inherit-product-if-exists, vendor/lge/c800/device-vendor.mk)