Loading
Enforce permission and debuggability for `am dumpbitmaps`
The previous implementation did not check for permission and debuggability for `am dumpbitmaps`, which allows a malicious app to access bitmaps in memory of other processes. Detailed vulnerability and how a malicious app could make use of it are documented in b/465136263. This CL enforces both permission check (with the same permission as `am dumpheap`) and debuggability. Bug: 465136263 Bug: 475543853 Flag: EXEMPT BUGFIX Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:93b72e5a84815c09d5eac89fe8f974a44002c629 Merged-In: I10836ce46969f50d837f7f8bf6336f977e830f05 Change-Id: I10836ce46969f50d837f7f8bf6336f977e830f05 See: b/465136263#comment27