From 56c2eaad923aa5dd9be2dec033ecfd445e3d51af Mon Sep 17 00:00:00 2001 From: Howard Chen Date: Fri, 25 Dec 2020 17:32:20 +0800 Subject: Create the backing file for the PersistentDataBlock In order to support the test harness mode in DSU. A copy-on-write mechanism is added to the system server to protect the on-device PersistentDataBlock from any modification. When running a DSU, all write operations are redirected to a backing file. This CL creates the backing file with rc file to get the correct se file label. Bug: 175852148 Test: gsi_tool install Change-Id: I739e28a4cbc36330e1ba39de0e8b7d5a111617f7 --- gsid.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsid.rc b/gsid.rc index 6b9663f..a5d6dd3 100644 --- a/gsid.rc +++ b/gsid.rc @@ -12,6 +12,8 @@ on post-fs mkdir /metadata/gsi/remount 0771 root system on post-fs-data + write /data/gsi_persistent_data 0 + chown system system /data/gsi_persistent_data mkdir /data/gsi 0700 root root encryption=None mkdir /data/gsi/dsu 0700 root root mkdir /data/gsi/ota 0700 root root -- cgit v1.2.3