From 98c7f943083f7b4ebbe67904d9bb73d1513c9840 Mon Sep 17 00:00:00 2001 From: Andrii Kulian Date: Wed, 12 Apr 2023 05:09:28 +0000 Subject: [PATCH] Disable Settings large-screen optimization Disable the optimization that is automatically enabled when including Window Extensions through Activity Embedding. The optimization causes to launch an additional trampoline activity for deep links, even when the screen size is smaller than required by Activity Embedding rules. Bug: 267725145 Test: Build, perf metrics Change-Id: I3310b63f655c3b859ab294b9174eb1be12cb6392 --- device-cheetah.mk | 3 +++ device-panther.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/device-cheetah.mk b/device-cheetah.mk index 93952fc..2f99f02 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -376,3 +376,6 @@ PRODUCT_COPY_FILES += \ # Window Extensions $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) +# Disable Settings large-screen optimization enabled by Window Extensions +PRODUCT_SYSTEM_PROPERTIES += \ + persist.sys.fflag.override.settings_support_large_screen=false diff --git a/device-panther.mk b/device-panther.mk index 0c25c51..a210489 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -359,3 +359,6 @@ PRODUCT_COPY_FILES += \ # Window Extensions $(call inherit-product, $(SRC_TARGET_DIR)/product/window_extensions.mk) +# Disable Settings large-screen optimization enabled by Window Extensions +PRODUCT_SYSTEM_PROPERTIES += \ + persist.sys.fflag.override.settings_support_large_screen=false