【问题标题】:I am getting IMEI Number error in Android 10 [closed]我在 Android 10 中收到 IMEI 号码错误 [关闭]
【发布时间】:2020-04-02 05:12:20
【问题描述】:

我在 Android 10 中收到 IMEI 和 SIM 序列号错误, 例外是 -

java.lang.SecurityException: getDeviceId: The user 10526 does not meet the requirements to access device identifiers.
java.lang.SecurityException: getIccSerialNumber: The user 10526 does not meet the requirements to access device identifiers.

【问题讨论】:

  • 发布您的代码,以便我们提供帮助,您是否在清单中添加了
  • 显示权限只授予系统应用

标签: android android-studio gradle imei


【解决方案1】:

我在 Android 10 中收到 IMEI 和 SIM 序列号错误

从 Android 10 开始,Google 增加了访问设备不可重置标识符的限制。

对于所有第三方应用程序(从 Google Play 商店安装),所有方法 getImei()getDeviceId()getSerial() 都将返回 SecurityExceptionnull

无法在 Android 10 或更高版本的设备上获取 IMEI。

Restriction on non-resettable device identifiers

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-10-06
    • 2023-01-12
    • 2012-05-17
    • 2014-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多