java.lang.SecurityException:requires READ_PHONE_STATE

本文介绍了如何解决Android应用中接收开机启动完成广播的权限问题。通过在manifest文件中正确配置uses-permission元素,并指定需要的权限名称,可以确保应用能够正常接收到开机启动完成的通知。
Duplicate framework API(s) and permission(s) affecting BinderService;,getDeviceLockICCID() Future instances of this issue will be treated as an alert on 2025-10-14. AFAP/BTS has detected that the following framework files (framework.jar and/or services.jar) may have introduced violative customizations to the framework involving custom APIs. The following duplicated platform API(s) Lcom/android/server/engineer/OppoEngineerService$BinderService;,getDeviceLockICCID()Ljava/lang/String, Lcom/android/server/engineer/OppoEngineerService;,checkPermission()Z returns Device Lock ICC ID of a device. These custom API(s) were either not protected by any permissions, or protected by permissions other than android.permission.READ_PRIVILEGED_PHONE_STATE (including other AOSP permission or custom permission). These behaviors violate GMS policy 12.4 Custom system permissions, UIDs, and APIs which states: "Platform APIs gated by system permissions MUST NOT be duplicated by custom APIs and there MUST NOT be a mechanism to proxy or bypass the protection level of platform permissions." and "User data access that's protected by AOSP permissions MUST ONLY be protected by AOSP permissions and there MUST NOT be alternate means (for example, custom system permissions, APIs, UIDs) to get the same data" To address this finding, please take one of the following actions: (1) Remove the duplicated custom API in the framework, and use AOSP standard APIs instead, or (2) Protect the custom APIs with AOSP defined signature permissions If you believe this finding is incorrect please reach out to your TAM / Google point of contact and provide details that help us to validate inaccuracies and improve detection. More information is available at
06-25
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值