adb操作openvpn自动连接

发布时间:2023-01-22 00:54:34 阅读:1376次

open维匹恩到目前为止还是没有实现打开自动连接

今天看下如何用adb来操作open维匹恩实现打开自动连接

C:\Users\Administrator>adb shell pm list packages
adb.exe: more than one device/emulator

C:\Users\Administrator>adb shell dumpsys activity activities | findstr "Run"
adb.exe: more than one device/emulator

C:\Users\Administrator>adb shell dumpsys activity activities | findstr "Run"
    Running activities (most recent first):
        Run #0: ActivityRecord{7c7824d u0 net.openvpn.openvpn/net.openvpn.unified.MainActivity t559}
    Running activities (most recent first):
        Run #0: ActivityRecord{27fff96 u0 com.oppo.launcher/.Launcher t1}
    Running activities (most recent first):
        Run #1: ActivityRecord{d838424 u0 com.android.settings/.SubSettings t558}
        Run #0: ActivityRecord{4969995 u0 com.android.settings/.Settings t558}
    Running activities (most recent first):
        Run #0: ActivityRecord{9201909 u0 com.tencent.mm/.ui.LauncherUI t540}
    Running activities (most recent first):
        Run #0: ActivityRecord{e2eea17 u0 com.heytap.browser/com.android.browser.BrowserActivity t551}
    Running activities (most recent first):
        Run #0: ActivityRecord{33a6a60 u0 com.carriez.flutter_hbb/.MainActivity t537}
    Running activities (most recent first):
        Run #1: ActivityRecord{23910b2 u0 com.cgutman.androidremotedebugger/.AdbShell t548}
        Run #0: ActivityRecord{9646965 u0 com.cgutman.androidremotedebugger/.ConnectActivity t548}
    Running activities (most recent first):
        Run #0: ActivityRecord{5df723e u0 com.android.incallui/.OppoInCallActivity t348}

C:\Users\Administrator>adb shell dumpsys window | findstr mCurrentFocus
  mCurrentFocus=Window{9e01b45 u0 net.openvpn.openvpn/net.openvpn.unified.MainActivity}

C:\Users\Administrator>adb shell am start adb shell dumpsys activity activities | findstr "Run"
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=adb }

C:\Users\Administrator>adb shell am start net.openvpn.openvpn/net.openvpn.unified.MainActivity
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=net.openvpn.openvpn/net.openvpn.unified.MainActivity }
Warning: Activity not started, its current task has been brought to the front

C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>adb shell input tap 338 388

C:\Users\Administrator>

如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术

支付宝 微信

有疑问联系站长,请联系QQ:QQ咨询

转载请注明:adb操作openvpn自动连接 出自老鄢博客 | 欢迎分享