Skip to content

[FEATURE]frida-server does not work #2587

@kypark-nurilab

Description

@kypark-nurilab

My Environment

  • OS: Ubuntu 24.04
  • Docker Engine: 29.1.4
  • Android: Genymotion Android 11

I pulled the docker image and run it with below command.

docker run -it --rm \
    -p 8000:8000 \
    -p 1337:1337 \
    -e MOBSF_ANALYZER_IDENTIFIER=192.168.56.101:5555 \  # (Genymotion Android 11)
    opensecurity/mobile-security-framework-mobsf:latest

and I tried to analyze some apks with frida scripts. but, failed spawning app with error message.
How can i solve this issue??

[ERROR] 05/Feb/2026 02:18:19 - Not Supported Error
Traceback (most recent call last):
  File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/frida_core.py", line 156, in spawn
    _FPID = device.spawn([self.package])
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 94, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 1007, in spawn
    return self._impl.spawn(program, **kwargs)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
frida.NotSupportedError: need Gadget to attach on jailed Android; its default location is: /home/mobsf/.cache/frida/gadget-android-arm64.so
[ERROR] 05/Feb/2026 02:18:19 - Cannot attach to pid, spawning again
Traceback (most recent call last):
  File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/frida_core.py", line 196, in session
    session = device.attach(_FPID)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 94, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 1049, in attach
    return Session(self._impl.attach(self._pid_of(target), **kwargs))  # type: ignore
                   ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object cannot be interpreted as an integer
[INFO] 05/Feb/2026 02:18:19 - Frida Server is already running
[INFO] 05/Feb/2026 02:18:19 - Spawning com.example.remotekisa
[ERROR] 05/Feb/2026 02:18:19 - Not Supported Error
Traceback (most recent call last):
  File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/frida_core.py", line 196, in session
    session = device.attach(_FPID)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 94, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 1049, in attach
    return Session(self._impl.attach(self._pid_of(target), **kwargs))  # type: ignore
                   ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/frida_core.py", line 156, in spawn
    _FPID = device.spawn([self.package])
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 94, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 1007, in spawn
    return self._impl.spawn(program, **kwargs)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
frida.NotSupportedError: need Gadget to attach on jailed Android; its default location is: /home/mobsf/.cache/frida/gadget-android-arm64.so
[ERROR] 05/Feb/2026 02:18:19 - Error Connecting to Frida
Traceback (most recent call last):
  File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/frida_core.py", line 196, in session
    session = device.attach(_FPID)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 94, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 1049, in attach
    return Session(self._impl.attach(self._pid_of(target), **kwargs))  # type: ignore
                   ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mobsf/Mobile-Security-Framework-MobSF/mobsf/DynamicAnalyzer/views/android/frida_core.py", line 204, in session
    session = device.attach(_FPID)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 94, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.13/site-packages/frida/core.py", line 1049, in attach
    return Session(self._impl.attach(self._pid_of(target), **kwargs))  # type: ignore
                   ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object cannot be interpreted as an integer

Metadata

Metadata

Assignees

Labels

enhancementMobSF enhancements and feature requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions