Incoming call is blocked on emulator by using aidl but it gives fatal exception on mobile phone
I want to abort an incoming call. It works on the emulator but on the mobil开发者_JAVA百科e phone it gives an exception.
FATAL EXCEPTION: main -
java.lang.SecurityException: Neither user 10076 nor current
process has android.permission.MODIFY_PHONE_STATE.
What should I do for this?
If you're using Android 2.3+ (Gingerbread) you can't solve this problem: take a look here.
You need to include the permission android.permission.MODIFY_PHONE_STATE
in the AndroidManifest.xml file.
See this for details.
And here is the list of permissions.
精彩评论