Grant Preinstall App Permissions

Hello Khadas team,

I’m currently working on a project that requires granting the preinstalled apps and services system permissions, like camera and microphone permissions. I did some search online showing that I need to modify DefaultPermissionGrantPolicy.java. But I couldn’t figure out how.

Is there any way you could help me with this?

I have preinstalled my apps using the following approach.

Thanks in advance,
Leo