Tutorials / Get started

Connect a device

Point an iOS Simulator, an Android emulator or a USB Android phone at Lynkei, with the certificate installed, in one click.

2 minutesiOS Simulator · Android emulator · Android over USB

Before you start

Connect it

  1. Click Connect device, or click the device in the sidebar. Every device Lynkei can see is shown as a card.
  2. Press Connect on the card. Lynkei sets the proxy and installs its certificate.
  3. Use your app. The card ticks off Proxy, Certificate trusted and Traffic seen, and calls appear in the list as they happen.
Connect a device screen: the This Mac certificate card and an Android emulator card with its Send traffic through Lynkei switch and Proxy, Certificate trusted and Traffic seen checks
An Android emulator, connected. Each check says what Lynkei did and anything it could not do.

How each kind of device is set up

DeviceProxyCertificate
iOS SimulatorUses your Mac's proxy setting, so it is shared by every booted simulator.Installed into the simulator for you.
Android emulator or USB phoneadb reverse plus the device proxy, pointing at 127.0.0.1:8888. No Wi-Fi needed.Installed for every app on emulators that allow root. Otherwise saved to Downloads for you to install (below).
Android phone over Wi-FiScan the QR code on the Your Android phone card; the page shows the exact Wi-Fi proxy settings.Downloaded from the same page.
iPhone or iPadSet up by hand over Wi-Fi. See Real iPhone on Wi-Fi.

When the Android certificate needs you

Emulators with a Google Play image don't allow root, so Lynkei can't add its certificate for every app. It saves lynkei-ca.crt in Downloads and opens Settings. Install it from Security → Encryption & credentials → Install a certificate → CA certificate.

A certificate you install yourself is trusted by browsers and by apps that accept user certificates, which most debug builds do. Store apps usually don't. For those, create an emulator with a Google APIs image (no Play Store icon) in Android Studio's Device Manager, and Lynkei installs the certificate for every app.

No cable?

Pair with adb on the Android card pairs a phone over Wireless debugging, and it then shows up like a USB device.

Disconnect

Disconnect undoes every change Lynkei made to the device. To stop capturing for a while without undoing anything, use the per-device proxy switch.

From the command line or an agent

Terminal
lynkei devices
lynkei devices connect emulator-5554