I want to write test file to SDCard with Android 11, I close selinux with "adb shell setenforce 0", but fopen() will give errno 13 error,how to fix it? Thanks.
Asked
Active
Viewed 225 times
1 Answers
0
With selinux as permissive, you also need to check if the HAL executable has appropriate permissions to be able to create a file in the destination path. Check username and group name for HAL executable and the destination path.
For example: if HAL executable has 'system' user, /data/<file-name.extn> can be used as destination which has both user and group as 'system'.

user3090306
- 11
- 2