def get_boot_mode(self): """ get the boot mode from adb :rtype: string :return: device state """ if self._android_codeline == "AIA": mode = AndroidDeviceBase.get_boot_mode(self) else: mode = IntelDeviceBase.get_boot_mode(self) return mode
def get_boot_mode(self): """ get the boot mode from adb :rtype: string :return: device state : MOS, ROS, POS, DNX, COS or UNKNOWN """ # Hack to avoid usb unplug/replug at the beginning of boot if self.prevent_usb_plug > 0: self.prevent_usb_plug -= 1 time.sleep(5) return "UNKNOWN" return IntelDeviceBase.get_boot_mode(self)