-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
120 lines (97 loc) · 4.92 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
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
LOCAL_PATH := device/motorola/woods
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal xhdpi xxhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
# Recovery allowed devices
TARGET_OTA_ASSERT_DEVICE := woods,woods_f,Moto_E4,Moto E4,e4
# Lights
PRODUCT_PACKAGES += \
lights.mt6737m
PRODUCT_PACKAGES += \
fingerprint.default
# Power
PRODUCT_PACKAGES += \
power.mt6737m
#wpa_client
PRODUCT_PACKAGES += \
libwpa_client
# MTK stuff
BOARD_USES_MTK_HARDWARE := true
# Disable adb security
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
ro.mount.fs=EXT4 \
ro.adb.secure=0 \
ro.secure=0 \
ro.allow.mock.location=0 \
ro.debuggable=1 \
persist.service.acm.enable=0 \
ro.config.low_ram=false
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=0
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
ADDITIONAL_DEFAULT_PROPERTIES += persist.service.adb.enable=1
# 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
# permissions from Motorola
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/moto/com.motorola.actions.perdefs.2017.xml:system/etc/com.motorola.actions.perdefs.2017.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.camera.xml:system/etc/com.motorola.camera.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.cameraone.xml:system/etc/com.motorola.cameraone.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.launcher3.xml:system/etc/com.motorola.launcher3.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.moto.xml:system/etc/com.motorola.moto.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.motodisplay.xml:system/etc/com.motorola.motodisplay.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.motokey.xml:system/etc/com.motorola.motokey.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.motosignature.xml:system/etc/com.motorola.motosignature.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.permission.diag.xml:system/etc/com.motorola.permission.diag.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.software.fmplayermtk.xml:system/etc/com.motorola.software.fmplayermtk.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.software.storageoptimizer.xml:system/etc/com.motorola.software.storageoptimizer.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.software.x_line.xml:system/etc/com.motorola.software.x_line.xml \
$(LOCAL_PATH)/configs/moto/com.motorola.timeweatherwidget.library.xml:system/etc/com.motorola.timeweatherwidget.library.xml
# Keyboard layout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/mtk-kpd.kl:system/usr/keylayout/mtk-kpd.kl \
$(LOCAL_PATH)/configs/ACCDET.kl:system/usr/keylayout/ACCDET.kl \
# Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/factory_init.connectivity.rc:root/factory_init.project.connectivity.rc \
$(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/factory_init.usb.rc:root/factory_init.usb.rc \
$(LOCAL_PATH)/rootdir/fstab.mt6735:root/fstab.mt6735 \
$(LOCAL_PATH)/rootdir/init.connectivity.rc:root/init.connectivity.rc \
$(LOCAL_PATH)/rootdir/init.microtrust.rc:root/init.microtrust.rc \
$(LOCAL_PATH)/rootdir/init.modem.rc:root/init.modem.rc \
$(LOCAL_PATH)/rootdir/init.mt6735.rc:root/init.mt6735.rc \
$(LOCAL_PATH)/rootdir/init.mt6735.usb.rc:root/init.mt6735.usb.rc \
$(LOCAL_PATH)/rootdir/init.project.rc:root/init.project.rc \
$(LOCAL_PATH)/rootdir/init.rilproxy.rc:root/init.rilproxy.rc \
$(LOCAL_PATH)/rootdir/init.volte.rc:root/init.volte.rc \
$(LOCAL_PATH)/rootdir/ueventd.mt6735.rc:root/ueventd.mt6735.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/vendor/etc/.tp/.ht120.mtc \
$(LOCAL_PATH)/configs/thermal/thermal.conf:system/vendor/etc/.tp/thermal.conf \
$(LOCAL_PATH)/configs/thermal/thermal.off.conf:system/vendor/etc/.tp/thermal.off.conf \
$(LOCAL_PATH)/configs/thermal/.thermal_policy_00:system/vendor/etc/.tp/.thermal_policy_00
# Fingerprint
PRODUCT_PACKAGES += \
fingerprintd
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml
# Dalvik/HWUI
PRODUCT_TAGS += dalvik.gc.type-precise
$(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/motorola/woods/woods-vendor.mk)