(self)
return False
check if we can write to /system
check if we can write to /system
check if we can write to / system
def _check_mounted_system(self):
        """ check if we can write to /system
        """
        res = self.su_cmd('touch /system/.dwarf_check')
        if res == '':
            res = self._do_adb_command('shell ls -la /system')
            if '.dwarf_check' in res:
                res = self.su_cmd('rm /system/.dwarf_check')
                if res == '':
                    return True
        elif res == 'Read-only file system':
            return False

        return False
def _check_mounted_system ( self ) : res = self . su_cmd ( 'touch /system/.dwarf_check' ) if res == '' : res = self . _do_adb_command ( 'shell ls -la /system' ) if '.dwarf_check' in res : res = self . su_cmd ( 'rm /system/.dwarf_check' ) if res == '' : return True elif res == 'Read-only file system' : return False return False