RVZ
RVZ

Reputation: 13

Android System App Permissions

I'm busy trying to add some functions to an app to do things like toggle airplane mode, or change APN settings etc. For this I need permissions like "write_secure_settings" and "write_apn_settings", which are only allowed for system apps. Just for some background, this won't be added to the play store. It will be used on company devices where the users don't have access to change certain settings, but we do want to allow others.

As I understand, this was changed for security reasons, and from searching here, people don't even want to discuss it, because it can't be done anymore. But if this is the case, how is possible that people are still using this in normal user apps? If you search the play store, there are lots of apps offering these functions. I've downloaded a few and I can do the exact same thing that I'm not allowed to do if I write my own app. How are they doing it then?

I'll appreciate any help regarding this.

Upvotes: 1

Views: 2552

Answers (1)

William Riley
William Riley

Reputation: 918

Unfortunately, it appears that it is not possible anymore. The only ways to do this, seems to be outlined by installing your app as a "system app". Since this will be an internally used program, that should not be a problem for your company, however, the devices must be rooted.

Have a look at this guide on "Installing any app as a system app":

http://www.addictivetips.com/mobile/how-to-install-any-app-as-system-app-on-android/

I hope this helps you find the answer you seek on way or another.

Happy coding.

Upvotes: 1

Related Questions