Something is basically pretty messed up on my phone. It looks like everything is running. But sometimes I can't open something or something crashes. The logcat shows a lot of permission denied.
A simple example is com.oneplus.calculator: I don't notice anything wrong when operating it. But in the Logcat I see:
09-25 14:42:35.662 29331 13606 E libEGL : error opening cache file /data/user_de/0/com.oneplus.calculator/code_cache/com.android.skia.shaders_cache: Permission denied (13) 09-25 14:42:35.675 29331 13606 E libEGL : error opening cache file /data/user_de/0/com.oneplus.calculator/code_cache/com.android.opengl.shaders_cache: Permission denied (13)
When comparing the DAC (Direct Access Control) with a healthy phone, I don't see any differences:
drwx------ 4 u0_a153 u0_a153 3488 2023-09-25 10:05 com.oneplus.calculator drwxrws--x 2 u0_a153 u0_a153_cache 3488 1971-12-27 23:26 cache drwxrws--x 2 u0_a153 u0_a153_cache 3488 2022-01-03 14:49 code_cache -r-------- 1 u0_a153 u0_a153_cache 113084 2023-07-10 15:31 com.android.opengl.shaders_cache -r-------- 1 u0_a153 u0_a153_cache 45136 2023-07-10 15:31 com.android.skia.shaders_cache
dumpsys package com.oneplus.calculator: userId=10153
ps -A | grep calculator: u0_a153 27212 993 6770376 106716 do_epoll_wait 0 S com.oneplus.calculator
In some cases it helps to simply delete the file in question. If it is recreated automatically then logcat is clean. Since DAC looks the same afterwards, I am assuming there is something else preventing the access.
I am quite lost when it comes to checking file/ambient capabilities, MAC and further permission control of the Android framework. How can I debug this? Is it possible to get more detailed information exactly what permission is denied?
Android 13, OnePlus 8 Pro IN2023
Any help would be appreciated, many thanks,