-
Notifications
You must be signed in to change notification settings - Fork 9
/
cancro.mk
81 lines (65 loc) · 3.2 KB
/
cancro.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
DEVICE_PATH := device/xiaomi/cancro
$(call inherit-product, device/xiaomi/msm8974-common/msm8974-common.mk)
$(call inherit-product, vendor/xiaomi/cancro/cancro-vendor.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/overlay
# System properties
-include $(DEVICE_PATH)/system_prop.mk
# Audio
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/audio/diracmobile.config:system/vendor/etc/diracmobile.config \
$(DEVICE_PATH)/audio/diracmobile_4.config:system/vendor/etc/diracmobile_4.config \
$(DEVICE_PATH)/audio/mixer_paths.xml:system/vendor/etc/mixer_paths.xml \
$(DEVICE_PATH)/audio/mixer_paths_4.xml:system/vendor/etc/mixer_paths_4.xml \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_Bluetooth_cal.acdb:system/etc/acdbdata/MTP/MTP_Bluetooth_cal.acdb \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_General_cal.acdb:system/etc/acdbdata/MTP/MTP_General_cal.acdb \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_Global_cal.acdb:system/etc/acdbdata/MTP/MTP_Global_cal.acdb \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_Handset_cal.acdb:system/etc/acdbdata/MTP/MTP_Handset_cal.acdb \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_Hdmi_cal.acdb:system/etc/acdbdata/MTP/MTP_Hdmi_cal.acdb \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_Headset_cal.acdb:system/etc/acdbdata/MTP/MTP_Headset_cal.acdb \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_Speaker_cal.acdb:system/etc/acdbdata/MTP/MTP_Speaker_cal.acdb \
$(DEVICE_PATH)/audio/acdb/MTP/MTP_Speaker_cal_4.acdb:system/etc/acdbdata/MTP/MTP_Speaker_cal_4.acdb
# Device check
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/releasetools/device_check.sh:install/bin/device_check.sh
# FM Radio
PRODUCT_PACKAGES += \
FMRadio \
libfmjni
PRODUCT_PACKAGES += \
init.qcom.fm.sh
# NFC
PRODUCT_PACKAGES += \
nfc_nci.bcm2079x.default \
NfcNci \
Tag
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/vendor/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/vendor/etc/permissions/android.hardware.nfc.xml \
$(DEVICE_PATH)/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf \
$(DEVICE_PATH)/nfc/libnfc-nci-20791b05.conf:system/etc/libnfc-nci-20791b05.conf \
$(DEVICE_PATH)/nfc/nfcee_access_debug.xml:system/etc/nfcee_access.xml
# IR
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.consumerir.xml:system/vendor/etc/permissions/android.hardware.consumerir.xml
# KeyLayout
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/keylayout/gpio-keys.kl:system/vendor/usr/keylayout/gpio-keys.kl \
$(DEVICE_PATH)/keylayout/synaptics_dsx.kl:system/vendor/usr/keylayout/synaptics_dsx.kl
# Ramdisk
PRODUCT_PACKAGES += \
ueventd.qcom.rc
# Sensor
PRODUCT_PACKAGES += \
sensors.msm8974
# Touch
PRODUCT_PACKAGES += \
# WiFi
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:system/vendor/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin \
$(DEVICE_PATH)/wifi/WCNSS_qcom_wlan_nv_x4.bin:system/vendor/firmware/wlan/prima/WCNSS_qcom_wlan_nv_x4.bin \
$(DEVICE_PATH)/wifi/WCNSS_qcom_wlan_nv_x4lte.bin:system/vendor/firmware/wlan/prima/WCNSS_qcom_wlan_nv_x4lte.bin