commit | 3650e85068b6fc2b55f9cddf8164c30a4f3acf43 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed May 29 10:11:38 2019 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed May 29 10:11:40 2019 -0600 |
tree | 1ec24904c80a484d81adeee34e99f6f6539e85d3 | |
parent | 86f3b1a69d0aeffcab16db98f608ec36139161bb [diff] |
Use LocalCallingIdentity PID when checking. All security information is now maintained in LocalCallingIdentity for performance reasons, so we need to consult it instead of Binder directly. Also wrap() the local ContentProviderClient when scanning a volume to prevent the IContentProvider transport from clearing the LocalCallingIdentity. Bug: 133434049 Test: atest android.media.cts.MediaScannerTest Change-Id: I4baf81969260f493f63ca0e6dd9b19c7d125a7d6