How to connect to a proxy on Android?

I have a Samsung Galaxy S running Android 2.2. I want to track all HTTP requests (browser and applications) with Charles (proxy installed on my computer)

Like on the iPhone, where you go to settings, Wi-Fi and the correct connection, you can choose the HTTP proxy settings

+4
source share
6 answers

You can do this with Wireshark: http://www.wireshark.org/download.html

The instructions below are for Mac + Android device:

Start the terminal and run the following commands:

cd /dev sudo chmod a+r bpf* 

Internet connection using Ethernet cable

Click the "Airport / Wi-Fi" icon in the upper right corner of the screen and select "Create Network"; remember the name you give to this network

Go to the "System Preferences" section, open the "Sharing" panel, select (but do not check) "Internet Sharing"

Select "Shared Connection": "Ethernet", "To computers using: check AirPort / Wi-Fi

Click "AirPort / Wi-Fi Settings" and enter the network name that you selected above (it should be displayed automatically, so just click "OK")

Check the box next to "Internet sharing"

Click Start

Connect your Android device to the network you just created.

Launch Wireshark

From the menu, choose Capture โ†’ Interfaces. Click "Options" next to en1 (or some Wi-Fi icon)

Click the Capture Filter button:

If you want, select one of the filters, for example HTTP TCP Port (80) and click OK

Click Start

+4
source

There is currently no proxy on Android. Several alternatives are discussed on this page . Also google for the โ€œAndroid proxyโ€ to find out what other alternatives are there.

+2
source
0
source

Some alternatives to partial proxy support for Android are listed here: http://issue1273.blogspot.com . There is also an Android Proxy Library that attempts to abstract access to proxy settings for each version of Android.

0
source

Here you can find a very good entry on the Charles setup procedure with Android, including certificate installation, so you can also debug / proxy your SSL traffic:

http://jaanus.com/post/17476995356/debugging-http-on-an-android-phone-or-tablet-with

0
source

Since Android Studio 3.0 release , android now supports proxy server setup natively. See the documentation .

0
source

Source: https://habr.com/ru/post/1346908/


All Articles