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.
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
声明:本文内容来源于网络,版权归原作者所有,内容由互联网用户自发贡献自行上传,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任。如果您发现有涉嫌版权的内容,欢迎发送邮件至:notice#nhooo.com(发邮件时,请将#更换为@)进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。