def reboot(): """Reboots device and clear config state.""" # Make sure to clear logcat before reboot occurs. In case of kernel crashes, # we use the log before reboot, so it is good to clear it when we are doing # the reboot explicitly. logger.clear_log() # Reboot. logs.log('Rebooting device.') adb.reboot() # Wait for boot to complete. adb.wait_until_fully_booted()
def reboot(): """Reboots device and clear config state.""" # Make sure to clear logcat before reboot occurs. In case of kernel crashes, # we use the log before reboot, so it is good to clear it when we are doing # the reboot explicitly. logger.clear_log() # Reboot. logs.log('Rebooting device.') adb.reboot() # Wait for boot to complete. adb.wait_until_fully_booted() # Start memory monitor script to prevent out-of-memory scenarios. setup_memory_monitor_script_if_needed()