Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1039f9a authored by Josh Yang's avatar Josh Yang
Browse files

Change 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 success
Change-Id: I17bcb901ad533cada4e0aa061196fc94d7b213ec
parent 93a8fc21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -961,7 +961,7 @@ on post-fs-data
    exec - media_rw media_rw -- /system/bin/chattr +F /data/media

    # 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