Greetings, I am developing an Android application to create an apn, the problem persists in that it generates an exception of type
Java.Lang.SecurityException
In my manifest I have as permission a
uses-permission android:name="android.permission.WRITE_APN_SETTINGS"
The message that gives me the exception is
No permission to write APN settings
But as you have already seen, I already have the permission that this action needs.
I need this because I am developing an application that will use the apn
to connect only.
I'm working for Android 6(API 23) and I've done the tests on 2 different devices. Thanks in advance.
In this case the WRITE_APN_SETTINGS permission that allows applications to change the settings of an APN (Access Point Name), strictly requires that your application be configured as a system application.
It is for this reason that even if you have defined the permission when executing your application, it shows the message:
A system app has root privileges and is installed on the system partition.
It would seem to me that it is not your case to make a system application, but I add an article about it: