<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>zaptun: Android Interception on ZAP</title>
    <link>/docs/desktop/addons/zaptun-android-interception/</link>
    <description>Recent content in zaptun: Android Interception on ZAP</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="/docs/desktop/addons/zaptun-android-interception/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Options Android (zaptun) screen</title>
      <link>/docs/desktop/addons/zaptun-android-interception/options/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/desktop/addons/zaptun-android-interception/options/</guid>
      <description>&lt;h1 id=&#34;options-android-zaptun-screen&#34;&gt;Options Android (zaptun) screen&lt;/h1&gt;&#xA;&lt;p&gt;This screen sets where zaptun finds adb. Open it from &lt;strong&gt;Tools &amp;gt; Options &amp;gt; Android (zaptun)&lt;/strong&gt; , or with &lt;strong&gt;Options&amp;hellip;&lt;/strong&gt; in the Android Devices dialog.&lt;/p&gt;&#xA;&#xA;&lt;h3 id=&#34;android-sdk&#34;&gt;Android SDK &lt;a class=&#34;header-link&#34; href=&#34;#android-sdk&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h3&gt;&#xA;&lt;p&gt;The Android SDK folder. adb is taken from its &lt;code&gt;platform-tools&lt;/code&gt; folder.&lt;/p&gt;</description>
    </item>
    <item>
      <title>zaptun API</title>
      <link>/docs/desktop/addons/zaptun-android-interception/api/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/desktop/addons/zaptun-android-interception/api/</guid>
      <description>&lt;h1 id=&#34;zaptun-api&#34;&gt;zaptun API&lt;/h1&gt;&#xA;&lt;p&gt;Everything the Android Devices dialog does is also on the ZAP API, under the &lt;code&gt;zaptun&lt;/code&gt; component, for scripts, CI and ZAP running headless. Progress and the reasons for failures are written to ZAP&amp;rsquo;s log (&lt;code&gt;zap.log&lt;/code&gt;).&lt;/p&gt;&#xA;&#xA;&lt;h2 id=&#34;views&#34;&gt;Views &lt;a class=&#34;header-link&#34; href=&#34;#views&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;devices&lt;/strong&gt;: every adb device, with its serial, state, model, Android version, SDK level, root method, and whether zaptun is installed and intercepting.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;packages&lt;/strong&gt; (&lt;code&gt;serial&lt;/code&gt;): the third-party apps installed on a device.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;adb&lt;/strong&gt;: the adb binary zaptun runs.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;optionAdbPath&lt;/strong&gt; , &lt;strong&gt;optionSdkPath&lt;/strong&gt; , &lt;strong&gt;optionApps&lt;/strong&gt;: the saved options.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 id=&#34;actions&#34;&gt;Actions &lt;a class=&#34;header-link&#34; href=&#34;#actions&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;intercept&lt;/strong&gt; (&lt;code&gt;serial&lt;/code&gt;, &lt;code&gt;apps&lt;/code&gt;): sets the device up and starts capturing its traffic. Without a serial, the only connected device is used. &lt;code&gt;apps&lt;/code&gt; is an optional, comma-separated list of package names; leave it out to capture every app.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;stop&lt;/strong&gt; (&lt;code&gt;serial&lt;/code&gt;): stops capturing.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;setOptionAdbPath&lt;/strong&gt; , &lt;strong&gt;setOptionSdkPath&lt;/strong&gt; , &lt;strong&gt;setOptionApps&lt;/strong&gt;: set the options.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;useDetectedAdb&lt;/strong&gt;: clears the adb and SDK paths, so adb is detected from the environment again.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 id=&#34;examples&#34;&gt;Examples &lt;a class=&#34;header-link&#34; href=&#34;#examples&#34;&gt;&lt;svg class=&#34;fill-current o-60 hover-accent-color-light&#34; height=&#34;22px&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;22px&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;path d=&#34;M0 0h24v24H0z&#34; fill=&#34;none&#34;/&gt;&lt;path d=&#34;M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z&#34; fill=&#34;currentColor&#34;/&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;curl &amp;#34;http://localhost:8080/JSON/zaptun/view/devices/?apikey=$KEY&amp;#34;&#xA;curl &amp;#34;http://localhost:8080/JSON/zaptun/action/intercept/?apikey=$KEY&amp;amp;serial=emulator-5554&amp;amp;apps=com.example.app&amp;#34;&#xA;curl &amp;#34;http://localhost:8080/JSON/zaptun/action/stop/?apikey=$KEY&amp;amp;serial=emulator-5554&amp;#34;&#xA;curl &amp;#34;http://localhost:8080/JSON/zaptun/action/setOptionSdkPath/?apikey=$KEY&amp;amp;String=/opt/android-sdk&amp;#34;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The options can also be set when starting ZAP, e.g. &lt;code&gt;zap.sh -daemon -config zaptun.sdkPath=/opt/android-sdk&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
