MustardChef / WSABuilds

Run Windows Subsystem For Android on your Windows 10 and Windows 11 PC using prebuilt binaries with Google Play Store (MindTheGapps) and/or Magisk or KernelSU (root solutions) built in.
GNU Affero General Public License v3.0
6.86k stars 1.19k forks source link

cant connect internet and cant find anything in wifi (include fakewifi and virtwifi) #383

Open unclefive55 opened 3 weeks ago

unclefive55 commented 3 weeks ago

Describe the bug

im currently using 2311.40000.5.0, seems found the same problem in https://github.com/MustardChef/WSABuilds/issues/165. But this approach require fakewifi which is missing in my wsa.

in https://github.com/MustardChef/WSABuilds/issues/213 an approach of repairing wsa in windows setting is mentioned and not helpful.

Steps to reproduce the issue

  1. download wsa.
  2. tap run.bat.
  3. open internet in setting.
  4. no wifi found. image image

Expected behaviour

normally surfing in wsa

Downloaded Build Of WSA

https://github.com/MustardChef/WSABuilds/releases/download/Windows_11_2311.40000.5.0_LTS_3/WSA_2311.40000.5.0_x64_Release-Nightly-with-KernelSU-v1.0.0-MindTheGapps-13.0-RemovedAmazon.7z

Windows build number

22631.3593

PC Specification

Operating System Name Microsoft Windows 11 Professional for Workstations Version 10.0.22631 Build 22631 Other Operating System Descriptions No data available OS Manufacturer Microsoft Corporation System Name LEE System Manufacturer LENOVO System Model 82WK System Type x64-based PC System SKU LENOVO_MT_82WK_BU_idea_FM_Legion Y9000P IRX8 Processor 13th Gen Intel(R) Core(TM) i9-13900HX, 2200 Mhz, 24 Cores, 32 Logical Processors BIOS Version/Date LENOVO KWCN42WW, 2023/9/15 SMBIOS Version 3.4 Embedded Controller Version 1.42 BIOS Mode UEFI Motherboard Manufacturer LENOVO Motherboard Product LNVNB161216 Motherboard Version SDK0T76479 WIN Platform Role Mobile Secure Boot Status Enabled PCR7 Configuration Requires elevation to view Windows Directory C:\WINDOWS System Directory C:\WINDOWS\system32 Boot Device \Device\HarddiskVolume1 Regional Settings Hardware Abstraction Layer Version = "10.0.22621.2506" User Name Time Zone *** Installed Physical Memory (RAM) 32.0 GB Total Physical Memory 31.7 GB Available Physical Memory 17.1 GB Total Virtual Memory 33.7 GB Available Virtual Memory 14.4 GB Page File Space 2.00 GB Page File C:\pagefile.sys Kernel DMA Protection Enabled Virtualization-Based Security Running Security Attributes Required by Virtualization-Based Security Security Attributes Provided by Virtualization-Based Security Basic Virtualization Support, Secure Boot, DMA Protection, UEFI Code Read-Only, SMM Security Mitigations 1.0, Mode-Based Execution Control, APIC Virtualization Virtualization-based security services configured Hypervisor-enforced code integrity Virtualization-based security services running Credential Guard, Hypervisor-enforced code integrity Windows Defender Application Control policy implemented Windows Defender Application Control User Mode policy off Device encryption support requires elevation to view Hypervisor detected. Features required for Hyper-V will not be displayed.

Additional context

No response

unclefive55 commented 3 weeks ago

Temporarily Solved. After typing: adb shell settings put global http_proxy 172.xxx.xxx.xx(ipv4 address of vEthernet (WSLCore)):10809 (7890 for clash users), the fakewifi appeared. Although cant be optimised in wifi option but seems worked.

However it will be changed after reboot.

Schefflin commented 3 weeks ago

Enter the following in sequence: "adb shell settings put global captive_portal_server www.xxxxxxxx" "adb shell settings put global captive_portal_https_url https://www.xxxxxxxx/generate_204" "adb shell settings put global captive_portal_https_url http://www.xxxxxxxx/generate_204" ps: You need to find a suitable server address.

MustardChef commented 3 weeks ago

Are you using a proxy on Windows?

rahaaatul commented 5 days ago

Are you using a proxy on Windows?

Does Cloudflare Warp app count? I have that but it isn't enabled.

rahaaatul commented 5 days ago

@unclefive55 Please refer: https://blog.csdn.net/weixin_44008788/article/details/115797278

Can you elaborate on that? Don't understand chinese.

unclefive55 commented 5 days ago

Are you using a proxy on Windows?

Yes, i use v2ray

unclefive55 commented 5 days ago

@unclefive55 Please refer: https://blog.csdn.net/weixin_44008788/article/details/115797278

Can you elaborate on that? Don't understand chinese.

I'm poster and also Chinese, i could say this method is not helping, for this solution has nothing to do with my problem.

Once a WiFi has been connected, our phone will ping a domain to make sure this WiFi is working. However, this domain is usually Google owned.

As we all know, mainland China has banned Google, which means google.com is not available in mainland China unless you use your VPN to bypass the GFW. As for your phone, whereas the WiFi is ok, the reality that your phone failed to ping google.com will cause your phone warning: internet connection is restricted.

This link my compatriot had posted is describing a method to change the ping domain to another one which is not banned in mainland China.

This issue is prevalently happened when a Chinese buy an oversea android phone or they flash a third party rom(Lineage OS or Pixel Experience)

However, this method apparently couldn't solve our question.

Maybe you could try this method:

(Requirements: adb installed in your pc, Clash installed, dev mode opened for your WSA.) 1.set up clash proxy image

2.open windows terminal and type: adb connect 127.0.0.1:58526, adb shell settings put global http_proxy "http://127.0.0.1:7890" image

3.fake wifi occured and google is available. image image

rahaaatul commented 5 days ago

Requirements: adb installed in your pc, Clash or V2ray installed, dev mode opened for your WSA.

Can't this be done without installing any of these proxy applications?

1.open windows terminal

Seems like the text got cut off.

unclefive55 commented 5 days ago

Requirements: adb installed in your pc, Clash or V2ray installed, dev mode opened for your WSA.

Can't this be done without installing any of these proxy applications?

1.open windows terminal

Seems like the text got cut off.

when you reply me i am just trying to figure out what will happen without typing any port(adb shell settings put global http_proxy "http://127.0.0.1"), seems not work....So im afraid the answer is yes.

But you see? the adb shell command contains http_proxy, so ....XD

unclefive55 commented 5 days ago

Requirements: adb installed in your pc, Clash or V2ray installed, dev mode opened for your WSA.

Can't this be done without installing any of these proxy applications?

1.open windows terminal

Seems like the text got cut off.

editted. Hope it would work out.