diff options
author | jovanak <jovanak@google.com> | 2018-10-15 17:50:19 -0700 |
---|---|---|
committer | jovanak <jovanak@google.com> | 2018-10-15 17:50:19 -0700 |
commit | 2a9131f76879cbb7cc572ba999428197aece7e18 (patch) | |
tree | 1aea1d8586c9ece7f58a64db18761d9e8901747a /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0d541559af18191897104e0685f43a561b1e5ba5 (diff) |
Makes bluetooth profile services bind to current (foreground) user.
If profile services are created from a singleton process
(like SystemUI), they need to be re-bind to a new foreground user
when we switch to a secondary user.
This is achieved by binding to UserHandle.CURRENT_OR_SELF.
If the process doesn't have adequate permissions to bind to current,
it will bind to self (which is the same as the previous behavior).
Change-Id: Ib1134a1a62887d6f5b2c97301dccd3223ade9ed2
Fixes: 117517812
Test: ran the existing core bluetooth tests; manual testing on a mojave, verifying that the service correctly rebinds from sys ui after user switch.
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions