summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorOli Lan <olilan@google.com>2021-05-12 17:38:19 +0100
committerOli Lan <olilan@google.com>2021-05-13 15:08:18 +0100
commit6bc896f705f3936078f47d96a1a0338f78a2f9db (patch)
tree10b0ee1e75efb553c75587f677e57d20d255762e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentd261ad7bfe4ed784755cc27bb1cb7bceac2dc3c5 (diff)
Do not throw SecurityException from getPrimaryClip.
Currently getPrimaryClip throws a SecurityException if a Uri in clipboard has become invalid and permission to it can no longer be granted. This is unexpected and can crash apps that are trying to paste. This change catches the exception and clears clipboard if this case occurs. Bug: 187942504 Test: atest android.appsecurity.cts.AppSecurityTests#testPermissionDiffCert Test: build & flash, create invalid Uri by uninstalling and reinstalling Chrome Change-Id: I9994bb03f1aed47e32a500bba8886eea3f2cd905
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions