How can I ensure that the file /data/misc/vold/user_keys/ce/0/current/keymaster_key_blob cannot be deleted?
I am an Android system engineer and currently need to modify the system on the Android 11 of the rk3568 platform. I have received feedback from customers that several devices cannot enter the system and are stuck in the boot animation interface. The analysis results show that this is because the file /data/misc/vold/user_keys/ce/0/current/keymaster_key_blob has been deleted. I want to ensure that this file is not deleted by modifying the permissions. I tried to modify the following code and then compile and flash the device, but it didn’t work. What should I do? Thank you