g12-common: Prefer 'cache' backing storage
authorBruno Martins <bgcngm@gmail.com>
Tue, 26 Dec 2023 17:21:50 +0000 (17:21 +0000)
committerBruno Martins <bgcngm@gmail.com>
Thu, 28 Dec 2023 10:54:12 +0000 (10:54 +0000)
Android 14 allows using /cache as scratch partition. This applies only
to non-A/B devices and provides much faster overlayfs setup.

Change-Id: Iac5e86a9ca5ecd9d72840e753ea4a58c71079917

BoardConfigCommon.mk
system.prop [new file with mode: 0644]

index 5a1151548691538c214315507b637c9c122aa6e3..3866c2012569a5056082be2acf76f77bc2ca85a4 100644 (file)
@@ -42,6 +42,7 @@ endif
 
 ## Properties
 TARGET_PRODUCT_PROP += $(COMMON_PATH)/product.prop
+TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
 TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop
 
 ## Recovery
diff --git a/system.prop b/system.prop
new file mode 100644 (file)
index 0000000..696ec2a
--- /dev/null
@@ -0,0 +1,2 @@
+## Filesystem
+fs_mgr.overlayfs.prefer_cache_backing_storage=true