(self)
thread func
thread func
thread func
def run(self):
        """ thread func
        """
        if self.device is not None:
            try:
                apps = self.device.enumerate_applications()
                for app in sorted(apps, key=lambda x: x.name):
                    self.add_spawn.emit([app.name, app.identifier])
            except frida.ServerNotRunningError:
                self.is_error.emit('unable to connect to remote frida server: not started')
            except frida.TransportError:
                self.is_error.emit('unable to connect to remote frida server: closed')
            except frida.TimedOutError:
                self.is_error.emit('unable to connect to remote frida server: timedout')
            except Exception as e:  # pylint: disable=broad-except
                self.is_error.emit('something was wrong...\n' + str(e))

        self.is_finished.emit()
def run ( self ) : if self . device is not None : try : apps = self . device . enumerate_applications ( ) for app in sorted ( apps , key = lambda x : x . name ) : self . add_spawn . emit ( [ app . name , app . identifier ] ) except frida . ServerNotRunningError : self . is_error . emit ( 'unable to connect to remote frida server: not started' ) except frida . TransportError : self . is_error . emit ( 'unable to connect to remote frida server: closed' ) except frida . TimedOutError : self . is_error . emit ( 'unable to connect to remote frida server: timedout' ) except Exception as e : # pylint: disable=broad-except self . is_error . emit ( 'something was wrong...\n' + str ( e ) ) self . is_finished . emit ( )