I don’t know why not working
You can’t access the private data directory of another app (in this case,
com.main my application package name
I try to execute cpp file using shell command
But showing permission decline
com.main is my application package name
/data/data/com.main/files/ is root path
I already grant chmod 777 permission
Is your device rooted?
Maybe this will only work with a rooted device.