如何在 Android 的 sdcard 中设置代理自动配置 (PAC) 文件 [英] How to set Proxy Auto Config (PAC) file in sdcard of Android

查看:155
本文介绍了如何在 Android 的 sdcard 中设置代理自动配置 (PAC) 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起?我使用以下命令将文件proxy.pac"推送到 sdcard:

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

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

我尝试在 android 中设置代理自动配置.所以我设置了pac urlfile:///sdcard/proxy.pac".但它无法工作.

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!

推荐答案

我的 android 手机遇到了同样的问题,在寻找解决方案时我注意到唯一的解决方案是访问 Web 服务器以获取 .pac 文件(如 Roy 解释的那样).但我想在我的手机本地找到解决方案(所有这些).

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.

我在手机中安装了一个瘦网络服务器,名为 SimpleHttpServer 来自 Google Play 并继续使用 Web 服务器提供的 URL 设置 .pac 文件(以前,我创建了一个目录,位于 .pac 文件,并将 Web 服务器根文件夹指向该目录).

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).

此外,我安装了简单文本编辑器对于 .pac 文件版本,一切都按预期工作.

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

这篇关于如何在 Android 的 sdcard 中设置代理自动配置 (PAC) 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆