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
diff --git a/device-oriole.mk b/device-oriole.mk
index 8c19639..f3d0f79 100644
--- a/device-oriole.mk
+++ b/device-oriole.mk
@@ -274,3 +274,6 @@
# 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-raven.mk b/device-raven.mk
index a3067f7..49fe1bc 100644
--- a/device-raven.mk
+++ b/device-raven.mk
@@ -293,3 +293,6 @@
# 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