From 028f6719f3467cdaf05a1330c9755de19c891516 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Thu, 20 May 2021 23:13:59 -0700 Subject: [PATCH] Enable --readonly for system compression This option is to reduce system partition size. Bug: 171942852 Signed-off-by: Jaegeuk Kim Change-Id: Idc849cfce33ac0badb2b9b7953bb821c46a24472 --- tools/releasetools/build_image.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index 2492da987..0391af2eb 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py @@ -357,6 +357,7 @@ def BuildImageMkfs(in_dir, prop_dict, out_file, target_out, fs_config): if (needs_compress or prop_dict.get("system_fs_compress") == "true"): build_command.append("--compression") if (prop_dict.get("system_fs_compress") == "true"): + build_command.append("--readonly") build_command.append("--sldc") if (prop_dict.get("system_f2fs_sldc_flags") == None): build_command.append(str(0))