2025-02-10

 

android.permission.MODIFY_PHONE_STATE權限限制已經改為系統權限 

 

普通應用程序已經無法調用

 

所以網上找到的那些如何使用android.permission.MODIFY_PHONE_STATE的文章  均已失效

 

但仍有引用的辦法

 

就是讓你的程序程序系統程序

 

一種就是預制到ROM中

 

另一種就是使用系統簽名

 

第一種我已經試驗通過,第二種還有待驗證。

 

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.

獨自登高樓 望斷天涯路的blog

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *