.MODIFY_PHONE_STATE permission limit has been changed to system permissions
Ordinary applications can no longer be called
So the articles found on the Internet about how to use .MODIFY_PHONE_STATE have all been invalid
But there are still ways to quote
It is to let your program system program
One is to prefabricate into ROM
Another way is to use system signature
I have tried and passed the first one, and the second one remains 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 (. 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.
Thank you for reading, I hope it can help you. Thank you for your support for this site!