+9
−0
+1
−1
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
For apps that aren't the default gallery or music app, the new storage model in Q only allows them to read media they don't own. We recognize there's a valid use-case for editing or deleting media that an app doesn't own, but we want to get the user involved to confirm the access grant. This is implemented using a RecoverableSecurityException, so existing apps can continue gracefully handling a SecurityException that they recognize. Apps that have become aware of the new permissions model can extract the RemoteAction and invoke it to get the user involved and gain access. Bug: 111892459 Test: atest android.appsecurity.cts.ExternalStorageHostTest#testMediaEscalation Change-Id: Ib34374197c8c1f5236ba8a1062065914e0a9e9f9