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
  • 12,291
  • 19
  • 47
  • 72
Rhn Bhadani
  • 294
  • 14
  • 22

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,767
  • 1
  • 17
  • 31
1

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

Flow
  • 23,572
  • 15
  • 99
  • 156
Ajay Pandya
  • 2,417
  • 4
  • 29
  • 65