WifiStack: Use UserHandle.CURRENT_OR_SELF temporarily
Until, the core platform team provides a mechanism for wifi (& other
mainline modules to get signature permissions), use CURRENT_OR_SELF
instead of CURRENT. CURRENT_OR_SELF is a workaround that will allow the
privileged APK to send broadcasts to its own user (i.e primary user)
even if the APK does not have INTERACT_ACROSS_USERS_FULL.
Note:
a) CURRENT_OR_SELF is @hide field. So, we will need to get rid of this
eventually.
b) Will not work for multi-user scenarios (i.e if any of these
operations are initiated by a secondary user).
Bug: 142234604
Test: Able to provision R2 passpoint profile, crash no longer seen
Test: atest com.android.server.wifi
Change-Id: I551f6584b9de8fee433027b31cf52b8eadb30ae8
4 files changed