(self)
return not self.is_frida_running()
Kills frida on device
Kills frida on device
Kills frida on device
def kill_frida(self):
        """ Kills frida on device
        """
        if not self.available():
            return False

        if self._have_killall:
            if self._alternate_frida_name:
                self.su_cmd('killall -9 frida-server')
            else:
                self.su_cmd('killall -9 frida')

        elif self._have_pidof:
            if self._alternate_frida_name:
                pid = self.su_cmd('pidof -s frida-server')
                if pid:
                    pid = pid.join(pid.split())  # remove \r\n
                    self.su_cmd('kill -9 %s' % pid)
            else:
                pid = self.su_cmd('pidof -s frida')
                if pid:
                    pid = pid.join(pid.split())  # remove \r\n
                    self.su_cmd('kill -9 %s' % pid)
        else:
            if self._oreo_plus:
                self.su_cmd(
                    'kill -9 $(ps -A | grep frida | awk \'{ print $1 }\')')
            else:
                self.su_cmd(
                    'kill -9 $(ps | grep frida | awk \'{ print $2 }\')')

        return not self.is_frida_running()
def kill_frida ( self ) : if not self . available ( ) : return False if self . _have_killall : if self . _alternate_frida_name : self . su_cmd ( 'killall -9 frida-server' ) else : self . su_cmd ( 'killall -9 frida' ) elif self . _have_pidof : if self . _alternate_frida_name : pid = self . su_cmd ( 'pidof -s frida-server' ) if pid : pid = pid . join ( pid . split ( ) ) # remove \r\n self . su_cmd ( 'kill -9 %s' % pid ) else : pid = self . su_cmd ( 'pidof -s frida' ) if pid : pid = pid . join ( pid . split ( ) ) # remove \r\n self . su_cmd ( 'kill -9 %s' % pid ) else : if self . _oreo_plus : self . su_cmd ( 'kill -9 $(ps -A | grep frida | awk \'{ print $1 }\')' ) else : self . su_cmd ( 'kill -9 $(ps | grep frida | awk \'{ print $2 }\')' ) return not self . is_frida_running ( )