Neither User 10056 Nor Current Process Has Android.permission.MODIFY_PHONE_STATE
I want to create such an application in which i want to open a dialer with specified number during call. I have successfully opened the dialer during a call with refrence of this L
Solution 1:
Remove this line and your code should work:
telephonyService.silenceRinger();
That is an invalid call after Android 2.2.
Solution 2:
Have you tried like bellow ?
Intent intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:1231231234"));
startActivity(intent);
Solution 3:
MODIFY_PHONE_STATE permission used by system apps only not by third party apps.
Instead of using answerRingingCall(), u can use key events Like:
Intent buttonDown = new Intent(Intent.ACTION_MEDIA_BUTTON);
buttonDown.putExtra(Intent.EXTRA_KEY_EVENT,
new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_HEADSETHOOK));
context.sendOrderedBroadcast(buttonDown, "android.permission.CALL_PRIVILEGED");
Solution 4:
Add in manifest permission MODIFY_PHONE_STATE
Solution 5:
I thing you use the hiden library com.android.internal.telephony I add this line in the manifest
<uses-permission android:name="android.permission.INSTALL_PACKAGES"/>
and I worked in my case I tried it in 4.4.2
Post a Comment for "Neither User 10056 Nor Current Process Has Android.permission.MODIFY_PHONE_STATE"