如何用adb shell如何启动clash meta并自动打开代理呢 #353
Unanswered
mailfarmer
asked this question in
Q&A
Replies: 1 comment 6 replies
-
adb shell am start -n com.github.metacubex.clash.meta/com.github.kr328.clash.ExternalControlActivity -a com.github.metacubex.clash.meta.action.START_CLASH adb shell am start -n com.github.metacubex.clash.meta/com.github.kr328.clash.ExternalControlActivity -a com.github.metacubex.clash.meta.action.STOP_CLASH |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
手机上装了macrodroid,想实现如下功能,连上家里WiFi,自动关闭clash meta,断开家里Wifi,自动打开clash meta并使能代理。
我在macrodroid的模板市场找到了类似的模板,它是调用adb shell来实现关闭与启动clash meta的,关闭没有问题,启动clash meta也可以,就是启动后不能自动使能代理,需要人工去点击启动。
启动用的shell脚本如下:
adb shell am start-foreground-service com.github.metacubex.clash.meta/com.github.kr328.clash.service.TunService
请问我该如何做
Beta Was this translation helpful? Give feedback.
All reactions