summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kweku Adams <kwekua@google.com> 2021-06-03 16:07:56 -0700
committer Kweku Adams <kwekua@google.com> 2021-06-07 13:59:48 +0000
commit260d0a85ddf986d41340980ef5abf0a878d65d9c (patch)
treeed896462886f371f559ebf31cc097d18e60da56a
parent8709fbb945406a2e424068d30a83c211ec9aa035 (diff)
Don't export HeapDumpProvider.
Stop exporting HeapDumpProvider so apps can only access generated dumps when the user explicitly shares them. Bug: 184046948 Test: capture system heap dump in developer options and confirm test app get SecurityException if it tries to access the dump directly, but gets access when the dump is shared through the notification flow Change-Id: Ibdca7cde4f563baa39163869289da5b79fc3a6db (cherry picked from commit a60c62bcb74e0146820f75f1da49581d1709b63c)
-rw-r--r--packages/Shell/AndroidManifest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml
index 570c2ab3efd1..3e820c39665c 100644
--- a/packages/Shell/AndroidManifest.xml
+++ b/packages/Shell/AndroidManifest.xml
@@ -346,7 +346,7 @@
<provider android:name=".HeapDumpProvider"
android:authorities="com.android.shell.heapdump"
android:grantUriPermissions="true"
- android:exported="true" />
+ android:exported="false" />
<activity
android:name=".BugreportWarningActivity"