X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/a13c191a1bd25ae58ee787e74c9faceb67940bec..b315b97f128c85b272560f5fccb3cb984f51602b:/Command.cpp?ds=sidebyside diff --git a/Command.cpp b/Command.cpp index d428fef..0a5e590 100644 --- a/Command.cpp +++ b/Command.cpp @@ -1204,7 +1204,9 @@ int doDump(Bundle* bundle) } // If the application has requested WRITE_EXTERNAL_STORAGE, we will - // force them to always take READ_EXTERNAL_STORAGE as well. + // force them to always take READ_EXTERNAL_STORAGE as well. We always + // do this (regardless of target API version) because we can't have + // an app with write permission but not read permission. if (!hasReadExternalStoragePermission && hasWriteExternalStoragePermission) { printf("uses-permission:'android.permission.READ_EXTERNAL_STORAGE'\n"); printf("uses-implied-permission:'android.permission.READ_EXTERNAL_STORAGE'," \