The default proxy of Android SDK manager (android-sdk-manager) is HTTP, but the problem is how can I use it with SOCKS (My OS is Windows 7)?
JVM has environment variable for proxy.
[Linux]
export _JAVA_OPTIONS="-DsocksProxyHost=<YourProxyHost>"
[Windows]
set _JAVA_OPTIONS="-DsocksProxyHost=<YourProxyHost>"
Default port for socks proxy is 1080, If you are running your proxy in another port you have to tell jvm which port is it.
[Linux]
export _JAVA_OPTIONS="-DsocksProxyHost=<YourProxyHost> -DsocksProxyPort=<YourProxyPort>"
[Windows]
set _JAVA_OPTIONS="-DsocksProxyHost=<YourProxyHost> -DsocksProxyPort=<YourProxyPort>"
And run android sdk manager in current session.
[Linux]
bash /path/to/sdk/tools/android
[Windows]
c:\path\to\android.exe
You will see something like this at the start:
[Linux]
Picked up _JAVA_OPTIONS: -DsocksProxyHost=<YourProxyHost>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With