-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevice-custom.mk
258 lines (216 loc) · 7.48 KB
/
device-custom.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
#
# Copyright (C) 2021 The Android Open Source Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Authsecret
PRODUCT_PACKAGES += \
# AV media
PRODUCT_PACKAGES += \
[email protected]:32 \
libcodec2_vndk.vendor:64 \
libmediaplayerservice \
libstagefright_httplive:64
# Bluetooth
PRODUCT_PACKAGES += \
# Camera
PRODUCT_PACKAGES += \
GcamPrebuilt
# Camera Extensions
PRODUCT_PRODUCT_PROPERTIES += \
ro.vendor.camera.extensions.package=com.google.android.apps.camera.services \
ro.vendor.camera.extensions.service=com.google.android.apps.camera.services.extensions.service.PixelExtensions
# Context Hub Runtime Environment
PRODUCT_PACKAGES += \
chre
# Cppbor
PRODUCT_PACKAGES += \
libcppbor.vendor:64 \
libcppbor_external \
libcppcose_rkp
# Display
PRODUCT_PACKAGES += \
libdisplayconfig \
PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware.egl=adreno \
ro.hardware.vulkan=adreno
# DRM
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true \
media.mediadrmservice.enable=true
PRODUCT_PACKAGES += \
libdrm.vendor \
# Dex to make OTA go faster
PRODUCT_VENDOR_PROPERTIES += \
dalvik.vm.boot-dex2oat-cpu-set=1,2,3,4,5,6,7 \
dalvik.vm.boot-dex2oat-threads=7 \
dalvik.vm.image-dex2oat-cpu-set=0,1,2,3,4,5,6,7 \
dalvik.vm.image-dex2oat-threads=8
# Elmyra
PRODUCT_PACKAGES += \
ElmyraService
# EUICC
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.telephony.euicc.xml
# FingerPrint
PRODUCT_PACKAGES += \
# Gatekeeper
PRODUCT_PACKAGES += \
# Google Assistant
PRODUCT_PRODUCT_PROPERTIES += ro.opa.eligible_device=true
# HIDL
PRODUCT_PACKAGES += \
libhidltransport.vendor \
libhwbinder.vendor
# Light
PRODUCT_PACKAGES += \
# Identity
PRODUCT_PACKAGES += \
android.hardware.identity_credential.xml \
android.hardware.identity-support-lib \
android.hardware.identity-support-lib.vendor
# Keymaster
PRODUCT_PACKAGES += \
android.hardware.identity-support-lib.vendor:64 \
libcppbor.vendor:64 \
libcppbor_external \
libcppcose_rkp \
libkeymaster_messages.vendor:64 \
libkeymaster_portable.vendor:64 \
libnos:64 \
libnos_client_citadel:64 \
libnos_datagram:64 \
libnos_datagram_citadel:64 \
libnosprotos:64 \
libnos_transport:64 \
libpuresoftkeymasterdevice.vendor:64 \
libteeui_hal_support.vendor:64 \
nos_app_avb:64 \
nos_app_identity:64 \
nos_app_keymaster:64 \
nos_app_weaver:64 \
# NDK Platform backend
PRODUCT_PACKAGES += \
android.frameworks.stats-V1-ndk_platform.vendor:64 \
android.hardware.identity-V3-ndk_platform.vendor:64 \
android.hardware.keymaster-V3-ndk_platform.vendor:64 \
android.hardware.power-V1-ndk_platform.vendor:64 \
android.hardware.rebootescrow-V1-ndk_platform.vendor:64
# Netd
PRODUCT_PACKAGES += \
# NeuralNetwork
PRODUCT_PACKAGES += \
# NowPlaying
PRODUCT_PACKAGES += \
NowPlayingOverlay
# Nxp
PRODUCT_PACKAGES += \
ese_spi_nxp:64
# OEMLock
PRODUCT_PACKAGES += \
# Overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-custom
ifeq ($(CUSTOM_BUILD), crosshatch)
PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
device/google/crosshatch/crosshatch/overlay-custom/frameworks/base/packages/overlays/NoCutoutOverlay
endif
# Perf
PRODUCT_PACKAGES += \
# Permissions
# NOTE: Used to deal with permission issues caused by Gapps updates
PRODUCT_COPY_FILES += \
device/google/crosshatch/permissions/pixel_permissions_product.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/pixel_permissions_product.xml
# Radio
PRODUCT_PACKAGES += \
CarrierConfigOverlay
PRODUCT_PACKAGES += \
# Sensor
PRODUCT_PACKAGES += \
libsensorndkbridge:64 \
# Utilities
PRODUCT_PACKAGES += \
libjson \
libprotobuf-cpp-full-3.9.1-vendorcompat \
libprotobuf-cpp-lite-3.9.1-vendorcompat \
libtinyxml \
libz_stable \
pixelatoms-cpp \
thermal_symlinks
PRODUCT_COPY_FILES += \
prebuilts/vndk/v29/arm/arch-arm-armv7-a-neon/shared/vndk-core/libprotobuf-cpp-full.so:$(TARGET_COPY_OUT_VENDOR)/lib/libprotobuf-cpp-full.so \
prebuilts/vndk/v29/arm64/arch-arm64-armv8-a/shared/vndk-core/libprotobuf-cpp-full.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libprotobuf-cpp-full.so
# Weaver
PRODUCT_PACKAGES += \
# WiFi
PRODUCT_PACKAGES += \
libwifi-hal:64 \
libwifi-hal-qcom
# Keymaster
PRODUCT_COPY_FILES += \
prebuilts/vndk/v33/arm/arch-arm-armv7-a-neon/shared/vndk-core/android.hardware.keymaster-V3-ndk.so:$(TARGET_COPY_OUT_VENDOR)/lib/android.hardware.keymaster-V3-ndk.so \
prebuilts/vndk/v33/arm64/arch-arm64-armv8-a/shared/vndk-core/android.hardware.keymaster-V3-ndk.so:$(TARGET_COPY_OUT_VENDOR)/lib64/android.hardware.keymaster-V3-ndk.so
# Rebootescrow
PRODUCT_COPY_FILES += \
prebuilts/vndk/v33/arm/arch-arm-armv7-a-neon/shared/vndk-core/android.hardware.rebootescrow-V1-ndk.so:$(TARGET_COPY_OUT_VENDOR)/lib/android.hardware.rebootescrow-V1-ndk.so \
prebuilts/vndk/v33/arm64/arch-arm64-armv8-a/shared/vndk-core/android.hardware.rebootescrow-V1-ndk.so:$(TARGET_COPY_OUT_VENDOR)/lib64/android.hardware.rebootescrow-V1-ndk.so
# Identity
PRODUCT_PACKAGES += \
android.hardware.identity-V5-ndk.vendor
# Thermal
PRODUCT_PACKAGES += \