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.