Skip to content Skip to sidebar Skip to footer

How To Set Proxy Auto Config (pac) File In Sdcard Of Android

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

Solution 1:

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.

Solution 2:

Apparently Android doesn’t accept setting a local PAC file (127.0.0.1 doesn't seem to work either) and may even cause browser crashes for an invalid proxy port (-1). Therefore either

Solution 3:

For use a PAC file in Android you can use Drony, looks ugly, but works! Even if you need authentication.

https://play.google.com/store/apps/details?id=org.sandroproxy.drony

Solution 4:

Since file:/// is disabled on Android, you can convert the pac file to base64 and use this format:

data:application/x-ns-proxy-autoconfig;base64,

Post a Comment for "How To Set Proxy Auto Config (pac) File In Sdcard Of Android"