commit | 52da4488f0f9be6fd4ffa39bc016a2a7d42cb8f9 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Mon May 06 12:09:29 2024 -0700 |
committer | Xin Li <delphij@google.com> | Mon May 06 12:09:29 2024 -0700 |
tree | 28c3bb70069e2522dde10975ca708a08172b97ab | |
parent | 5bddca35f31d05bf49ee18e097f96fed0873a66f [diff] | |
parent | 5e84155befb1ec6ebe908521adb0448ef1556c82 [diff] |
Merge Android 24Q2 Release (ab/11526283) to aosp-main-future Bug: 337098550 Merged-In: Iaf61332fbebf53b8925583d8e655fca6a85e8be0 Change-Id: I6f4e82a691c64242850196b2994cd4667a0b008f
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
To long click the controller center button, send down and up action seperately. For example:
adb shell cmd car_service inject-key 23 -a down && sleep 2 && adb shell cmd car_service inject-key 23 -a up