Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f509512e authored by Keith Mok's avatar Keith Mok Committed by Scott Mertz
Browse files

PickerActivity: Grant read url permission

Without granting url read permission, the caller using
the picker will encounter a security denied.

FEIJ-809

Change-Id: I0ad564f7c16a36b4395f0d1d19d7eed10d0917c4
(cherry picked from commit bbf22661)
parent 596e0e6a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -494,6 +494,7 @@ public class PickerActivity extends Activity
            // and return RESULT_OK result)
            Intent result = new Intent();
            result.setData(getResultUriForFileFromIntent(this, src, getIntent()));
            result.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
            setResult(Activity.RESULT_OK, result);
            finish();