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

Commit ff69e1b4 authored by Jizheng Chu's avatar Jizheng Chu Committed by Automerger Merge Worker
Browse files

Merge "Fix bt disable cmd in gd device set up" am: fe29ebec am: d27a7e94

parents b5464491 d27a7e94
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