(self, cmd, timeout=60)
return res
helper for calling adb
helper for calling adb
helper for calling adb
def _do_adb_command(self, cmd, timeout=60):
        """ helper for calling adb
        """
        if not self.is_adb_available():
            return None

        # TODO: for android sdk emulator its using -e
        res = utils.do_shell_command(
            'adb -s ' + self._device_serial + ' ' + cmd, timeout=timeout)

        if res and 'no device' in res:
            return None

        return res
def _do_adb_command ( self , cmd , timeout = 60 ) : if not self . is_adb_available ( ) : return None # TODO: for android sdk emulator its using -e res = utils . do_shell_command ( 'adb -s ' + self . _device_serial + ' ' + cmd , timeout = timeout ) if res and 'no device' in res : return None return res