4

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

Aaron Lee
  • 751
  • 2
  • 8
  • 18

4 Answers4

1

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

Roy
  • 11
  • 1
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.

Andrés Morales
  • 793
  • 7
  • 20
0

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

abeagomez
  • 562
  • 1
  • 4
  • 16
0

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,
CitrusO2
  • 846
  • 10
  • 17
syphyr
  • 1