0

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..

Abdus Salam
  • 55
  • 1
  • 11

1 Answers1

0

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.

Community
  • 1
  • 1
Bojan Kogoj
  • 5,321
  • 3
  • 35
  • 57