问题
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
- Pre-installed into a system folder on the ROM
- 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