I'm developing a device management application on a rooted device and I'm looking for a solution to the problem that any application can access the su commands a get access to change things on the device. I want to restrict that and only let my app use the su commands and block it to the other applications including applications that will be installed by the user(if the user installs an application it will be blocked from root access automatically). Any solutions?

  • Are you looking for a programmatical solution or an end-user solution? – Firelord Mar 31 at 8:55
  • preferably programmatic , but maybe end-user solution would fit too. I'm looking for all options available – Ofek Regev Mar 31 at 9:06
  • Magisk Hide does what you need, by making use of bind mounts and mount namespaces. – Irfan Latif Mar 31 at 9:48
  • what are those "bind mounts" and "bind namespaces" ? can I do the same thing Magisk do in my application ? I prefer for some reasons to not install any other application on the device unless it's totally necessary – Ofek Regev Mar 31 at 10:18
  • As I understand you would need to make app that deals with what app is granted root access because you can't force one app to do what other app said, anyway you would need to force users to use that app which manages root and app you were making in first place.. I think it would be more appropriate to post this question to programming related community, here they don't do software development questions. – Једноруки Крстивоје Mar 31 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.