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

Commit fe29ebec authored by Jizheng Chu's avatar Jizheng Chu Committed by Gerrit Code Review
Browse files

Merge "Fix bt disable cmd in gd device set up"

parents 9a92ea2e 87cddf56
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