Access system API from application

Sanjeeth_KG

New member
Jul 7, 2022
3
0
0
Hey Guys,

i have a rooted phone with Android 12 image, i would like to call an system API from an application, how would i go about it ?
things i have done so far without success
1. built the apk with aosp build
2. copied the application in /system/priv-app folder
3. created permission.xml in /etc/permissions/ folder
4. ofcourse have asked the permission in the manifest file

inspite of all these i still get the error "this user nor the process have the permission for MAINELINE_NETWORK_STACK

any help would be appreciated
 
Welcome to Android Central! I moved this from the Galaxy S9 forum to the Software Development forum for more specific traffic.
 
Android 12 has a system inbuilt called Scoped Storage. This limits access to system files and folders. I would try the XDA forums for more specific help with this issue as they specialise in this type of issue.