android.permission.MODIFY_PHONE_STATE - How to assign system permission?

0

I need to use the following permission in my App:

android.permission.MODIFY_PHONE_STATE

But it shows an error in Manifest saying that the permission is only granted to system apps.

I need to intercept the connection in order to disconnect it and send an sms to the number.

I need to make it system app, but how?

    
asked by anonymous 29.08.2014 / 14:05

2 answers

1

Unfortunately, this permission can no longer be obtained. From Android 2.3+ this permission was limited to system apps only.

At documentation is mentioned that it is not intended for third-party use.

As we can see in the commit by David Brown, an Android contributor, permission was marked as signatureOrSystem .

There are some issues, for example 15031 , 15022 and 14789 . They were ignored.

Alternatively you could install your App as a system, but it is a manual process that requires root to work.

    
29.08.2014 / 14:39
4

This permission is for system applications only!

No other application can use this permission other than the system permission.

What do you need to do?

    
29.08.2014 / 14:14