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

Commit 0bb91e1d authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Restrict adding the implicit READ_URI grant flag." into udc-dev

parents d9a252dc 56ceba43
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -12349,7 +12349,9 @@ public class Intent implements Parcelable, Cloneable {
                            null, new String[] { getType() },
                            new ClipData.Item(text, htmlText, null, stream));
                    setClipData(clipData);
                    if (stream != null) {
                        addFlags(FLAG_GRANT_READ_URI_PERMISSION);
                    }
                    return true;
                }
            } catch (ClassCastException e) {
@@ -12388,7 +12390,9 @@ public class Intent implements Parcelable, Cloneable {
                    }
                    setClipData(clipData);
                    if (streams != null) {
                        addFlags(FLAG_GRANT_READ_URI_PERMISSION);
                    }
                    return true;
                }
            } catch (ClassCastException e) {