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

Commit bbf22661 authored by Keith Mok's avatar Keith Mok
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
parent b0829d61
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();