LSPosed / MagiskOnWSALocal

Integrate Magisk root and Google Apps into WSA (Windows Subsystem for Android)
GNU Affero General Public License v3.0
9.49k stars 22.97k forks source link

[Bug] VPN Dialog not working on Android 13 #339

Closed SadaydZ closed 1 year ago

SadaydZ commented 1 year ago

Steps to reproduce/复现步骤

  1. Open any VPN app
  2. Try to connect using VPN Dialog
  3. App crashes

Expected behaviour/预期行为

VPN Dialog doesn't work

Actual behaviour/实际行为

VPN Apps crashes on latest WSA Android 13 Update (2211.40000.11.0)

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

f9a8b78ed59abfa7c1055576552c25b75d8cb3ed

Linux distribution info/Linux 发行版信息

WSL with Ubuntu

Windows version/Windows 版本

25272.1000

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type WIF --magisk-ver canary --gapps-brand MindTheGapps --gapps-variant pico --root-sol magisk --compress-format INFO: Architecture: x64 INFO: Release Type: WIF INFO: Magisk Version: canary INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk Build: RELEASE_TYPE=Insider Fast

Version requirement/版本要求

Logs/日志

Here the logs of "Speedtest by Ookla" app. Other VPN apps just crash when you try to open them, like VPNHub. [VPN_SpeedTest.txt] (https://github.com/LSPosed/MagiskOnWSALocal/files/10386578/VPN_log.txt)

Howard20181 commented 1 year ago

Install this update https://github.com/LSPosed/VpnDialogs/actions/runs/3893849959 This is just a workaround The root cause is not yet determined

mstouk57g commented 1 year ago

Install this update https://github.com/LSPosed/VpnDialogs/actions/runs/3893849959 This is just a workaround The root cause is not yet determined

image

Existing package com.android.vpndialogs signatures do not match newer version

s1204IT commented 1 year ago

Please replace directly from the system image file.

luis-arch commented 1 year ago

请问您可以讲清楚怎么替换系统的vpndiags吗。本人尝试过adb root 以及在内部shell获取root都无法卸载Vpndiags。没法实现替换。


Can you tell me how to replace vpndiags in the system? I tried adb root and getting root in the internal shell, but I couldn't uninstall Vpndiags. Unable to achieve replacement.

s1204IT commented 1 year ago

请问您可以讲清楚怎么替换系统的vpndiags吗。本人尝试过adb root 以及在内部shell获取root都无法卸载Vpndiags。没法实现替换。

Can you tell me how to replace vpndiags in the system? I tried adb root and getting root in the internal shell, but I couldn't uninstall Vpndiags. Unable to achieve replacement.

https://github.com/s1204IT/MagiskOnWSALocal/tree/3997b2a Try it.

APK signature is testkey.

mstouk57g commented 1 year ago

请问您可以讲清楚怎么替换系统的vpndiags吗。本人尝试过adb root 以及在内部shell获取root都无法卸载Vpndiags。没法实现替换。 Can you tell me how to replace vpndiags in the system? I tried adb root and getting root in the internal shell, but I couldn't uninstall Vpndiags. Unable to achieve replacement.

https://github.com/s1204IT/MagiskOnWSALocal/tree/3997b2a Try it.

APK signature is testkey.

Build a new one? 构建一个新的?

s1204IT commented 1 year ago

请问您可以讲清楚怎么替换系统的vpndiags吗。本人尝试过adb root 以及在内部shell获取root都无法卸载Vpndiags。没法实现替换。 Can you tell me how to replace vpndiags in the system? I tried adb root and getting root in the internal shell, but I couldn't uninstall Vpndiags. Unable to achieve replacement.

https://github.com/s1204IT/MagiskOnWSALocal/tree/3997b2a Try it. APK signature is testkey.

Build a new one? 构建一个新的?

Rebuild from my repository.

mstouk57g commented 1 year ago

请问您可以讲清楚怎么替换系统的vpndiags吗。本人尝试过adb root 以及在内部shell获取root都无法卸载Vpndiags。没法实现替换。 Can you tell me how to replace vpndiags in the system? I tried adb root and getting root in the internal shell, but I couldn't uninstall Vpndiags. Unable to achieve replacement.

https://github.com/s1204IT/MagiskOnWSALocal/tree/3997b2a Try it. APK signature is testkey.

Build a new one? 构建一个新的?

Rebuild from my repository.

image 感谢,在重新构建后成功连接Google Thanks.I have solved my porblem.

LLP2333 commented 1 year ago

也可以通过adb设置代理

前提

一、把WSA这个网络关了 image 二、clash代理打开,端口为7890,并且Allow Lan image

第一步使用ipconfig查看windows的网络信息

image 我这里的ip为172.22.96.1

然后执行

adb connect 127.0.0.1:58526

image

根据前面查看的windows的ip,(我的电脑的clash端口为7890)

执行

adb shell settings put global http_proxy  ip:端口

image 然后就能代理WSA image

如果想取消clash代理

执行

adb shell settings put global http_proxy  :0
sf467 commented 1 year ago

还有一个方法,就是在子系统里安装诸如 AppOps 这样的权限管理应用,然后将相关软件的“激活 vpn”权限改为允许。 屏幕截图_20230207_113147

实测可以直接开启vpn

Howard20181 commented 1 year ago

Status: Wontfix

Microsoft set https://developer.android.com/reference/android/os/UserManager#DISALLOW_CONFIG_VPN to restrict configure of VPN

Howard20181 commented 1 year ago

Found a way to bypass restriction Testing

s1204IT commented 1 year ago

Found a way to bypass restriction Testing

It may present a solution for Japan's restricted devices. Thanks!

Howard20181 commented 1 year ago

I'm not sure if this is a vulnerability and why the policy is not checked further but continues to allow VPN setup. https://github.com/LSPosed/VpnDialogs/commit/db3740428524a5ba001daf76d28e10796ecce35c