Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef525f40 authored by David Duarte's avatar David Duarte Committed by Automerger Merge Worker
Browse files

BluetoothInstrumentationTests: Fix bluetooth service disable am: 897c90a7 am: 3780e061

parents 7c353476 3780e061
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -24,10 +24,11 @@
        <option name="force-root" value="true" />
    </target_preparer>
    <target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
        <option name="throw-if-cmd-fail" value="true" />
        <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="run-command" value="cmd bluetooth_manager disable" />
        <option name="run-command" value="setprop bluetooth.profile.hfp.hf.enabled true" />
        <option name="teardown-command" value="su u$(am get-current-user)_system svc bluetooth enable" />
        <option name="teardown-command" value="cmd bluetooth_manager enable" />
        <option name="teardown-command" value="settings put global ble_scan_always_enabled 1" />
        <option name="teardown-command" value="setprop bluetooth.profile.hfp.hf.enabled false" />
    </target_preparer>