set vendor.per_boot.created flag after per_boot folder created.

set ro.vendor.qti.per_boot_created flag to let clients know that
/data/per_boot folder is created.

CRs-Fixed: 3762230
Change-Id: I65024ef6003193d68ec5494ba5812222e5388fbc
This commit is contained in:
Divyanand Rangu 2024-02-08 15:33:37 +05:30
parent a930524a57
commit b9859523b9
1 changed files with 1 additions and 0 deletions

View File

@ -1234,6 +1234,7 @@ on property:sys.boot_completed=1
# Setup per_boot directory so other .rc could start to use it on boot_completed
exec - system system -- /bin/rm -rf /data/per_boot
mkdir /data/per_boot 0700 system system encryption=Require key=per_boot_ref
setprop ro.vendor.qti.per_boot_created 1
# system server cannot write to /proc/sys files,
# and chown/chmod does not work for /proc/sys/ entries.