init: Remove encryption=DeleteIfNecessary from /data/misc/bootanim

/data/misc already sets encryption=Require and this causes certain
devices not being able to boot with the following error:

init: Failed to set encryption policy of /data/misc/bootanim to
    a5a40d896b46d8c6 v1 modes 127/4 flags 0x0: The directory already
    has a different encryption policy.
init: Setting a5a40d896b46d8c6 policy on /data/misc/bootanim failed!
init: Setting policy failed, deleting: /data/misc/bootanim
init: Failed to set encryption policy of /data/misc/bootanim to
    a5a40d896b46d8c6 v1 modes 127/4 flags 0x0: The directory already
    has a different encryption policy.
init: Setting a5a40d896b46d8c6 policy on /data/misc/bootanim failed!
init: Rebooting into recovery
init: Got shutdown_command 'reboot,recovery' Calling
    HandlePowerctlMessage()

Test: m; fastboot flashall, observe device boots successfully
Change-Id: I86a2b2b8fe8e438ca405a0e901739d11550d3ebd
This commit is contained in:
Michael Bestas 2024-04-04 18:48:47 +03:00
parent bf33268695
commit 867f0ada9a
No known key found for this signature in database
GPG key ID: F2D6C348F85577F5

View file

@ -1031,7 +1031,7 @@ on post-fs-data
perform_apex_config
# Create directories for boot animation.
mkdir /data/misc/bootanim 0755 system system encryption=DeleteIfNecessary
mkdir /data/misc/bootanim 0755 system system
exec_start derive_sdk