From 98d3e27812ae4e29621f3f25c41731c4edb677ea Mon Sep 17 00:00:00 2001 From: Howard Chen Date: Mon, 24 Apr 2023 14:48:44 +0800 Subject: [PATCH] Allow gsid to create alternative installation directory Bug: 275484855 Test: adb shell gsi_tool install -n -w \ --gsi-size $(du -b system.raw|cut -f1) \ --install-dir /data/gsi/oem --userdata-size 8589934592 < system.raw Change-Id: I46aa48fafec2f3845fa1a5139afb8c03db6b0d4e --- private/gsid.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private/gsid.te b/private/gsid.te index e795cea57..9391016c4 100644 --- a/private/gsid.te +++ b/private/gsid.te @@ -150,7 +150,7 @@ allow gsid gsi_public_metadata_file:file relabelto; allow gsid { gsi_data_file ota_image_data_file -}:dir rw_dir_perms; +}:dir create_dir_perms; allow gsid { gsi_data_file ota_image_data_file