Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 111afd05 authored by yutingfang's avatar yutingfang
Browse files

Force the device Id associated with

AttributionSource.myAttributionSource() to be the default device Id

This fix is mainly for b/343121936 where bluetooth caches attributionSource returned from AttributionSource.myAttributionSource() which could lead to a stale device Id in the attributionSource. The fix now forces a default device Id associated with AttributionSource.myAttributionSource() on the basis that AttributionSource.myAttributionSource() returns a generic attributionSource which is agnostic of which virtual device it's associated with, callers are strongly encouraged to use Context.getAttributionSource() if they need a more specific attributionSource.

Bug: 343121936
Test: presubmit
Flag: android.permission.flags.enforce_default_device_id_in_my_attribution_source
Change-Id: I1ce7bd3110a60040bb8321d3bb7b95ca3e8b4d0b
parent 6828cd90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment