How to use the frida.enumerateDevices function in frida

To help you get started, we’ve selected a few frida examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ChiChou / bagbak / lib / device.js View on Github external
static async find(partialId) {
    const list = await frida.enumerateDevices()
    for (let dev of list)
      if (dev.id.startsWith(partialId))
        return new Device(dev)

    throw new Error(`Unable to find device that matches id == ${partialId}`)
  }
github chaitin / passionfruit / lib / utils.js View on Github external
static async getDevice(id) {
    const list = await frida.enumerateDevices()
    const dev = list.find(d => d.id === id && FridaUtil.isUSB(d))

    if (dev) return dev

    throw new DeviceNotFoundError(id)
  }
github chaitin / passionfruit / lib / device.js View on Github external
static async list() {
    const notLocal = device => !['local', 'tcp'].includes(device.id)
    const all = await enumerateDevices()
    return all.filter(notLocal).map(serializeDevice)
  }

frida

Inject JavaScript to explore native apps on Windows, Mac, Linux, iOS and Android

LGPL-2.0 WITH WxWindows-excep…
Latest version published 2 days ago

Package Health Score

66 / 100
Full package analysis