permission MODIFY_PHONE_STATE doesnot work [duplicate]

陌路散爱 提交于 2019-12-12 03:35:27

问题


i am working on call blocking app for android 2.2 this permission does not work for me

android.permission.MODIFY_PHONE_STATE

and it gives the following error

Permission is only granted to system apps

will my app work without this permission ??? or any other solution..


回答1:


Take a look at: How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

From that page:

A change was checked in by David Brown that limits the use of the MODIFY_PHONE_STATE permission to system apps. System apps are either

  1. Pre-installed into a system folder on the ROM
  2. Compiled by a manufacturer using their security certificate

In other words, you can't use that permission.



来源:https://stackoverflow.com/questions/14536229/permission-modify-phone-state-doesnot-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!