title: Android emulator https proxy
body: <p>I'm building an app (android + iOS) that needs to be able to reach an API Endpoint through a https proxy.
  The development environment is Android Studio + Xcode + macOS.</p>
  
  <p>My development path is:</p>
  
  <ol>
  <li>Reach the endponit using android emulator settings.</li>
  <li>Reach the endpoint using real andorid device settings.</li>
  <li>Reach the endpoint using inapp solution implenting the https proxy connection management inside the app.</li>
  </ol>
  
  <p>Since I'm at the first point, my problem is that I'm not able to setup the Android emulator with the https proxy.
  (For iOS app, just setting up the mac network preferences is enought)
  In Android, I successly set up the http, but not the https.</p>
  
  <p>I have tried setting up the apn at the vitrual device, and running the emulator with <code>-http-proxy</code>. 
  According to the <a href="https://developer.android.com/studio/run/emulator-commandline.html" rel="nofollow noreferrer">documentation</a> it includes https proxy, but it still not working.
  The debugger saids that the server response is null when calling https. Http redirects to https.</p>
  
  <p>All of those solutions just works for the http, not for the https.
  I have also tried whit genymotion with no success.</p>
  
  <p>I have tested the API from my computer (via postman) and it is all ok.</p>
  
  <p>Has anyone been able to successfully access an https proxy from the Android emulator? It's possible? What settings am I omitting?</p>
  
  <p>Thank you so much in advance.</p>
  
  <p>PS: My problem is related with HTTPS, I am able to use HTTP proxy</p>