vendredi 24 avril 2015

How to run with system permission

My app is trying to get system VPN profiles list with hidden APIs. However, the hidden APIs need to run in system process. After google, I find this, which can create a new process with root permission.

  Process suProcess = Runtime.getRuntime().exec("su");

But it can only run shell commands in the new process. How can I run my custom function in the new process?





Aucun commentaire:

Enregistrer un commentaire