You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "VardanTitan (via GitHub)" <gi...@apache.org> on 2025/04/09 10:44:00 UTC

[I] Google's New Policy Restricting READ_MEDIA_IMAGES and READ_MEDIA_VIDEO Permissions [cordova-plugin-file]

VardanTitan opened a new issue, #649:
URL: https://github.com/apache/cordova-plugin-file/issues/649

   Google has introduced a new policy [outlined here](https://support.google.com/googleplay/android-developer/answer/13986130), which will limit the use of `READ_MEDIA_IMAGES` and `READ_MEDIA_VIDEO` permissions. These permissions are utilized by the [Cordova File plugin](https://github.com/apache/cordova-plugin-file/blob/670db341cce8ad866a863eb0b0639172f719a7e2/src/android/FileUtils.java#L536).
   
   With this change coming into effect, are there any plans to update the Cordova File plugin to comply with these restrictions? Additionally, what are the recommended workarounds for applications using this plugin?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Google's New Policy Restricting READ_MEDIA_IMAGES and READ_MEDIA_VIDEO Permissions [cordova-plugin-file]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek closed issue #649: Google's New Policy Restricting READ_MEDIA_IMAGES and READ_MEDIA_VIDEO Permissions
URL: https://github.com/apache/cordova-plugin-file/issues/649


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Google's New Policy Restricting READ_MEDIA_IMAGES and READ_MEDIA_VIDEO Permissions [cordova-plugin-file]

Posted by "EMI-INDO (via GitHub)" <gi...@apache.org>.
EMI-INDO commented on issue #649:
URL: https://github.com/apache/cordova-plugin-file/issues/649#issuecomment-3024792401

   @VardanTitan 
   
   you can create a combination function of `cordova-plugin-file and ordova-plugin-save-blob
   `
   if you only need sensitive permissions ordova-plugin-save-blob can do it dynamically.
   
   ```
   cordova plugin add cordova-plugin-save-blob \
     --save \
     --variable IS_CAMERA_PERMISSION=false \
     --variable IS_READ_M_VIDEO_PERMISSION=true \
     --variable IS_READ_M_IMAGES_PERMISSION=true \
     --variable IS_MANAGE_STORAGE_PERMISSION=false
   ```
   
   **note**
   https://github.com/EMI-INDO/cordova-plugin-save-blob?tab=readme-ov-file#plugin-variable-permissions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Google's New Policy Restricting READ_MEDIA_IMAGES and READ_MEDIA_VIDEO Permissions [cordova-plugin-file]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #649:
URL: https://github.com/apache/cordova-plugin-file/issues/649#issuecomment-2789680535

   If you purely operate with internal storage paths, the plugin and you're application is already compliant assuming you're running 8.x of the plugin.
   
   The file plugin doesn't declare any permissions itself, allowing you to decide what you **need** for your application. However non-internal `file://` paths requires external storage permissions or READ permissions depending on the API level. If the nature of your application can justify using those permissions, then you can add them to your app config (see [example](https://github.com/apache/cordova-plugin-file?tab=readme-ov-file#sdk-target-less-than-29)).
   
   Otherwise if you need to work with the external filesystem, then the file plugin is no longer a clean fit, but can still be useful in specific circumstances. Changes to your application might be necessary to be complaint with Google's policies. To interface with Android's external storage, without requiring extra permissions which Google requires justification for, you must interface with the MediaStore and use `content://` URIs. These URIs give you temporary access to a specific resource on the external filesystem. This plugin does not interface with the MediaStore directly, but it can resolve `content://` uris to read and write to those resources providing that their content providers enables read/writes.
   
   An example of this pattern can be seen with the Apache camera plugin, which does interface with the MediaStore when choosing images from the gallery. A `content://` path is typically given, we don't know the underlying storage of the content, it could be external storage, google drive, or some other location, but after the user picks the resource, the app can read the given `content://` url for a limited time allowing the application to use or make a copy of the resource if necessary using the file plugin APIs.
   
   The limitations of accessing external file system resources is noted [here](https://github.com/apache/cordova-plugin-file?tab=readme-ov-file#androids-external-storage-quirks)
   
   Let me know if this information helps or if there is anything that needs to be expanded on.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org