0
應用程序需要訪問文件/緩存/恢復/ last_log的權限?權限讀取/緩存/恢復/ last_log
我的應用使用平臺密鑰簽名,所以我可以提供系統權限。該應用程序將預先構建到設備中,並且該設備將不會生根。
應用程序需要訪問文件/緩存/恢復/ last_log的權限?權限讀取/緩存/恢復/ last_log
我的應用使用平臺密鑰簽名,所以我可以提供系統權限。該應用程序將預先構建到設備中,並且該設備將不會生根。
你只能訪問緩存目錄爲您的應用程序
getApplicationContext().getCacheDir()
Apparantly,你不需要從緩存中讀取任何權限。但是如果你想在緩存目錄中寫一些東西,你確實需要權限。從http://developer.android.com/reference/android/Manifest.permission.html#READ_LOGS原木
文檔:
Allows an application to read the low-level system log files.
Not for use by third-party applications, because Log entries can contain the user's private information.
Constant Value: "android.permission.READ_LOGS"
你說的 '復甦' 是什麼意思?
我正在編寫更新Android操作系統的軟件。這是在您進入設置/關於/系統更新時運行的軟件。它從Web服務器下載Android圖像,驗證它並要求Android更新它。之後,操作系統將重新啓動到恢復模式並應用修補程序。例如,將4.4 android變成5.恢復分區寫入/ cache/recovery目錄,所以我沒有選擇,我需要從那裏讀取日誌。 – 2015-01-15 18:16:17