FilePicker is missing WRITE_EXTERNAL_STORAGE permission
Categories
(Firefox for Android Graveyard :: Settings and Preferences, defect, P2)
Tracking
(firefox66 wontfix, firefox67 verified)
People
(Reporter: brent.dearth, Assigned: petru)
Details
Attachments
(2 files)
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Thanks for your report!
I was able to reproduce this issue following the steps provided on twitter.com with Google Pixel (Android 9). Marking the bug as new.
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 5•7 years ago
|
||
If our FilePicker delegates other applications to first record media, which has to be persisted locally before being picked up and uploaded it needs the WRITE_EXTERNAL_STORAGE permission.
At the moment we request only READ_EXTERNAL_STORAGE which was fine pre Oreo because Android would actually grant all permissions in the group if any one is granted.
| Assignee | ||
Comment 6•7 years ago
|
||
"Prior to Android 8.0 (API level 26), if an app requested a permission at
runtime and the permission was granted, the system would also incorrectly
grant the app the rest of the permissions that belonged to the same permission
group, and that were registered in the manifest.
For apps targeting Android 8.0, this behavior has been corrected. The app is
granted only the permissions it has explicitly requested. However, once the
user grants a permission to the app, all subsequent requests for permissions
in that permission group are automatically granted."
https://developer.android.com/about/versions/oreo/android-8.0-changes#rmp
Our FilePicker can delegate other applications to record media files
(photo/audio/video) which are then to be sent to websites. They must be saved
locally before the upload, scenario that wasn't possible anymore on Oreo+
because of the change in how Android handles runtime permissions.
As a way to get around this one could grant the "Storage" permission from
System Settings which would grant the app both READ and WRITE access.
But for actually being prepared to handle all situations our FilePicker must
ask for the WRITE_EXTERNAL_STORAGE permission at runtime.
| Assignee | ||
Updated•7 years ago
|
Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7ae76ec6dad5
FilePicker will request WRITE_EXTERNAL_STORAGE; r=JanH
Comment 8•7 years ago
|
||
| bugherder | ||
Comment 9•7 years ago
|
||
I think it's OK for this to ride to release with 67.
Comment 10•7 years ago
|
||
Verified as fixed on the latest Nightly build (67.0a1), I was able to change the picture on Twitter using the camera.
Device: Google Pixel (Android 9).
Updated•5 years ago
|
Description
•