Skip to content

Android

Terminal window
sieve android setup # route the device through sieve
sieve android teardown # undo when done

setup uses adb reverse and sets the device’s http_proxy, then runs the proxy and the web UI. Use --serial to pick a device when more than one is connected.

Install the CA from /sdcard/Download/sieve-ca.crt via Settings → Security → Install certificate.

Apps targeting Android 7+ ignore user CAs by default. For your own debug build, print the network_security_config.xml snippet you need:

Terminal window
sieve android nsc

Check that the device is routed to a running proxy:

Terminal window
sieve android health
Terminal window
sieve android inject-ca

This installs the CA into the system store, so apps trust it without any app changes.

It requires a Google APIs emulator image (not Google Play) or a rooted device. It does not survive a reboot.

Some apps bypass http_proxy. sieve android vpn routes all TCP traffic through sieve with a VPN companion app. Install the app from android-vpn/ first.

Terminal window
sieve android vpn

If TLS handshakes fail for a host, the app probably pins its certificate. See Certificate pinning.