Win11 Professional Workstation Edition Install Android Subsystem Method (Offline Package Installation)

Table of contents

Run Android software on Windows 11

Android Subsystem Requirements

1. Install Windows Hyper-V support

2. How to install the Android subsystem on Win11 Professional Workstation Edition (offline package installation)

 Operation method:

3. Install the APK software package tutorial in the Win11 Android subsystem

How to install APK for Windows 11 WSA:

 System environment variable configuration


Run Android software on Windows 11

Among the new features of Windows 11, " Windows Subsystem for Android " (WSA for short), or "Android Subsystem", is one of the most anticipated features. It allows you to directly install and run various Android mobile APP applications and games on Win11 PC without installing a third-party emulator or virtual machine.

Android Subsystem Requirements

  • Make sure the Windows 11 version is 22000.xxx or higher.
  • Hardware must support and enable BIOS/UEFI virtualization
  • Make sure the Microsoft Store version is 22110.1402.6.0 or higher, and click the "Get Updates" button to upgrade its version.
  • The Android subsystem will allocate 4G memory by default, and it is recommended to use a computer with more than 16G memory.

1. Install Windows Hyper-V support

Go to Control Panel→Programs→Enable or Disable Windows Features, find and check the two options to enable "Hyper-V" and "Hyper-V Platform" . After the installation is complete, you will be prompted to restart the system.

2. How to install the Android subsystem on Win11 Professional Workstation Edition (offline package installation)

If you are using the official version of Windows 11 and do not want to switch to the beta version or modify the system area, you can use the "Download WSA Offline Installation Package" method to install and deploy the Android subsystem, which can directly bypass the region and beta version restrictions. version to complete the installation.

The application offline installation package of the WSA Android subsystem is extracted from the Microsoft Store in Windows and can be installed through the command line.

 WSA in Microsoft store link: Microsoft Apps Windows Subsystem for Android™ https://www.microsoft.com/store/productId/9P3395VX91NR

Installation package capture URL: Microsoft Store - Generation Project (v1.2.3) [by @rgadguard & mkuba50] https://store.rg-adguard.net/

 Operation method:

Open the packet capture address, enter the store address, select show, and click the check mark. There will be a lot of advertisements on this page. Closing all the advertisements is as shown in the picture above. There are subsystem installation packages at the bottom and the above dependent files. Download Microsoft CorporationII . WindowsSubsystemForAndroid_2204.40000.19.0_neutral_~_8wekyb3d8bbwe.msixbundle and Microsoft.UI.Xaml.2.6_2.62112.3002.0_x64__8wekyb3d8bbwe.appx

 My computer's 64-bit system, so download x64. (If you update in the future, the file name/version number you downloaded may be different)

Note: If you find the above method troublesome (Baidu cloud download includes platform-tools), download it directly from Baidu cloud: Extraction code: 6666 https://pan.baidu.com/s/1mJBSGdgG77PM0MYmWh--ag?pwd=6666

This msixbundle package cannot be installed directly using App Installer, we need to manually execute commands in powershell to install

Win+X run powershell as an administrator, enter the command add-appxpackage "xxx", (xxx in the quotation marks is where your msix installation package is located), and then press Enter to execute

# 安装命令如下:
add-appxpackage 安装包路径

# 示例,请确保你的路径正确:
add-appxpackage "E:\迅雷下载\microsoftcorporationii.windowssubsystemforandroid_2204.40000.19.0_neutral_~_8wekyb3d8bbwe.msixbundle"

# 然后回车开始进行安装

After the installation is complete, you can find the application icon of the Windows Subsystem for Android™ " Windows Subsystem for Android "  in the Windows Start Menu .

3. Install the APK software package tutorial in the Win11 Android subsystem

Compared with the tasteless Amazon app store, if you can freely install any third-party Android APK installation package on Win11, it is the most correct posture to use this Android subsystem! Actually, with the help of ADB command, it is not difficult to install APK on Windows 11, let’s have a look.

How to install APK for Windows 11 WSA:

  1. Open the WSA Android subsystem settings page, and open the " Developer Mode " option

  1. Write down the internal IP address and port number of WSA displayed in the setting items in the above figure, such as 127.0.0.1:58526
  2. Download the Android ADB command line debugging tool , and refer to the article tutorial to  adb add the command to the system environment variable
  3. Open the Windows terminal (command line) and enter the following command:
# 第 1 步:确保已正确将 adb 命令加入到系统的环境变量
# 执行下面的命令能看到 adb 版本号则表示 ok
# 如有错误,请检查环境变量是否配置正确
adb version

# 第 2 步:连接 WSA
adb connect 127.0.0.1:58526
# 其中 127.0.0.1:58526 是刚才在 WSA 设置项中看到的 IP

# 第 3 步:安装 APK
# 连接成功之后,就能用下面命令来安装 APK 了
adb install 你的APK文件完整路径
# 注意 .apk 的路径最好无中文且无空格,否则需要用英文双引号包裹。
# 你可在资源管理器上右键点击 apk 文件选「复制文件地址」获取完整路径
#下面是例子:
adb install "E:\app\zhouyi.apk"

# 最后按下回车即可安装
# 安装完成后,在 Windows 开始菜单的“所有应用”里就能找到你安装的 Android 应用

 System environment variable configuration

   1. First download the adb tool and unzip it. I put it in the c drive, then open the platform-tools folder, and copy the address in the address bar: C:/platform-tools, which will be used below.
  2. Click Start-Settings-System-System Information-Advanced System Settings in turn.
  3. Open the system properties, and click "Environment Variables" in the lower right corner.
  4. On the system variable side (if the system variable is not working, add it to the user variable), click "New", set the variable name to: Android, and the variable value is the address copied above: C:/platform-tools, confirm.
  5. Then select Path and click Edit.
  6. Click New, enter: %Android%, OK, and click OK in the next few windows.
  7. After setting, you need to debug, right-click to start-run, enter cmd, and confirm.
  8. In the command prompt, enter: adb and press enter to execute. As shown in the figure below, if there is no error prompt, it means that the configuration is successful.

 In this way, you can use the adb command to install the apk file to the Windows 11 Android subsystem. The key is to enable developer mode, get the correct IP address and install the adb command correctly .

 This Zhouyi APP is a small demo developed by myself with the Unity engine

During use, I encountered this problem: prompt

adb connect 127.0.0.1:58526 cannot connect to 127.0.0.1:58526: Unable to connect because the target computer actively refused it. (10061)

When I encountered this problem, my solution was to restart the computer, and it was fine. When I restarted, the computer updated a lot of things. I think this problem is due to the system files being updated, but the computer did not restart, which caused the link to fail. You guys If you encounter this problem, you may wish to restart and try again!

 Win11 Professional Workstation Edition Install Android Subsystem Method (Offline Package Installation) | HackYin_Blog

Guess you like

Origin blog.csdn.net/hack_yin/article/details/125158644