How to set Proxy Auto Config (PAC) file in sdcard of Android

Aaron Lee picture Aaron Lee · Apr 17, 2015 · Viewed 20.6k times · Source

Excuse me? I pushed the file 'proxy.pac' to sdcard using this command:

 adb push C:\Users\zuokang.li\Documents\proxy.pac /sdcard/ 

I try to set proxy auto config in android. So I set pac url "file:///sdcard/proxy.pac".But it cannot work.

I don't know whether it is set right. Can you help me ? Thanks!

enter image description here

Answer

Andrés Morales picture Andrés Morales · Oct 18, 2017

I experienced the same issue with my android phone, and searching for a solution I noted that the only one is to access to a web server for getting the .pac file (as Roy explains). But I wanted the solution (all about this) locally in my phone.

I installed a thin web server in my phone called SimpleHttpServer from Google Play and proceed as you do to set the .pac file using the URL provided by the web server (previously, I created a directory, located the .pac file inside it and pointed the web server root folder to that directory).

Additionally, I installed Simple Text Editor for .pac file edition and everything works as expected.