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

Skip to content
Commit 38a2eef0 authored by Tom Chan's avatar Tom Chan
Browse files

Get WSM per user service dynamically.

This change makes WearableSensingManagerService gets the current user's
per-user service instead of the default one. It also fixes an issue with
overriding the wearable sensing service implementation by shell command.
Previously, the WSS service name is cached in
WearableSensingManagerPerUserService and cannot be changed without a
phone restart, which means after the shell command overrides the service
value, it stays the same even if the command is run again with a different service name.
After this change, running the shell command will destroy
the cached per-user service and hence allows the service name to be
overwritten to a different value.

Bug: 301427767
Test: atest CtsWearableSensingServiceTestCases and then tried on-device
with a different WSS service name to verify the shell command can
overwrite the service name for a second time

Change-Id: Ie13b496f827e2f2e83da9d8a96ef9f85e6c93c8c
parent 9812a64b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment