android.permission.MODIFY_PHONE_STATE權限問題

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.

發佈了120 篇原創文章 · 獲贊 14 · 訪問量 48萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章