summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothMapClient.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2021-05-07 10:28:59 -0600
committerJeff Sharkey <jsharkey@android.com>2021-05-15 09:48:14 -0600
commit739f619eb30c7e37b0a7449c14220e2ea4f5eb86 (patch)
tree263444b1146dfb3506d313c00696b126a73a68d7 /framework/java/android/bluetooth/BluetoothMapClient.java
parent1a2da29dba3ea88d4ea995a12ff0e0a65637320f (diff)
Apply AttributionSource during Intent delivery.
There are some Parcelables which offer to perform Binder calls, and when these are delivered via Intent extras they fallback to ActivityThread.currentAttributionSource(), instead of being tagged based on the relevant app component. This change begins using Intent.prepareToEnterProcess() as a hook to fix-up AttributionSource when those extras finally land in the destination process. It uses the relevant AttributionSource based on the Activity or Service the Intent is delivered to, which developers have control over via AppComponentFactory. In the case of <receiver> manifest elements, this change applies the first android:attributionTags value to the Context used for that BroadcastReceiver. Bug: 187097694 Test: atest AttributionTest Change-Id: I8f5197db7e8d7277d34f0ef2bb90bfdf1871186a
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothMapClient.java')
0 files changed, 0 insertions, 0 deletions