-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.mk
91 lines (72 loc) · 3.1 KB
/
device.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
LOCAL_PATH := device/jiayu/s3_h560
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal xhdpi xxhdpi
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Recovery allowed devices
TARGET_OTA_ASSERT_DEVICE := JY-S3_ADV,h560,s3_h560,32_h560,s3_32_h560,JY-S3_ADV_32
PRODUCT_PACKAGES += \
libstlport
# Lights
PRODUCT_PACKAGES += \
lights.mt6752
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/audio_device.xml:system/etc/audio_device.xml \
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \
$(LOCAL_PATH)/configs/audio/a2dp_audio_policy_configuration.xml:/system/etc/a2dp_audio_policy_configuration.xml
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
# Bluetooth
PRODUCT_PACKAGES += \
libbt-vendor
# Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/factory_init.project.rc:root/factory_init.project.rc \
$(LOCAL_PATH)/rootdir/factory_init.rc:root/factory_init.rc \
$(LOCAL_PATH)/rootdir/fstab.mt6752:root/fstab.mt6752 \
$(LOCAL_PATH)/rootdir/init.modem.rc:root/init.modem.rc \
$(LOCAL_PATH)/rootdir/init.mt6752.rc:root/init.mt6752.rc \
$(LOCAL_PATH)/rootdir/init.mt6752.usb.rc:root/init.mt6752.usb.rc \
$(LOCAL_PATH)/rootdir/meta_init.modem.rc:root/meta_init.modem.rc \
$(LOCAL_PATH)/rootdir/meta_init.project.rc:root/meta_init.project.rc \
$(LOCAL_PATH)/rootdir/meta_init.rc:root/meta_init.rc \
$(LOCAL_PATH)/rootdir/init.performance.rc:root/init.performance.rc \
$(LOCAL_PATH)/rootdir/ueventd.mt6752.rc:root/ueventd.mt6752.rc \
$(LOCAL_PATH)/rootdir/init.recovery.mt6752.rc:root/init.recovery.mt6752.rc
# TWRP
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/etc/twrp.fstab:recovery/root/etc/twrp.fstab
# Thermal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal/.ht120.mtc:system/etc/.tp/.ht120.mtc \
$(LOCAL_PATH)/configs/thermal/thermal.conf:system/etc/.tp/thermal.conf \
$(LOCAL_PATH)/configs/thermal/thermal.off.conf:system/etc/.tp/thermal.off.conf
# Charger
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
ro.mount.fs=EXT4
# NFC
PRODUCT_PACKAGES += \
com.android.nfc_extras \
libmtknfc_dynamic_load_jni \
libnfc_mt6605_jni \
Nfc \
Tag
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
# Camera
PRODUCT_PROPERTY_OVERRIDES += \
media.stagefright.legacyencoder=true \
media.stagefright.less-secure=true
PRODUCT_PACKAGES += \
fs_config_files
# Dalvik/HWUI
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
# Common stuff
$(call inherit-product, vendor/mad/config/common.mk)
# Vendor
$(call inherit-product, vendor/jiayu/s3_h560/s3_h560-vendor.mk)