summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Chen <howardsoc@google.com>2020-12-25 17:32:20 +0800
committerHoward Chen <howardsoc@google.com>2021-03-10 12:56:15 +0800
commit56c2eaad923aa5dd9be2dec033ecfd445e3d51af (patch)
treef238320a40929d02fa4ff39590f965dac6dc1175
parent5c3e9480060a8bfb9ee3e5e48fadbcd50778922a (diff)
downloadgsid-56c2eaad923aa5dd9be2dec033ecfd445e3d51af.tar.gz
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
-rw-r--r--gsid.rc2
1 files changed, 2 insertions, 0 deletions
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