Skip to content

Commit e9a6ebf

Browse files
kwadkoreAndroid Build Coastguard Worker
authored andcommitted
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) (cherry picked from commit 260d0a85ddf986d41340980ef5abf0a878d65d9c)
1 parent 5f2616c commit e9a6ebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/Shell/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
<provider android:name=".HeapDumpProvider"
347347
android:authorities="com.android.shell.heapdump"
348348
android:grantUriPermissions="true"
349-
android:exported="true" />
349+
android:exported="false" />
350350

351351
<activity
352352
android:name=".BugreportWarningActivity"

0 commit comments

Comments
 (0)