Closed
Description
Describe the bug
The --uid
flag introduced by #526 does not work. Maybe providing a process ID (--pid) flag could be an alternative?
Expected behavior
Attach to the application running under the UID indicated by the --uid
flag.
Evidence / Logs / Screenshots
Running a command like: objection --uid 12 --name com.some.package start
errors out with a stacktrace like the below. It appears that attach()
doesn't actually support a UID parameter.
File "/home/me/objection/utils/agent.py", line 250, in attach
self.session = self.device.attach(self.pid, uid=self.config.uid)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/me/venv/lib/python3.11/site-packages/frida/core.py", line 86, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
TypeError: Device.attach() got an unexpected keyword argument 'uid'
Environment (please complete the following information):
- Frida Version: 16.4.8
- Objection Version: master d9c989d