(self)
return None
Returns version from 'frida --version'
Returns version from 'frida --version'
Returns version from frida -- version
def get_frida_version(self):
        """ Returns version from 'frida --version'
        """
        if not self.available():
            return None

        result = self._do_adb_command('shell frida --version')
        if result:
            if 'not found' in result or 'No such file or directory' in result:
                result = self._do_adb_command('shell frida-server --version')
                if result and 'not found' in result:
                    return None
                elif result:
                    self._alternate_frida_name = True
        else:
            return None

        result = result.split(os.linesep)
        check_ver = result[len(result) - 2].replace('\r', '').split('.')
        if len(check_ver) == 3:
            try:
                v_major = int(check_ver[0])
                v_minor = int(check_ver[1])
                v_patch = int(check_ver[2])

                if v_major >= 12 and v_minor >= 8:
                    return '.'.join(check_ver)
                else:
                    #print('frida version is outdated')
                    return '.'.join(check_ver)
            except ValueError:
                return None

        return None
def get_frida_version ( self ) : if not self . available ( ) : return None result = self . _do_adb_command ( 'shell frida --version' ) if result : if 'not found' in result or 'No such file or directory' in result : result = self . _do_adb_command ( 'shell frida-server --version' ) if result and 'not found' in result : return None elif result : self . _alternate_frida_name = True else : return None result = result . split ( os . linesep ) check_ver = result [ len ( result ) - 2 ] . replace ( '\r' , '' ) . split ( '.' ) if len ( check_ver ) == 3 : try : v_major = int ( check_ver [ 0 ] ) v_minor = int ( check_ver [ 1 ] ) v_patch = int ( check_ver [ 2 ] ) if v_major >= 12 and v_minor >= 8 : return '.' . join ( check_ver ) else : #print('frida version is outdated') return '.' . join ( check_ver ) except ValueError : return None return None