(self, daemonize=True, restart=False)
return self.is_frida_running()
Starts/Restarts frida on device
Starts/Restarts frida on device
Starts / Restarts frida on device
def start_frida(self, daemonize=True, restart=False):
        """ Starts/Restarts frida on device
        """
        if not self.available():
            return False

        if self.is_frida_running():
            if not restart:
                return True

            self.kill_frida()

        if not daemonize:
            if self._alternate_frida_name:
                result = self.su_cmd('frida-server &')
            else:
                result = self.su_cmd('frida &')
        else:
            # with nox it starts frida fine but keeps running
            # without return so it needs some timeout here
            if self._alternate_frida_name:
                result = self.su_cmd('frida-server -D', timeout=5)
            else:
                result = self.su_cmd('frida -D', timeout=5)

        if result and 'Unable to start server' in result:
            return False

        return self.is_frida_running()
def start_frida ( self , daemonize = True , restart = False ) : if not self . available ( ) : return False if self . is_frida_running ( ) : if not restart : return True self . kill_frida ( ) if not daemonize : if self . _alternate_frida_name : result = self . su_cmd ( 'frida-server &' ) else : result = self . su_cmd ( 'frida &' ) else : # with nox it starts frida fine but keeps running # without return so it needs some timeout here if self . _alternate_frida_name : result = self . su_cmd ( 'frida-server -D' , timeout = 5 ) else : result = self . su_cmd ( 'frida -D' , timeout = 5 ) if result and 'Unable to start server' in result : return False return self . is_frida_running ( )