| commit | 3389de9a533bdb8fe7965f32a3ebfa971ed3651a | [log] [tgz] |
|---|---|---|
| author | Xin Li <[email protected]> | Sat Mar 08 16:09:52 2025 -0800 |
| committer | Xin Li <[email protected]> | Sat Mar 08 16:09:52 2025 -0800 |
| tree | 18c5a568c0682887aac3c308212e32b0afe75d52 | |
| parent | 05a8ef8077ae0a27920c569ed406c7115c912c3c [diff] | |
| parent | 2d0154464b6083bff8f93b5d7291c7ad7f559f09 [diff] |
Merge 25Q1 (ab/BP1A.250305.020) to AOSP main Bug: 385190204 Merged-In: I78f38a9198f59f0f875c9b3eaa9aaca45f58b5ea Change-Id: I9489a505f39d15aa0700adcc99f379030eab9d5f
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