本文主要是介绍android.permission.MODIFY_PHONE_STATE权限问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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.
这篇关于android.permission.MODIFY_PHONE_STATE权限问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!