Reputation: 294
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.
Upvotes: 0
Views: 4721
Reputation: 2457
Place your app in the /system/priv-app
folder instead of /system/app
, when using Android 4.3 or higher.
Upvotes: 1
Reputation: 1837
MODIFY_PHONE_STATE is a system-only permission, so you can not access or use this permission in your app, Check it out!
Upvotes: 1