求助!!
在访问当前连接的APN信息时,报错java.lang.SecurityException: No permission to write APN settings,提示错误的语句为
Cursor cr = context.getContentResolver().query(APN_URI, null, null, null, null);
错误提示如下:

网上查了一下,第一种解决方案是说在AndroidManifest.xml文件中加入权限android.permission.WRITE_APN_SETTINGS即可,试了一下并没有解决
第二种说是在AndroidManifest.xml文件开头的manifest中加入android:sharedUserId="android.uid.system",尝试后直接安装不成功,报错如下:

是的,权限不够。需要系统签名。
如果你是做系统开发的,使用系统签名即可。
这么巧嘛,我最近就有改APN。