I have a system service that is creating a folder and some files under /data/vendor/
Since I have a rooted Android device in Enforcing state, the sepolicy is not permitting me to do this so I am using the dac_override capability in an allow rule - which works.
Now, I am trying to import the code to the Beta version of Android P / 9.0, but in domain.te file they added this capability to the neverallow list :(
When I am not using this capability and trying to use
File _file = new File(PATH);
The result is that _file is always null!
Can anyone suggest a way to create my files??