-
Notifications
You must be signed in to change notification settings - Fork 2
/
device.mk
191 lines (159 loc) · 6.85 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
PRODUCT_AAPT_CONFIG := normal mdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi
PRODUCT_LOCALES := en_US es_ES
# PicoTTS
PRODUCT_REMOVE_FILES += \
system/tts/lang_pico/de-DE_gl0_sg.bin \
system/tts/lang_pico/de-DE_ta.bin \
system/tts/lang_pico/en-GB_kh0_sg.bin \
system/tts/lang_pico/en-GB_ta.bin \
system/tts/lang_pico/fr-FR_nk0_sg.bin \
system/tts/lang_pico/fr-FR_ta.bin \
system/tts/lang_pico/it-IT_cm0_sg.bin \
system/tts/lang_pico/it-IT_ta.bin
# Wallpapers and Media
PRODUCT_REMOVE_FILES += \
system/app/HoloSpiralWallpaper.apk \
system/app/LiveWallpapers.apk \
system/app/MagicSmokeWallpapers.apk \
system/app/PhaseBeam.apk \
system/app/VisualizationWallpapers.apk \
system/media/audio/ringtones/CyanTone.ogg
# Recent additions
PRODUCT_REMOVE_FILES += \
system/media/audio/notifications/Doink.ogg \
system/media/audio/notifications/Rang.ogg \
system/media/audio/notifications/Stone.ogg \
system/media/audio/ringtones/Bongo.ogg \
system/media/audio/ringtones/Boxbeat.ogg \
system/media/audio/ringtones/Gigolo.ogg \
system/media/audio/ringtones/House_of_house.ogg \
system/media/audio/ringtones/Silmarillia.ogg
# Other
PRODUCT_REMOVE_FILES += \
system/app/VideoEditor.apk \
# system/lib/libvideoeditor_jni.so \
# system/lib/libvideoeditorplayer.so
DEVICE_PACKAGE_OVERLAYS += device/lge/thunderc-common/overlay
# We have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# Use dalvik parameters for a 512 MB device
$(call inherit-product, frameworks/base/build/phone-hdpi-512-dalvik-heap.mk)
# Custom bootlogo
PRODUCT_COPY_FILES += \
device/lge/thunderc-common/bootimages/opening_01.rle:root/bootimages/opening_01.rle \
device/lge/thunderc-common/bootimages/opening_02.rle:root/bootimages/opening_02.rle \
device/lge/thunderc-common/bootimages/opening_03.rle:root/bootimages/opening_03.rle \
device/lge/thunderc-common/bootimages/opening_04.rle:root/bootimages/opening_04.rle \
device/lge/thunderc-common/bootimages/opening_05.rle:root/bootimages/opening_05.rle \
device/lge/thunderc-common/bootimages/opening_06.rle:root/bootimages/opening_06.rle \
device/lge/thunderc-common/bootimages/opening_07.rle:root/bootimages/opening_07.rle \
device/lge/thunderc-common/bootimages/opening_08.rle:root/bootimages/opening_08.rle \
# 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
PRODUCT_COPY_FILES += \
device/lge/thunderc-common/init.rc:root/init.rc \
device/lge/thunderc-common/prebuilt/initlogo.rle:root/initlogo.rle \
device/lge/thunderc-common/prebuilt/init.qcom.sh:root/init.qcom.sh \
# device/lge/thunderc-common/prebuilt/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh
# BT startup
PRODUCT_COPY_FILES += device/lge/thunderc-common/prebuilt/init.qcom.bt.sh:system/bin/init.qcom.bt.sh
# configs
PRODUCT_COPY_FILES += device/lge/thunderc-common/configs/AudioFilter.csv:system/etc/AudioFilter.csv
PRODUCT_COPY_FILES += device/lge/thunderc-common/configs/thunderc_keypad.kl:system/usr/keylayout/thunderc_keypad.kl
PRODUCT_COPY_FILES += device/lge/thunderc-common/configs/thunderc_keypad.kcm.bin:system/usr/keychars/thunderc_keypad.kcm.bin
PRODUCT_COPY_FILES += device/lge/thunderc-common/configs/7k_handset.kl:system/usr/keylayout/7k_handset.kl
PRODUCT_COPY_FILES += device/lge/thunderc-common/configs/Generic.kl:system/usr/keylayout/Generic.kl
PRODUCT_COPY_FILES += device/lge/thunderc-common/configs/adreno_config.txt:system/etc/adreno_config.txt
#PRODUCT_COPY_FILES += device/lge/thunderc-common/configs/vold.fstab:system/etc/vold.fstab
# Offmode charging
PRODUCT_PACKAGES += charger
PRODUCT_PACKAGES += charger_res_images
# Audio
PRODUCT_PACKAGES += \
audio_policy.thunderc \
audio.primary.thunderc \
audio.a2dp.default \
libaudioutils \
# Tiny alsa
PRODUCT_PACKAGES += libtinyalsa
PRODUCT_PACKAGES += tinyplay
PRODUCT_PACKAGES += tinycap
PRODUCT_PACKAGES += tinymix
# Display
PRODUCT_PACKAGES += \
libgenlock \
libmemalloc \
liboverlay \
libQcomUI \
libtilerenderer \
libopencorehw \
gralloc.msm7x27 \
copybit.msm7x27 \
hwcomposer.msm7x27 \
camera.thunderc \
dexpreopt \
# QCOM OMX
PRODUCT_PACKAGES += \
libstagefrighthw \
libOmxCore \
libdivxdrmdecrypt \
libmm-omxcore \
#libOmxVdec \
#libOmxVenc \
# Misc
PRODUCT_PACKAGES += \
lights.thunderc \
sensors.thunderc \
com.android.future.usb.accessory \
gps.thunderc \
hwaddrs \
hcitool \
hciconfig \
lgapversion \
Androidian \
bdaddr_read \
Apollo \
PRODUCT_PACKAGES += \
libjni_latinime \
librs_jni \
brcm_patchram_plus \
bash \
nano \
flash_image \
erase_image \
dump_image \
thunderc_keypad.kcm.bin \
PRODUCT_PACKAGES += \
Provision \
GoogleSearch \
LatinIME \
QuickSearchBox \
FileManager \
# Device permissions
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.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.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.wifi.xml:system/etc/permissions/android.hardware.wifi.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.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.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.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
PRODUCT_PROPERTY_OVERRIDES += \
ro.lge.vibrator_amp=125 \
ro.sf.lcd_density=160 \
persist.sys.use_16bpp_alpha
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=Quattrimus
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=$(CDMA_GOOGLE_BASE) \
ro.cdma.home.operator.alpha=$(CDMA_CARRIER_ALPHA) \
ro.cdma.home.operator.numeric=$(CDMA_CARRIER_NUMERIC) \
gsm.sim.operator.alpha=$(CDMA_CARRIER_ALPHA) \
gsm.sim.operator.numeric=$(CDMA_CARRIER_NUMERIC) \
gsm.operator.alpha=$(CDMA_CARRIER_ALPHA) \
gsm.operator.numeric=$(CDMA_CARRIER_NUMERIC)