forked from CarbonROM/android_device_sony_common-treble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
treble.mk
192 lines (157 loc) · 5.63 KB
/
treble.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) 2017 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.
### build/make/target/product/treble_common.mk
# Split build properties
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
# Split selinux policy
PRODUCT_FULL_TREBLE_OVERRIDE := true
# The Messaging app:
# Needed for android.telecom.cts.ExtendedInCallServiceTest#testOnCannedTextResponsesLoaded
PRODUCT_PACKAGES += \
messaging
# All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK)
PRODUCT_PACKAGES += vndk_package
# SP-NDK:
PRODUCT_PACKAGES += \
libvulkan \
# Audio:
USE_XML_AUDIO_POLICY_CONF := 1
# The following policy XML files are used as fallback for
# vendors/devices not using XML to configure audio policy.
PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:system/etc/audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:system/etc/primary_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:system/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \
# Bluetooth:
# audio.a2dp.default is a system module. Generic system image includes
# audio.a2dp.default to support A2DP if board has the capability.
PRODUCT_PACKAGES += \
audio.a2dp.default
# Net:
# Vendors can use the platform-provided network configuration utilities (ip,
# iptable, etc.) to configure the Linux networking stack, but these utilities
# do not yet include a HIDL interface wrapper. This is a solution on
# Android O.
PRODUCT_PACKAGES += \
netutils-wrapper-1.0
### build/make/target/product/treble_common_64.mk
# For now this will allow 64-bit apps, but still compile all apps with JNI
# for 32-bit only.
# Copy different zygote settings for vendor.img to select by setting property
# ro.zygote=zygote64_32 or ro.zygote=zygote32_64:
# 1. 64-bit primary, 32-bit secondary OR
# 2. 32-bit primary, 64-bit secondary
# 3. 64-bit only is currently forbidden (b/64280459#comment6)
PRODUCT_COPY_FILES += \
system/core/rootdir/init.zygote64_32.rc:root/init.zygote64_32.rc \
system/core/rootdir/init.zygote32_64.rc:root/init.zygote32_64.rc
TARGET_SUPPORTS_32_BIT_APPS := true
TARGET_SUPPORTS_64_BIT_APPS := true
### DEPENDENCIES
PRODUCT_PACKAGES += \
libaudioroute \
libaudioutils \
libavservices_minijail \
libminijail
PRODUCT_PACKAGES += \
### SERVICES
# RENDERSCRIPT
PRODUCT_PACKAGES += \
# GRAPHICS
PRODUCT_PACKAGES += \
# MEMTRACK
PRODUCT_PACKAGES += \
# CONFIGSTORE
PRODUCT_PACKAGES += \
# AUDIO
PRODUCT_PACKAGES += \
# CAMERA
PRODUCT_PACKAGES += \
# WIFI
PRODUCT_PACKAGES += \
# BLUETOOTH
PRODUCT_PACKAGES += \
# NFC
PRODUCT_PACKAGES += \
# GNSS
PRODUCT_PACKAGES += \
# LIGHT
PRODUCT_PACKAGES += \
# SENSORS
PRODUCT_PACKAGES += \
# DRM
PRODUCT_PACKAGES += \
# USB
PRODUCT_PACKAGES += \
# THERMAL
PRODUCT_PACKAGES += \
# POWER
PRODUCT_PACKAGES += \
# HEALTH
PRODUCT_PACKAGES += \
# VIBRATOR
PRODUCT_PACKAGES += \
# VR
PRODUCT_PACKAGES += \
# RADIO
PRODUCT_PACKAGES += \