android dumpsys permission denial
I have an application where I create a process and call the dumpsys telephony.registry command to get information about the mobile network status. String[] cmds={"dumpsys telephony.registry"}; Process p = Runtime.getRuntime().exec(cmds [0]+"\n"); and then after that I parse the result of the command. For "ls" or other commands it works fine. For dupmsys I get Permission Denial: can't dump telephony.registry from pid-953, uid=10090 . I get the same error results for dumpsys power or other dumpsys commands. I have set DUMP permissions android.permission.DUMP in the android Manifest like