0

I had already added this permission in my Manifest

<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />

But it will not give me permission to cut the incoming call, I can receive the call.when I'm try to cut the call it give me

java.lang.SecurityException: Neither user 10037 nor current process has android.permission.MODIFY_PHONE_STATE.

I have gone through so many blogs,but none of work. In some of the emulator its working fine.

Howli
  • 11,925
  • 19
  • 46
  • 70
Rhn Bhadani
  • 2,208
  • 1
  • 17
  • 25

2 Answers2

1

MODIFY_PHONE_STATE is a system-only permission, so you can not access or use this permission in your app, Check it out!

Community
  • 1
  • 1
Saad Bilal
  • 1,729
  • 1
  • 16
  • 30
1

Place your app in the /system/priv-app folder instead of /system/app, when using Android 4.3 or higher.

Flow
  • 22,860
  • 14
  • 95
  • 151
Ajay Pandya
  • 2,397
  • 4
  • 30
  • 64