android.permission.MODIFY_PHONE_STATE" not worked properly

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.


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

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

Need Your Help

Check sorted array for duplicates

java android arrays

I do have a sorted array that I want to check for duplicate entrys. Problem is I need to know where the duplicate was as its a multidiensional array and I need to remove the 2nd entry too. Also in ...

Length limit on JSON parameters on GET request

android json api get

My Android app is making two GET calls to my Server API. In the first one, is this, where parameter code is a 256 char String.