mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Sync wait for the bluetooth to be disabled / enabled am: 29120123a8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2682567 Change-Id: If48483f0c01b96f0c6bb26515886406bbe42c641 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -24,8 +24,10 @@
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
|
||||
<option name="run-command" value="settings put global ble_scan_always_enabled 0" />
|
||||
<option name="run-command" value="su u$(am get-current-user)_system svc bluetooth disable" />
|
||||
<option name="teardown-command" value="su u$(am get-current-user)_system svc bluetooth enable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager disable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager wait-for-state:STATE_OFF" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager enable" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager wait-for-state:STATE_ON" />
|
||||
<option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
|
||||
</target_preparer>
|
||||
|
||||
|
||||
@@ -22,8 +22,10 @@
|
||||
|
||||
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
|
||||
<option name="run-command" value="settings put global ble_scan_always_enabled 0" />
|
||||
<option name="run-command" value="su u$(am get-current-user)_system svc bluetooth disable" />
|
||||
<option name="teardown-command" value="su u$(am get-current-user)_system svc bluetooth enable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager disable" />
|
||||
<option name="run-command" value="cmd bluetooth_manager wait-for-state:STATE_OFF" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager enable" />
|
||||
<option name="teardown-command" value="cmd bluetooth_manager wait-for-state:STATE_ON" />
|
||||
<option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
|
||||
</target_preparer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user