Android device: set Wifi Proxy with ADB command

Every time we configure Charles we need to manually configure device wifi proxy settings.

Manual steps to enable Charles:

Go to Wifi settings -> edit -> Proxy -> manual -> enter the “Proxy hostname” (IP address) -> enter the “Proxy port” (8888).

Automate with ADB command: