-
Notifications
You must be signed in to change notification settings - Fork 13
/
lotus.mk
186 lines (152 loc) · 8.32 KB
/
lotus.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
#
# 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)
$(call inherit-product, device/sony/lotus/recovery/recovery.mk)
# Inherit the proprietary counterpart
$(call inherit-product-if-exists, vendor/sony/lotus/lotus-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/sony/lotus/overlay
# Permissions
PRODUCT_COPY_FILES += \
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.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.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.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
# Configs
PRODUCT_COPY_FILES += \
device/sony/lotus/config/media_codecs.xml:system/etc/media_codecs.xml \
device/sony/lotus/config/egl.cfg:system/lib/egl/egl.cfg \
device/sony/lotus/config/asound.conf:system/etc/asound.conf \
device/sony/lotus/config/dbus.conf:system/etc/dbus.conf \
device/sony/lotus/config/sysmon.cfg:system/etc/sysmon.cfg \
device/sony/lotus/config/hostapd.conf:system/etc/wifi/hostapd.conf \
device/sony/lotus/config/01stesetup:system/etc/init.d/01stesetup \
device/sony/lotus/config/10dhcpcd:system/etc/init.d/10dhcpcd \
device/sony/lotus/config/10hostapd:system/etc/init.d/10hostapd \
device/sony/lotus/config/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs
# Hostapd
PRODUCT_PACKAGES += \
hostapd_cli \
hostapd
# BT A2DP
PRODUCT_PACKAGES += \
libasound_module_ctl_bluetooth \
libasound_module_pcm_bluetooth
# light package
PRODUCT_PACKAGES += \
lights.montblanc
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
#Fmradio
#PRODUCT_PACKAGES += \
# FmRadioReceiver
# We have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
# Custom init / uevent
PRODUCT_COPY_FILES += \
device/sony/lotus/config/init.rc:root/init.rc \
device/sony/lotus/config/fstab.st-ericsson:root/fstab.st-ericsson \
device/sony/lotus/config/init.st-ericsson.rc:root/init.st-ericsson.rc \
device/sony/lotus/config/ueventd.st-ericsson.rc:root/ueventd.st-ericsson.rc
# Recovery bootstrap script
PRODUCT_COPY_FILES += \
device/sony/lotus/recovery/bootrec:root/sbin/bootrec \
device/sony/lotus/recovery/usbid_init.sh:root/sbin/usbid_init.sh \
device/sony/lotus/recovery/postrecoveryboot.sh:root/sbin/postrecoveryboot.sh
# HW Configs
PRODUCT_COPY_FILES += \
device/sony/lotus/config/omxloaders:system/etc/omxloaders \
device/sony/lotus/config/ril_config:system/etc/ril_config \
device/sony/lotus/config/install_wlan:system/bin/install_wlan \
device/sony/lotus/config/ste_modem.sh:system/etc/ste_modem.sh
# GPS
PRODUCT_COPY_FILES += \
device/sony/lotus/config/gps.conf:system/etc/gps.conf\
device/sony/lotus/config/cacert.txt:system/etc/suplcert/cacert.txt
PRODUCT_PROPERTY_OVERRIDES += \
sys.mem.max_hidden_apps=10
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp \
wifi.interface=wlan0
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
# These are the hardware-specific features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml
# This device is mdpi. However the platform doesn't
# currently contain all of the bitmaps at mdpi density so
# we do this little trick to fall back to the mdpi version
# if the mdpi doesn't exist.
PRODUCT_AAPT_CONFIG := normal mdpi mdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi
# Configuration scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/init.st-ericsson.device.rc:root/init.st-ericsson.device.rc \
device/sony/lotus/prebuilt/logo-320x480.rle:root/logo.rle
# Configuration scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/dash.conf:system/etc/dash.conf \
$(LOCAL_PATH)/prebuilt/hw_config.sh:system/etc/hw_config.sh
# USB function switching
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/init.st-ericsson.usb.rc:root/init.st-ericsson.usb.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/vold.fstab:system/etc/vold.fstab \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml
# Recovery bootstrap (device-specific part)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/bootrec-device:root/sbin/bootrec-device \
$(LOCAL_PATH)/recovery/bootrec-device-fs:root/sbin/bootrec-device-fs \
$(LOCAL_PATH)/recovery.fstab:root/recovery.fstab
# Key layouts and touchscreen
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/AB8500_Hs_Button.kl:system/usr/keylayout/AB8500_Hs_Button.kl \
$(LOCAL_PATH)/config/simple_remote.kl:system/usr/keylayout/simple_remote.kl \
$(LOCAL_PATH)/config/simple_remote_appkey.kl:system/usr/keylayout/simple_remote_appkey.kl \
$(LOCAL_PATH)/config/cyttsp_key.kl:system/usr/keylayout/cyttsp_key.kl \
$(LOCAL_PATH)/config/STMPE-keypad.kl:system/usr/keylayout/STMPE-keypad.kl \
$(LOCAL_PATH)/config/tc3589x-keypad.kl:system/usr/keylayout/tc3589x-keypad.kl \
$(LOCAL_PATH)/config/ux500-ske-keypad.kl:system/usr/keylayout/ux500-ske-keypad.kl.kl \
$(LOCAL_PATH)/config/ux500-ske-keypad-qwertz.kl:system/usr/keylayout/ux500-ske-keypad-qwertz.kl \
$(LOCAL_PATH)/config/cyttsp-spi.idc:system/usr/idc/cyttsp-spi.idc \
$(LOCAL_PATH)/config/synaptics_rmi4_i2c.idc:system/usr/idc/synaptics_rmi4_i2c.idc \
$(LOCAL_PATH)/config/sensor00_f11_sensor0.idc:system/usr/idc/sensor00_f11_sensor0.idc
# Misc configuration files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/cflashlib.cfg:system/etc/cflashlib.cfg \
$(LOCAL_PATH)/config/flashled_param_config.cfg:system/etc/flashled_param_config.cfg
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
$(call inherit-product-if-exists, vendor/sony/lotus/lotus-vendor.mk)
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160