Android.permission.MODIFY_PHONE_STATE权限问题解决办法

时间:2021-05-21

Android.permission.MODIFY_PHONE_STATE权限限制已经改为系统权限

普通应用程序已经无法调用

所以网上找到的那些如何使用android.permission.MODIFY_PHONE_STATE的文章 均已失效

但仍有引用的办法

就是让你的程序程序系统程序

一种就是预制到ROM中

另一种就是使用系统签名

第一种我已经试验通过,第二种还有待验证。

Also, just to save everyone some searching. I've been researching this and here's what happened:

David marked the permission MODIFY_PHONE_STATE as signatureOrSystem. That means only apps installed to the /system folder or signed with the certificate used to build the phone (i.e. your phone's manufacturer) will be able to use the permission.

As a developer, if you are using the permission there is NO WORK AROUND... unless you can convince every manufacturer to include your app as a preinstalled bloatware.

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章