Carrier app throws SecurityException when adding an APN
Asked Answered
A

0

6

We have an eUICC with carrier privileges, we are able to check the privileges by

telephonyManager.hasCarrierPrivileges() and it returns true.

Android documentation says that we are able to use the Content provider APIs to add, modify an APN.

But we are still unable to add the APNs. the stack trace

java.lang.SecurityException: No permission to access APN settings
        at com.android.providers.telephony.TelephonyProvider.checkPermission(TelephonyProvider.java:7029)
        at com.android.providers.telephony.TelephonyProvider.insertSingleRow(TelephonyProvider.java:5948) ```
Accelerando answered 29/3, 2022 at 13:21 Comment(1)
were you able to get the reason and what was required to get this to work?Contract

© 2022 - 2024 — McMap. All rights reserved.