[Android Apps] uengine安卓程序如何使用代理
Tofloor
poster avatar
bigben446
deepin
2022-07-05 05:52
Author

在desktop文件里面exec加上代理好像都不成功

比如原来的:

Exec=uengine launch --action=android.intent.action.MAIN --package=com.twitter.android --component=com.twitter.android.StartActivity

加了代理:

Exec=env http_proxy=http://127.0.0.1:46551 https_proxy=http://127.0.0.1:46551 socks5_proxy=http://127.0.0.1:40823 uengine launch --action=android.intent.action.MAIN --package=com.twitter.android --component=com.twitter.android.StartActivity

Exec=uengine launch --action=android.intent.action.MAIN --package=com.twitter.android --component=com.twitter.android.StartActivity --proxy-server="http://127.0.0.1:46551" --proxy-server="https://127.0.0.1:46551" --proxy-server="socks5://127.0.0.1:40823"

Reply Favorite View the author
All Replies
安洛
deepin
2022-07-05 06:35
#1

试下用uengine安装安卓的代理软件开启代理?

Reply View the author
gfdgd_xi
deepin
Ecological co-builder
2022-07-08 18:33
#2

可以试一下用 adb,可以用的命令如下:

adb shell settings put global http_proxy 代理IP地址:端口号

如:

adb shell settings put global http_proxy 127.0.0.1:8888

移除代理:

adb shell settings delete global http_proxy

adb shell settings delete global global_http_proxy_host

adb shell settings delete global global_http_proxy_port

注意:移除代理后要重启手机才能生效。设置代理可以多次设置,立即生效。
如何让 adb 连接 UEngine,可以用 UEngine 运行器的 adb 补丁功能:
image.png

Reply View the author
bigben446
deepin
2022-07-09 08:38
#3
gfdgd_xi

可以试一下用 adb,可以用的命令如下:

adb shell settings put global http_proxy 代理IP地址:端口号

如:

adb shell settings put global http_proxy 127.0.0.1:8888

移除代理:

adb shell settings delete global http_proxy

adb shell settings delete global global_http_proxy_host

adb shell settings delete global global_http_proxy_port

注意:移除代理后要重启手机才能生效。设置代理可以多次设置,立即生效。
如何让 adb 连接 UEngine,可以用 UEngine 运行器的 adb 补丁功能:
image.png

谢谢,我有空去试一试

Reply View the author