permission MODIFY_PHONE_STATE doesnot work

1.7k Views Asked by At

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

There are 1 best solutions below

3
On

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.