How to Grant Modify_Phone_State Permission For Apps Ran on Gingerbread

How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

MODIFY_PHONE_STATE is a system-only permission, so apps are not allowed to get it.

This may have changed from previous versions of the platform, but that is okay because it is only protecting private APIs, so if you are doing something that requires it, you are using private APIs that are not supported and will result in things like your app breaking on different builds of the platform.

The stack crawl you include is not complete, so there is no way to tell what you are actually doing.

How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

MODIFY_PHONE_STATE is a system-only permission, so apps are not allowed to get it.

This may have changed from previous versions of the platform, but that is okay because it is only protecting private APIs, so if you are doing something that requires it, you are using private APIs that are not supported and will result in things like your app breaking on different builds of the platform.

The stack crawl you include is not complete, so there is no way to tell what you are actually doing.

why 2.3 version of android does not hava android.permission.MODIFY_PHONE_STATE ? and what is the solution for this?

take a look at How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

java.lang.SecurityException: MODIFY_PHONE_STATE permission required when killing a phone call programatically in android 9 pie

MODIFY_PHONE_STATE is a system-only permission, you could root device and put your app in /system/priv-app folder. But there will be other way around to solve your problem. What exactly are you trying it to acheive here.

Have a look here

MODIFY_PHONE_STATE is a system-only permission, so apps are not allowed to get it.

This may have changed from previous versions of the platform, but that is okay because it is only protecting private APIs, so if you are doing something that requires it, you are using private APIs that are not supported and will result in things like your app breaking on different builds of the platform.

The stack crawl you include is not complete, so there is no way to tell what you are actually doing.

Incoming call is blocked on emulator by using aidl but it gives fatal exception on mobile phone

If you're using Android 2.3+ (Gingerbread) you can't solve this problem: take a look here.



Related Topics



Leave a reply



Submit