forked from CyanogenMod/android_device_sony_montblanc-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmontblanc.mk
90 lines (73 loc) · 4.64 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
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, device/sony/montblanc-common/recovery/recovery.mk)
$(call inherit-product-if-exists, vendor/sony/montblanc-common/montblanc-vendor-blobs.mk)
DEVICE_PACKAGE_OVERLAYS += device/sony/montblanc-common/overlay
# Permissions
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.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.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.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 \
frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/base/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/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/dbus.conf:system/etc/dbus.conf \
device/sony/montblanc-common/config/sysmon.cfg:system/etc/sysmon.cfg \
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/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
# 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/montblanc-common/config/init.rc:root/init.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
# Recovery bootstrap script
PRODUCT_COPY_FILES += \
device/sony/montblanc-common/recovery/bootrec:root/sbin/bootrec \
device/sony/montblanc-common/recovery/usbid_init.sh:root/sbin/usbid_init.sh \
device/sony/montblanc-common/recovery/postrecoveryboot.sh:root/sbin/postrecoveryboot.sh
# HW Configs
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:system/bin/install_wlan \
device/sony/montblanc-common/config/ste_modem.sh:system/etc/ste_modem.sh
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp \
wifi.interface=wlan0