android dumpsys permission denial

前端 未结 5 1659
有刺的猬
有刺的猬 2020-12-10 08:57

I have an application where I create a process and call the dumpsys telephony.registry command to get information about the mobile network status.



        
5条回答
  •  旧巷少年郎
    2020-12-10 09:03

    Why does android OS still deny me access to the dump service ?

    Because that permission is flagged as android:protectionLevel="signature|system|development" (or signatureOrSystem using the old syntax) on Android 2.3+, and therefore cannot be held by ordinary Android SDK applications.

提交回复
热议问题