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

Commit 87cddf56 authored by Jizheng Chu's avatar Jizheng Chu
Browse files

Fix bt disable cmd in gd device set up

Bug: 222240272
Change-Id: I87878e5dd8f55ac0ccf2f895e67ca62d9c21f0b9
Test: gd/cert/run
Tag: #refactor
parent 6bd7b3c5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -527,7 +527,9 @@ class GdAndroidDevice(GdDeviceBase):

        # Ensure Bluetooth is disabled
        self.ensure_no_output(self.adb.shell("settings put global ble_scan_always_enabled 0"))
        self.ensure_no_output(self.adb.shell("svc bluetooth disable"))
        self.adb.shell("cmd bluetooth_manager disable")
        device_bt_state = int(self.adb.shell("settings get global bluetooth_on"))
        asserts.assert_equal(device_bt_state, 0, "Failed to disable Bluetooth on device %s %s" % (self.label, self.serial_number))
        logging.info("Bluetooth disabled on device %s %s" % (self.label, self.serial_number))

        # Start logcat logging