forked from XNovathor/android_device_sony_montblanc-common
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmontblanc.mk
155 lines (130 loc) · 6.34 KB
/
montblanc.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
# Inherit from AOSP
$(call inherit-product, build/target/product/languages_full.mk)
# ste-sony
$(call inherit-product, hardware/ste-sony/common.mk)
# gApps binaries
$(call inherit-product-if-exists, vendor/google/gapps.mk)
# Inherit from the vendor common montblanc definitions
$(call inherit-product-if-exists, vendor/sony/montblanc-common/montblanc-common-vendor.mk)
# Common montblanc headers
TARGET_SPECIFIC_HEADER_PATH := device/sony/montblanc-common/include
# Common montblanc settings overlays
DEVICE_PACKAGE_OVERLAYS += device/sony/montblanc-common/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 \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
# Configuration files
PRODUCT_COPY_FILES += \
device/sony/montblanc-common/config/media_codecs.xml:system/etc/media_codecs.xml \
device/sony/montblanc-common/config/egl.cfg:system/lib/egl/egl.cfg \
device/sony/montblanc-common/config/asound.conf:system/etc/asound.conf \
device/sony/montblanc-common/config/hostapd.conf:system/etc/wifi/hostapd.conf \
device/sony/montblanc-common/config/01stesetup:system/etc/init.d/01stesetup \
device/sony/montblanc-common/config/10wireless:system/etc/init.d/10wireless \
device/sony/montblanc-common/config/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/sony/montblanc-common/config/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf
# Edit crda for st-ericsson
# CRDA
PRODUCT_PACKAGES += \
crda \
regdbdump \
regulatory.bin \
intersect \
linville.key.pub.pem \
85-regulatory.rules
# KitKat Launcher
PRODUCT_PACKAGES += Launcher3
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs \
e2fsck
# libtinyalsa & audio.usb.default
PRODUCT_PACKAGES += \
tinyalsa \
libtinyalsa \
audio_policy.default \
audio.usb.default
# libaudioparameter
PRODUCT_PACKAGES += libaudioparameter
# Hostapd
PRODUCT_PACKAGES += \
hostapd_cli \
hostapd
# File Manager
PRODUCT_PACKAGES += CMFileManager
# Torch
PRODUCT_PACKAGES += OmniTorch
# Music & DSP
PRODUCT_PACKAGES += \
Apollo \
DSPManager \
audio_effects.conf \
libcyanogen-dsp
# Sim tool Kit
PRODUCT_PACKAGES += Stk
# FM Radio
# We must adapt Qualcomm FM Radio app
# Misc
PRODUCT_PACKAGES += com.android.future.usb.accessory
# 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
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.debuggable=1 \
ro.secure=0 \
ro.adb.secure=0 \
ro.allow.mock.location=0 \
persist.sys.usb.config=adb
# Custom init scripts
PRODUCT_COPY_FILES += \
device/sony/montblanc-common/config/init.rc:root/init.rc \
device/sony/montblanc-common/config/init.environ.rc:root/init.environ.rc \
device/sony/montblanc-common/config/init.st-ericsson.rc:root/init.st-ericsson.rc \
device/sony/montblanc-common/config/ueventd.st-ericsson.rc:root/ueventd.st-ericsson.rc \
external/koush/Superuser/init.superuser.rc:root/init.superuser.rc
# Post recovery script
PRODUCT_COPY_FILES += \
device/sony/montblanc-common/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh
# Hardware configuration scripts
PRODUCT_COPY_FILES += \
device/sony/montblanc-common/config/omxloaders:system/etc/omxloaders \
device/sony/montblanc-common/config/ril_config:system/etc/ril_config \
device/sony/montblanc-common/config/install_wlan.sh:system/bin/install_wlan.sh \
device/sony/montblanc-common/config/ste_modem.sh:system/etc/ste_modem.sh \
device/sony/montblanc-common/config/gps.conf:system/etc/gps.conf \
device/sony/montblanc-common/config/cacert.txt:system/etc/suplcert/cacert.txt
# Garbage Collector type
PRODUCT_TAGS += dalvik.gc.type-precise