-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.mk
192 lines (149 loc) · 4.67 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#
# Copyright (C) 2020 Android Open Source 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.
#
DEVICE_PATH := device/oneplus/denniz
# Installs gsi keys into ramdisk, to boot a GSI with verified boot.
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# VNDK
PRODUCT_EXTRA_VNDK_VERSIONS := 30
PRODUCT_SHIPPING_API_LEVEL := 30
# Call proprietary blob setup
$(call inherit-product-if-exists, vendor/oneplus/denniz/denniz-vendor.mk)
$(call inherit-product-if-exists, vendor/mediatek/ims/mtk-ims.mk)
# Dynamic Partition
PRODUCT_USE_DYNAMIC_PARTITIONS := true
PRODUCT_BUILD_SUPER_PARTITION := false
# Alert slider
PRODUCT_PACKAGES += \
alert-slider_daemon
# Boot animation
TARGET_SCREEN_HEIGHT := 2400
TARGET_SCREEN_WIDTH := 1080
# A/B
AB_OTA_UPDATER := false
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default
# CameraGo
PRODUCT_PACKAGES += \
CameraGo
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/permissions/privapp-permissions-camera-go.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-camera-go.xml
# fastbootd
PRODUCT_PACKAGES += \
fastbootd
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/vendor_overlay/etc/fstab.mt6893:$(TARGET_COPY_OUT_RAMDISK)/fstab.mt6893
# Fingerprint
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml
# HIDL
PRODUCT_PACKAGES += \
libhidltransport \
libhardware \
libhwbinder
# ImsInit hack
PRODUCT_PACKAGES += \
ImsInit
# Init
PRODUCT_PACKAGES += \
init.mt6893.rc
# Copy the kernel from the prebuilts directory.
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/Image.gz:kernel
# Keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/keylayout/touchpanel.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/touchpanel.kl
# Screen density
PRODUCT_AAPT_CONFIG := xxxhdpi
PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
# Lights
PRODUCT_PACKAGES += \
# NFC
#PRODUCT_SOONG_NAMESPACES += \
# vendor/nxp/opensource/sn100x
PRODUCT_PACKAGES += \
NfcNci \
com.android.nfc_extras \
com.gsma.services.nfc \
com.nxp.nfc.nq \
libnqnfc_nci_jni \
nfc_nci.nqx.default.hw \
NQNfcNci \
nqnfcee_access.xml \
nqnfcse_access.xml \
Tag \
SecureElement \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nci.conf \
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nxp.conf
PRODUCT_PACKAGES += \
OPFiles
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/OPFiles/privapp-permissions-op-files.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-op-files.xml \
# Overlays
PRODUCT_PACKAGES += \
FrameworkResOverlay \
SystemUIOverlay \
SettingsOverlay \
TelephonyOverlay \
SettingsLibOverlay
# Enforce RRO targets
PRODUCT_ENFORCE_RRO_TARGETS := *
# MTK IMS Overlays
PRODUCT_PACKAGES += \
mtk-ims \
mtk-ims-telephony
# Permissions
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/permissions/privapp-permissions-mediatek.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-mediatek.xml
# RcsService
PRODUCT_PACKAGES += \
com.android.ims.rcsmanager \
RcsService \
PresencePolling
# OnePlusParts
PRODUCT_PACKAGES += \
OnePlusParts \
parts.rc
# Sensors
PRODUCT_PACKAGES += \
[email protected]_denniz \
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(DEVICE_PATH)
# System prop
-include $(DEVICE_PATH)/system_prop.mk
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
# Vendor overlay
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/vendor_overlay/,$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/30/)
# Symbols
PRODUCT_PACKAGES += \
libshim_vtservice
PRODUCT_PACKAGES += \
ImsServiceBase
# Wi-Fi
PRODUCT_PACKAGES += \
TetheringConfigOverlay \
WifiOverlay