android - "has carrier priviliges"在android 5.1.1中意味着什么

标签 android android-manifest smartcard

我正在尝试开发一个与 SIM 卡 (Android 5.1.1) 通信的 android 应用程序。 当使用某些方法(例如:iccOpenLogicalChannel)时,他们在文档中说我应该拥有运营商权限应用程序才能使用此方法,我想知道它们到底是什么意思? 有人可以告诉我如何获得“运营商特权”吗?

最佳答案

5.1.1 中有新的 API,允许通过 Google Play 分发的运营商开发的应用程序在电话系统中执行网络配置任务和其他功能。现在可以通过具有“运营商特权”的应用程序直接与网络接口(interface)通信。

正如谷歌解释的那样:

These APIs provide a secure and flexible way for carrier-developed apps to perform these tasks and be distributed through Google Play. Apps that use these functions must be signed by a certificate that matches the certificate in the device's Universal Integrated Circuit Card (UICC). The carrier service APIs have been added to the TelephonyManager class, the SmsManager class, and the new CarrierMessagingService class. Apps can check for access to these APIs by calling the hasCarrierPrivileges() method. Apps that call these APIs without access receive a SecurityException.

据我所知,运营商权限是由运营商运营商设置的,如果没有运营商的认证,您将无法访问这些方法。

来源:https://developer.android.com/about/versions/android-5.1.html

关于android - "has carrier priviliges"在android 5.1.1中意味着什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31241135/

相关文章:

android - 针对 Android 12 的 list 合并失败

java - 通过 USB 的 Android 智能卡读卡器错误 : PROCEDURE BYTE CONFLICT

android - 处理已弃用的 fragment 事件 onAttach 和 onInflate 的正确方法是什么

android - 向抽屉导航添加线性布局(最终因 ClassCastException 而崩溃)

android - 升级生产 Android 应用程序的 SQLite 数据库,这是正确的吗?

android - 以编程方式将我的应用程序添加到android中的AutoStart应用程序列表

Android App Play 商店重定向

android - 从 Parse 类中删除整行

nfc - 根据 ATR 确定卡类型

java - 找不到 apduToolTask