-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
124 lines (104 loc) · 3.71 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
121
122
123
124
#
# Copyright 2020 The Android Open Source Project
# Copyright (C) 2020 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := device/oppo/CPH1859
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
# Display
PRODUCT_PACKAGES += \
libhwc2on1adapter \
libhwc2onfbadapter
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
ifneq ($(findstring lineage, $(TARGET_PRODUCT)),)
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage
endif
# Keyboard layout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/ACCDET.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/ACCDET.kl \
$(LOCAL_PATH)/keylayout/mtk-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-kpd.kl
# Permissions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/permissions/privapp-permissions-mediatek.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-mediatek.xml
# Misc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/misc/factory.ini:$(TARGET_COPY_OUT_SYSTEM)/etc/factory.ini \
$(LOCAL_PATH)/misc/custom.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/custom.conf
# Init
PRODUCT_PACKAGES += \
fstab.mt6771 \
init.target.rc
# DRM
PRODUCT_PACKAGES += \
# Camera
PRODUCT_PACKAGES += \
Snap
# Health
PRODUCT_PACKAGES += \
# HIDL
PRODUCT_PACKAGES += \
[email protected]_system \
[email protected]_system
# Vibrator
PRODUCT_PACKAGES += \
# USB
PRODUCT_PACKAGES += \
# Thermal
PRODUCT_PACKAGES += \
#WiFi
PRODUCT_PACKAGES += \
hostapd \
libwpa_client \
libwifi-hal \
wpa_supplicant \
wpa_supplicant.conf
# Seccomp
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/seccomp/[email protected]:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/[email protected] \
$(LOCAL_PATH)/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
$(LOCAL_PATH)/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
# Trust HAL
PRODUCT_PACKAGES += \
# Get non-open-source specific aspects
$(call inherit-product, vendor/oppo/CPH1859/CPH1859-vendor.mk)