MCPcopy Create free account
hub / github.com/HexHive/NASS / renew_frida_device

Function renew_frida_device

utils/utils.py:227–241  ·  view source on GitHub ↗
(device_id)

Source from the content-addressed store, hash-verified

225
226
227def renew_frida_device(device_id):
228 devices = frida.enumerate_devices()
229 possible_devices = [d for d in devices if d.type == "usb"]
230 possible_devices = [
231 d for d in possible_devices if not "ios" in d.name.lower()
232 ]
233 possible_devices = [d for d in possible_devices if d.id == device_id]
234 if len(possible_devices) == 0:
235 print(f"frida device not found...")
236 return None
237 elif len(possible_devices) == 1:
238 device = possible_devices[0]
239 return device
240 else:
241 return None
242
243
244def find_binder_func(binder_funcs, name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected