[英]How to access permission READ_INTERNAL_STORAGE and WRITE_INTERNAL_STORAGE file (pdf docs)in android SDK 33
In Android 13 version or SDK 33 How to access all files in android devices and also give permission of Allow management of all files, I have try requestLegacyExternalStorage, defaultToDeviceProtectedStorage, requestLegacyExternalStorage="true"
and READ_INTERNAL_STORAGE
, WRITE_INTERNAL_STORAGE
permission but not working
MANAGE_EXTERNAL_STORAGE權限是特別危險的權限。 必須手動提供。 嘗試這個:
val intent = Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION)
intent.addCategory("android.intent.category.DEFAULT")
intent.data = Uri.parse(String.format("package:%s",applicationContext.packageName))
startActivity(intent)
注意:如果應用打算發布到商店,Google Play 商店的政策會限制使用 MANAGE_EXTERNAL_STORAGE 權限。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.