1PRODUCT_COPY_FILES += \
2      hardware/google/pixel/common/init.pixel.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.pixel.rc
3
4BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/common/vendor
5SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/common/system_ext
6
7# Enable atrace categories and tools for pixel devices
8PRODUCT_PACKAGES += \
9    atrace_categories.txt.pixel \
10    dmabuf_dump
11
12# fastbootd
13PRODUCT_PACKAGES += \
14    fastbootd
15
16# Enable RKP support
17PRODUCT_PRODUCT_PROPERTIES += \
18    remote_provisioning.hostname=remoteprovisioning.googleapis.com
19
20# Pixel Experience
21
22ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
23ifeq (,$(filter aosp_%,$(TARGET_PRODUCT)))
24PRODUCT_PACKAGES_DEBUG += wifi_diagnostic
25BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/wifi_diagnostic
26endif
27endif
28
29PRODUCT_PACKAGES_DEBUG += wifi_sniffer
30BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/wifi_sniffer
31
32PRODUCT_PACKAGES_DEBUG += wifi_perf_diag
33BOARD_VENDOR_SEPOLICY_DIRS += hardware/google/pixel-sepolicy/wifi_perf_diag
34
35# Enable whole-program R8 Java optimizations for SystemUI and system_server,
36# but also allow explicit overriding for testing and development.
37SYSTEM_OPTIMIZE_JAVA ?= true
38SYSTEMUI_OPTIMIZE_JAVA ?= true
39
40# Exclude features that are not available on AOSP devices.
41ifneq (,$(filter aosp_%,$(TARGET_PRODUCT)))
42PRODUCT_COPY_FILES += \
43    frameworks/native/data/etc/aosp_excluded_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/aosp_excluded_hardware.xml
44endif
45
46# Preopt SystemUI
47PRODUCT_DEXPREOPT_SPEED_APPS += SystemUIGoogle  # For internal
48PRODUCT_DEXPREOPT_SPEED_APPS += SystemUI        # For AOSP
49
50# Compile SystemUI on device with `speed`.
51PRODUCT_PROPERTY_OVERRIDES += \
52    dalvik.vm.systemuicompilerfilter=speed
53
54# Virtual fingerprint HAL
55PRODUCT_PACKAGES += com.android.hardware.biometrics.fingerprint.virtual
56
57# Virtual face HAL
58PRODUCT_PACKAGES += com.android.hardware.biometrics.face.virtual
59
60# AI Labs artifacts
61ifeq ($(RELEASE_INSTALL_AI_LABS_ARTIFACTS), true)
62  include vendor/google/AILabs/ai_labs.mk
63endif
64