SO many people may be want to use proxy in mobile device for any reason. But in android if you set proxy in wifi settings than it will be applied only on browsers and some other apps that determine the proxy configuration in wifi settings and use that.
but most social media applications don’t respect proxy configuration made in wifi settings. So we need a way to force all traffic through the proxy.
well there is a way and I am sharing the method here to apply global proxy in android. this method will send all the traffic through proxy for sure. because I have tested the method with local proxy server by monitoring live logs.
We don’t need any kind of external thing to apply the proxy in android device.
We don’t even need root access in device this method will work on un-rooted phones also so this will be a great plus point.
It can be done with just simple adb commands.
Just follow below steps.
=> Enable USB debug in android device from Developer option
=> Screenshot by Lightshot
=> Download android-platform tools from google. Just make simple search on google you will find easily.
=> Unzip the file you have downloaded fro platform-tools.
=> Open the folder which have adb.exe
=> Now open command prompt at the directory which have adb.exe file.
=> Now connect your device to PC with USB cable.
=> Your device will ask for adb access permission whenever you have connected the device 1st time after enabling the usb debug option.
=> Just accept or grant the permission from the dialogue box automatically appeared on device.
=> Screenshot by Lightshot
=> If no dialogue appeared still just wait. When you will run 1st command then the dialogue will 100% appear on mobile screen.
=> type the command : adb devices
=> Check if you can see your device is showing connected or not.
=> check screenshot Screenshot by Lightshot
=> If you can see the device connected than you can proceed further.
=> The connected devices will be shown in Command prompt as below.
=> Screenshot by Lightshot
=> If you can see the device connected like above run second command or just solve the connection issue if you have any.
=> After successfull connection you have to keep two commands to remember. One for adding the proxy and one for removing the proxy.
#To Add Proxy
adb shell settings put global http_proxy IP:PORT
Example:
adb shell settings put global http_proxy 192.168.1.252:8080
#To Remove Proxy
adb shell settings put global http_proxy :0
Check the above procedure and let me know if you find any difficulty. I am happy to help.
And the best thing in this method is it will also work after reboot. So once you setup the proxy just don’t worry your all traffic will go through the proxy. And whenever you want to remove the proxy just run the command to remove it.