-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmontblanc.mk
More file actions
162 lines (136 loc) · 6.29 KB
/
Copy pathmontblanc.mk
File metadata and controls
162 lines (136 loc) · 6.29 KB
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
# ste-sony
$(call inherit-product, hardware/ste-sony/common.mk)
# Inherit from the vendor common montblanc definitions
$(call inherit-product-if-exists, vendor/sony/montblanc-common/montblanc-common-vendor.mk)
COMMON_PATH := device/sony/montblanc-common
# Common montblanc settings overlays
DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay
# Common montblanc features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.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.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.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.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.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.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.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
# Configuration files
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/config/asound.conf:system/etc/asound.conf \
$(COMMON_PATH)/config/hostapd.conf:system/etc/wifi/hostapd.conf \
$(COMMON_PATH)/config/01stesetup:system/etc/init.d/01stesetup \
$(COMMON_PATH)/config/10wireless:system/etc/init.d/10wireless \
$(COMMON_PATH)/config/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(COMMON_PATH)/config/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf
# Media Codecs
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
$(COMMON_PATH)/config/media_codecs_google_video_le.xml:system/etc/media_codecs_google_video_le.xml
# Custom init scripts
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/config/init.st-ericsson.rc:root/init.st-ericsson.rc \
$(COMMON_PATH)/config/ueventd.st-ericsson.rc:root/ueventd.st-ericsson.rc
# Hardware configuration scripts
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/config/omxloaders:system/etc/omxloaders \
$(COMMON_PATH)/config/ril_config:system/etc/ril_config \
$(COMMON_PATH)/config/install_wlan.sh:system/bin/install_wlan.sh \
$(COMMON_PATH)/config/ste_modem.sh:system/etc/ste_modem.sh \
$(COMMON_PATH)/config/gps.conf:system/etc/gps.conf \
$(COMMON_PATH)/config/cacert.txt:system/etc/suplcert/cacert.txt
# Copy input device configurations
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/config/sensor00_f11_sensor0.idc:system/usr/idc/sensor00_f11_sensor0.idc \
$(COMMON_PATH)/config/synaptics_rmi4_i2c.idc:system/usr/idc/synaptics_rmi4_i2c.idc
# HAL
PRODUCT_PACKAGES += \
sensors.montblanc
# Filesystem management tools
PRODUCT_PACKAGES += \
setup_fs \
fsck.f2fs \
mkfs.f2fs
# libtinyalsa & audio.usb.default
PRODUCT_PACKAGES += \
tinyalsa \
libtinyalsa \
audio.usb.default
# Hostapd & WIFI
PRODUCT_PACKAGES += \
hostapd_cli \
hostapd \
wpa_supplicant \
wpa_cli \
libwpa_client
# BlueZ
PRODUCT_PACKAGES += \
libglib \
bluetoothd \
bluetooth.default \
haltest \
btmon \
btproxy \
audio.a2dp.default \
l2test \
bluetoothd-snoop \
init.bluetooth.rc \
btmgmt \
hcitool \
l2ping \
avtest \
libsbc \
hciattach
# Run adbd as root
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
# Default USB configuration
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += persist.sys.usb.config=mtp
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.root_access=1
# Hardware-specific properties
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.render_dirty_regions=false \
persist.sys.bluetooth.handsfree=hfp_wbs \
persist.sys.strictmode.disable=true \
ro.opengles.version=131072 \
ro.zygote.disable_gl_preload=true \
sys.io.scheduler=row \
wifi.interface=wlan0
# RIL
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.ril_class=SonyU8500RIL \
ro.telephony.ril.config=signalstrength \
ro.telephony.call_ring.multiple=false
# Audio
PRODUCT_PROPERTY_OVERRIDES += \
audio.offload.disable=1
# Force use old camera api
PRODUCT_PROPERTY_OVERRIDES += \
camera2.portability.force_api=1
# USB OTG support
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.isUsbOtgEnabled=true
# MultiUser for LowRamDevice
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.force_multiuser=true
# Garbage Collector type
PRODUCT_TAGS += dalvik.gc.type-precise
# ART
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-filter=interpret-only \
dalvik.vm.dex2oat-flags=--no-watch-dog \
dalvik.vm.image-dex2oat-filter=speed
# OpenDelta
#PRODUCT_PROPERTY_OVERRIDES += ro.delta.version=VERSION
#PRODUCT_PACKAGES += OpenDelta