summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author William Hester <williamhester@google.com> 2022-05-24 13:31:57 -0700
committer William Hester <williamhester@google.com> 2022-05-27 15:56:16 -0700
commitdfca3dbdb6b7fd922d78b5776d7da65c30d6f8fb (patch)
tree585a6453e831d6c4a32fc8a9588e7bf36f79801a /api/api.go
parentf012e83299e33e15071f09b952c13770bc8e6551 (diff)
Consolidate point where ADB is enabled for Test Harness Mode
Test Harness Mode relies on enabling ADB upon boot. However, currently, there appears to be a race condition when enabling ADB. Test Harness Mode enables ADB in PHASE_BOOT_COMPLETED, and ADB sets itself up in PHASE_ACTIVITY_MANAGER_READY, both by writing a setting. It appears that sometimes, the setting for initializing ADB's state commits *after* the setting to enable ADB for Test Harness Mode, which means that ADB turns on for a brief moment, then off until the device is manually fixed. This changes it so that the AdbService checks the Test Harness Mode property when initializing ADB state, always enabling ADB on boot if Test Harness Mode is enabled. Bug: 232813060 Test: tested with user and userdebug builds, both enable adb correctly Change-Id: I518415dda275bc3d563820ead611e5f017368c95
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions