1# 2# Copyright (C) 2020 The Android Open-Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk) 18 19PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.enabled=true 20PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.userspace.snapshots.enabled=true 21PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.batch_writes=true 22 23# Optional assignment. On low memory devices, disabling io_uring can relieve cpu and memory 24# pressure during an OTA. 25PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.io_uring.enabled?=true 26 27# Enabling this property, will improve OTA install time 28# but will use an additional CPU core 29# PRODUCT_VENDOR_PROPERTIES += ro.virtual_ab.compression.threads=true 30 31PRODUCT_VIRTUAL_AB_COMPRESSION := true 32PRODUCT_PACKAGES += \ 33 snapuserd.vendor_ramdisk \ 34 snapuserd \ 35 snapuserd.recovery 36