commit | 6131f6d27ef7e4266e4a5c996cb939195dc00aa6 | [log] [tgz] |
---|---|---|
author | Danny Epstein <depstein@google.com> | Wed Sep 16 18:45:54 2020 -0700 |
committer | Danny Epstein <depstein@google.com> | Thu Sep 17 12:18:03 2020 -0700 |
tree | 47d966652e4dca492f3cd87b1419042944e096b9 | |
parent | 720cf3c088dc0590327d42102d13093f3d43e15e [diff] |
Use device protected storage Switch from using shared preferences, which aren't available during boot, to device protected storage, which is. This is required since the RotaryService is directBootAware. Bug: 166354638 Test: manual Change-Id: Ia72e4b96b279041e1cd7d1c3f9cfa151044183ce
make CarRotaryController -j64
To enable, run:
adb shell settings put secure enabled_accessibility_services com.android.car.rotary/com.android.car.rotary.RotaryService
To disable, run:
adb shell settings delete secure enabled_accessibility_services
To rotate the controller counter-clockwise, run:
adb shell cmd car_service inject-rotary
For clockwise, run:
adb shell cmd car_service inject-rotary -c true
To rotate the controller multiple times (100 ms ago and 50 ms ago), run:
adb shell cmd car_service inject-rotary -dt 100 50
To nudge the controller up, run:
adb shell cmd car_service inject-key 280
Use KeyCode 280
for nudge up, 281
for nudge down,282
for nudge left,283
for nudge right.
To click the controller center button, run:
adb shell cmd car_service inject-key 23