Android. permission. MODIFY_PHONE_STATE permission restriction has been changed to system permission
Normal applications can no longer be called
Therefore, all articles found on the internet that use android. permission. MODIFY_PHONE_STATE have expired.
However, there are still some reference methods.
Is to let your program Program System Program
One is premade to ROM.
Another method is to use the system signature.
First, I have passed the test, and the second is to be verified.
Also, just to save everyone some searching. I 've been researching this and here's what happened:
David marked the permission MODIFY_PHONE_STATE as signatureOrSystem. that means only apps installed to the/system folder or signed with the certificate used to build the phone (I. e. your phone's manufacturer) will be able to use the permission.
As a developer, if you are using the permission there is no work around... unless you can convince every manufacturer to include your app as a preinstalled bloatware.
Log on to the building on your own to view the blog of tianyao Road