-
Notifications
You must be signed in to change notification settings - Fork 1
/
aalto.mk
executable file
·279 lines (245 loc) · 14.2 KB
/
aalto.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
# Copyright (C) 2010 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.
# Hardware (Audio, storage,..) configuration files
PRODUCT_COPY_FILES := \
device/samsung/aalto/etc/asound.conf:system/etc/asound.conf \
device/samsung/aalto/etc/gps.conf:system/etc/gps.conf \
device/samsung/aalto/etc/gps.xml:system/vendor/etc/gps.xml \
device/samsung/aalto/etc/vold.fstab:system/etc/vold.fstab \
device/samsung/aalto/egl.cfg:system/lib/egl/egl.cfg \
device/samsung/aalto/etc/powervr.ini:system/etc/powervr.ini
# Ramdisk files (basic filesystem)
PRODUCT_COPY_FILES += \
device/samsung/aalto/init.aalto.rc:root/init.aalto.rc \
device/samsung/aalto/init.aalto.usb.rc:root/init.aalto.usb.rc \
device/samsung/aalto/lpm.rc:root/lpm.rc \
device/samsung/aalto/lpm.rc:recovery/root/lpm.rc \
device/samsung/aalto/ueventd.aalto.rc:root/ueventd.aalto.rc \
device/samsung/aalto/ueventd.aalto.rc:recovery/root/ueventd.aalto.rc
# Audio configuration files
PRODUCT_COPY_FILES += \
device/samsung/aalto/etc/audio/aeqcoe.txt:system/etc/audio/aeqcoe.txt \
device/samsung/aalto/etc/audio/LVVEFS_Rx_Configuration.txt:system/etc/audio/LVVEFS_Rx_Configuration.txt \
device/samsung/aalto/etc/audio/LVVEFS_Tx_Configuration.txt:system/etc/audio/LVVEFS_Tx_Configuration.txt \
device/samsung/aalto/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_EARPIECE_WIDEBAND.txt \
device/samsung/aalto/etc/audio/Rx_ControlParams_SPEAKER_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_SPEAKER_WIDEBAND.txt \
device/samsung/aalto/etc/audio/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt \
device/samsung/aalto/etc/audio/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt:system/etc/audio/Rx_ControlParams_WIRED_HEADSET_WIDEBAND.txt \
device/samsung/aalto/etc/audio/situation.txt:system/etc/audio/situation.txt \
device/samsung/aalto/etc/audio/soundbooster.txt:system/etc/audio/soundbooster.txt \
device/samsung/aalto/etc/audio/srstunning.txt:system/etc/audio/srstunning.txt \
device/samsung/aalto/etc/audio/stream_earpiece.txt:system/etc/audio/stream_earpiece.txt \
device/samsung/aalto/etc/audio/stream_headset.txt:system/etc/audio/stream_headset.txt \
device/samsung/aalto/etc/audio/stream_speaker.txt:system/etc/audio/stream_speaker.txt \
device/samsung/aalto/etc/audio/Tx_ControlParams_EARPIECE_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_EARPIECE_WIDEBAND.txt \
device/samsung/aalto/etc/audio/Tx_ControlParams_SPEAKER_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_SPEAKER_WIDEBAND.txt \
device/samsung/aalto/etc/audio/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_WIRED_HEADPHONE_WIDEBAND.txt \
device/samsung/aalto/etc/audio/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt:system/etc/audio/Tx_ControlParams_WIRED_HEADSET_WIDEBAND.txt \
device/samsung/aalto/etc/audio/codec/FMRadioEar.ini:system/etc/audio/codec/FMRadioEar.ini \
device/samsung/aalto/etc/audio/codec/FMRadioSpk.ini:system/etc/audio/codec/FMRadioSpk.ini \
device/samsung/aalto/etc/audio/codec/MusicEar.ini:system/etc/audio/codec/MusicEar.ini \
device/samsung/aalto/etc/audio/codec/MusicEarAmp.ini:system/etc/audio/codec/MusicEarAmp.ini \
device/samsung/aalto/etc/audio/codec/MusicSpk.ini:system/etc/audio/codec/MusicSpk.ini \
device/samsung/aalto/etc/audio/codec/MusicSpkAmp.ini:system/etc/audio/codec/MusicSpkAmp.ini \
device/samsung/aalto/etc/audio/codec/RecHeadSetMic.ini:system/etc/audio/codec/RecHeadSetMic.ini \
device/samsung/aalto/etc/audio/codec/RecMainMic.ini:system/etc/audio/codec/RecMainMic.ini \
device/samsung/aalto/etc/audio/codec/RecSubMic.ini:system/etc/audio/codec/RecSubMic.ini \
device/samsung/aalto/etc/audio/codec/RingtoneEar.ini:system/etc/audio/codec/RingtoneEar.ini \
device/samsung/aalto/etc/audio/codec/RingtoneSpk.ini:system/etc/audio/codec/RingtoneSpk.ini \
device/samsung/aalto/etc/audio/codec/VCall3pEar.ini:system/etc/audio/codec/VCall3pEar.ini \
device/samsung/aalto/etc/audio/codec/VCall4pEar.ini:system/etc/audio/codec/VCall4pEar.ini \
device/samsung/aalto/etc/audio/codec/VoiceCall3pEar.ini:system/etc/audio/codec/VoiceCall3pEar.ini \
device/samsung/aalto/etc/audio/codec/VoiceCall4pEar.ini:system/etc/audio/codec/VoiceCall4pEar.ini \
device/samsung/aalto/etc/audio/codec/VoiceCallBT.ini:system/etc/audio/codec/VoiceCallBT.ini \
device/samsung/aalto/etc/audio/codec/VoiceCallEarAmp.ini:system/etc/audio/codec/VoiceCallEarAmp.ini \
device/samsung/aalto/etc/audio/codec/VoiceCallRcv.ini:system/etc/audio/codec/VoiceCallRcv.ini \
device/samsung/aalto/etc/audio/codec/VoiceCallSpk.ini:system/etc/audio/codec/VoiceCallSpk.ini \
device/samsung/aalto/etc/audio/codec/VoiceCallSpkAmp.ini:system/etc/audio/codec/VoiceCallSpkAmp.ini \
device/samsung/aalto/etc/audio/codec/VoiceRecHeadSetMic.ini:system/etc/audio/codec/VoiceRecHeadSetMic.ini \
device/samsung/aalto/etc/audio/codec/VoiceRecMainMic.ini:system/etc/audio/codec/VoiceRecMainMic.ini \
device/samsung/aalto/etc/audio/codec/VtCallBT.ini:system/etc/audio/codec/VtCallBT.ini \
device/samsung/aalto/etc/audio/codec/VtCallEarAmp.ini:system/etc/audio/codec/VtCallEarAmp.ini \
device/samsung/aalto/etc/audio/codec/VtCallRcv.ini:system/etc/audio/codec/VtCallRcv.ini \
device/samsung/aalto/etc/audio/codec/VtCallSpk.ini:system/etc/audio/codec/VtCallSpk.ini \
device/samsung/aalto/etc/audio/codec/VtCallSpkAmp.ini:system/etc/audio/codec/VtCallSpkAmp.ini
# Wifi configuration files
PRODUCT_COPY_FILES += \
device/samsung/aalto/etc/wifi/firmware.bin:system/etc/wifi/firmware.bin \
device/samsung/aalto/etc/wifi/tiwlan_plt.ini:system/etc/wifi/tiwlan_plt.ini \
device/samsung/aalto/etc/wifi/softap/ap_firmware.bin:system/etc/wifi/softap/ap_firmware.bin \
device/samsung/aalto/etc/wifi/softap/hostapd.conf:system/etc/wifi/softap/hostapd.conf \
device/samsung/aalto/etc/wifi/softap/tiwlan_ap.ini:system/etc/wifi/softap/tiwlan_ap.ini \
device/samsung/aalto/etc/wifi/tiwlan.ini:system/etc/wifi/tiwlan.ini
# Media codecs
PRODUCT_COPY_FILES += \
device/samsung/aalto/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/samsung/aalto/etc/media_codecs.xml:system/etc/media_codecs.xml
# Bluetooth configuration file
PRODUCT_COPY_FILES += \
device/samsung/aalto/etc/bluetooth/main.conf:system/etc/bluetooth/main.conf
# Prebuilt kl keymaps
PRODUCT_COPY_FILES += \
device/samsung/aalto/usr/keylayout/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
device/samsung/aalto/usr/keylayout/sec_key.kl:system/usr/keylayout/sec_key.kl \
device/samsung/aalto/usr/keylayout/sec_power_key.kl:system/usr/keylayout/sec_power_key.kl \
device/samsung/aalto/usr/keylayout/sec_touchscreen.kl:system/usr/keylayout/sec_touchscreen.kl
# IDC file for Touchscreen Calibration
PRODUCT_COPY_FILES += \
device/samsung/aalto/usr/idc/sec_touchscreen.idc:system/usr/idc/sec_touchscreen.idc
# Hardware specific permissions
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.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.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.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.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
# Packages
PRODUCT_PACKAGES := \
com.android.future.usb.accessory \
bdaddr_read \
bootmenu_busybox \
camera.aalto \
power.aalto \
lights.aalto \
dhcpcd.conf \
# Audio drivers
PRODUCT_PACKAGES += \
hcitool hciattach hcidump \
libaudioutils audio.a2dp.default \
libaudiohw_legacy audio.primary.omap3 audio.usb.default
# Audio policy configuration
PRODUCT_COPY_FILES += \
device/samsung/aalto/libaudio/audio_policy.conf:system/etc/audio_policy.conf
# OMX stuff
PRODUCT_PACKAGES += \
libLCML \
libbridge \
cexec.out \
libOMX.TI.AAC.decode \
libOMX.TI.AAC.encode \
libOMX.TI.AMR.decode \
libOMX.TI.AMR.encode \
libOMX.TI.JPEG.decoder \
libOMX.TI.JPEG.encoder \
libOMX.TI.MP3.decode \
libOMX.TI.Video.Decoder \
libOMX.TI.Video.encoder \
libOMX.TI.VPP \
libOMX.TI.WBAMR.decode \
libOMX.TI.WBAMR.encode \
libOMX.TI.WMA.decode \
libOMX_Core \
# Device specific overlay
DEVICE_PACKAGE_OVERLAYS += device/samsung/aalto/overlay
# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number
PRODUCT_PROPERTY_OVERRIDES := \
ro.opengles.version=131072
# These are the hardware-specific settings that are stored in system properties.
# Note that the only such settings should be the ones that are too low-level to
# be reachable from resources or other mechanisms.
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=tiwlan0 \
wifi.supplicant_scan_interval=300 \
ro.telephony.ril_class=SamsungRIL \
dev.sfbootcomplete=0 \
ro.hwui.disable_scissor_opt=true \
debug.performance.tuning=1 \
pm.sleep_mode=1 \
ro.ril.disable.power.collapse=0 \
ro.ril.fast.dormancy.rule=0 \
persist.sys.purgeable_assets=1 \
persist.sys.shutdown.mode=hibernate \
ro.config.hw_quickpoweron=true \
windowsmgr.max_events_per_sec=120 \
ro.max.fling_velocity=12000 \
ro.min.fling_velocity=8000 \
touch.pressure.scale=0.001 \
# Specific default properties
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mass_storage \
ro.hardware=aalto
# enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += \
dalvik.gc.type-precise
# Our cache partition isn't big enough for dalvik-cache.
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-data-only=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
# Override /proc/sys/vm/dirty_ratio on UMS
PRODUCT_PROPERTY_OVERRIDES += \
ro.vold.umsdirtyratio=20
# Vold configuartion
PRODUCT_PROPERTY_OVERRIDES += \
ro.vold.switchablepair=/mnt/emmc,/mnt/sdcard
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.vold.switchexternal=1
include frameworks/native/build/phone-hdpi-512-dalvik-heap.mk
# Screen density is actually considered a locale (since it is taken into account
# the the build-time selection of resources). The product definitions including
# this file must pay attention to the fact that the first entry in the final
# PRODUCT_LOCALES expansion must not be a density.
PRODUCT_LOCALES := mdpi
# Kernel modules (*.ko)
PRODUCT_COPY_FILES += $(foreach module,\
$(filter-out $(RAMDISK_MODULES),$(wildcard device/samsung/aalto/modules/*.ko)),\
$(module):system/lib/modules/$(notdir $(module)))
# Prebuilt kernel (2.6.35.7-CL1184553)
# Sources avaible at https://github.com/androthan/aalto-kernel/tree/jellybean
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/aalto/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
# OTA update files
# This uses the service from https://www.otaupdatecenter.pro
# Remove those files for third-party builds
PRODUCT_COPY_FILES += \
device/samsung/aalto/ota/ota.prop:system/ota.prop \
device/samsung/aalto/ota/rom.ota.prop:system/rom.ota.prop \
device/samsung/aalto/ota/app/OTA-Updater-2.0.5.apk:system/app/OTA-Updater-2.0.5.apk \
device/samsung/aalto/ota/etc/permissions/com.otaudater.feature.xml:system/etc/permissions/com.otaudater.feature.xml \
# Kernel modules (*.ko) for ramdisk
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/samsung/aalto/modules/ramdisk,root/lib/modules)
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/samsung/aalto/modules/ramdisk,recovery/root/lib/modules)
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# See comment at the top of this file. This is where the other
# half of the device-specific product definition file takes care
# of the aspects that require proprietary drivers that aren't
# commonly available
$(call inherit-product-if-exists, vendor/samsung/aalto/aalto-vendor.mk)