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

Skip to content
Commit d33a182f authored by Tanmay Patil's avatar Tanmay Patil
Browse files

Allow a --user param for cmd sensorservice commands.

This allows testing on secondary users. For more information, please see go/aae-cts-on-u10.
Change similar to change for media.camera service ag/6936694

Bug: 129483753

Test: Verify cmd sensorservice get, set and reset show idle/active changes with --user

$ adb shell cmd sensorservice get-uid-state com.google.android.car.kitchensync --user 10
idle
$ adb shell cmd sensorservice set-uid-state com.google.android.car.kitchensync active --user 10
$ adb shell cmd sensorservice get-uid-state com.google.android.car.kitchensync --user 10
active
$ adb shell cmd sensorservice reset-uid-state com.google.android.car.kitchensync --user 10
$ adb shell cmd sensorservice get-uid-state com.google.android.car.kitchensync --user 10
idle
$ adb shell cmd sensorservice get-uid-state com.google.android.car.kitchensync --user 0
active

Change-Id: I13c98da5772192b3f172538ac70e77a9d2497e61
parent e5fa4b1d
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