diff options
author | Josh Yang <yzj@google.com> | 2022-05-12 18:10:26 -0700 |
---|---|---|
committer | Josh Yang <yzj@google.com> | 2022-05-13 17:03:22 +0000 |
commit | 86b08e5efdbf8563023a7525f79bae5cfed10da2 (patch) | |
tree | 17f7ae71ee94323b37ae6eaec60572e48f102620 | |
parent | e41474eae5e33aec01f17313a9e32c7d59297a81 (diff) | |
download | core-86b08e5efdbf8563023a7525f79bae5cfed10da2.tar.gz |
Update the encryption rule of /data/bootanim to DeleteIfNecessary
Directories should always be encrypted unless there is a specific reason
they can't be. /data/bootanim is unencrypted without a specific reason,
so fix it to be encrypted. It is too late to use encryption=Require.
However, the contents of this directory doesn't need to be preserved on
updates, so we can use encryption=DeleteIfNecessary instead of
encryption=Attempt.
Bug: 232299581
Test: build succeeds
Change-Id: Iae80043f3957a053d47ab4754c42b1fdc8e696b3
Merged-In: I17bcb901ad533cada4e0aa061196fc94d7b213ec
-rw-r--r-- | rootdir/init.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 0bd0e1d80..3e636cf12 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -973,7 +973,7 @@ on post-fs-data mkdir /data/media/obb 0770 media_rw media_rw encryption=Attempt # Create directories for boot animation. - mkdir /data/bootanim 0755 system system encryption=None + mkdir /data/bootanim 0755 system system encryption=DeleteIfNecessary exec_start derive_sdk |