title: Remove the global http_proxy without rebooting the Android device
body: <p>I use the <a href="https://stackoverflow.com/a/47476009/11712282">following code</a> to set up Android HTTP proxy via command-line tool adb.</p>
  
  <pre><code>adb shell settings put global http_proxy &lt;ip&gt;:&lt;port&gt;
  </code></pre>
  
  <p>However, when I want to undo the proxy settings, the following code does not remove the proxy. Although it clears those system attributes, the Android device still tries to connect <code>&lt;ip&gt;:&lt;port&gt;</code></p>
  
  <pre><code>adb shell settings delete global http_proxy
  adb shell settings delete global global_http_proxy_host
  adb shell settings delete global global_http_proxy_port
  </code></pre>
  
  <p>I have to reboot the Android device to remove the proxy. Is there an approach to clean the proxy without rebooting the device?</p>
  
  <p>The Android version is 7.0.</p>
  
  <p>To reproduce this problem:</p>
  
  <pre><code># Set up a proxy
  adb shell settings put global http_proxy &lt;ip&gt;:&lt;port&gt;
  
  # Remove them
  adb shell settings delete global http_proxy
  adb shell settings delete global global_http_proxy_host
  adb shell settings delete global global_http_proxy_port
  
  # Then open a browser, it will still connect to the proxy ip and port
  </code></pre>