android+read_logs这权限有什么用,READ_LOGS是正常或危险的Android权限吗?
Is READ_LOGS a normal or dangerous Android permission?
都不是.從Android 7.1開始,它是簽名|開發.這基本上意味著作為固件構建的一部分簽名或安裝在特權分區上的應用程序可以保留權限,但沒有其他任何內容可以.
the Android Documentation website does not specify the protection level of this permission
正確. READ_LOGS仍然在SDK中,出于向后兼容的原因,但自Android 4.1(five years ago出來)以來普通應用程序無法容納它.
This only happens if the permission is deemed “normal”,in which case it is automatically granted.
沒有.
I thought this permission may allow me to see other app’s logs,causing privacy issues.
在Android 4.0及更早版本中它確實如此.
then is it deemed safe to use this permission in a production version of the app?
好吧,請記住,應用程序訪問LogCat內容從未有過記錄和支持的方式.最有可能的是,您正在使用已發布的script-kiddie解決方案之一,例如運行logcat命令并捕獲其輸出.因此,現在或將來的設備完全有可能不支持您訪問LogCat的特定方法.所以,許可不是你的問題;缺少支持的LogCat訪問API是您的問題.
就個人而言,我會使用日志庫將內容記錄到文件和LogCat,使用該文件來滿足您的應用需要.
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的android+read_logs这权限有什么用,READ_LOGS是正常或危险的Android权限吗?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP 继承新增,php类的扩展和继承用
- 下一篇: 编制一个c语言成绩记录簿_C语言基础知识