Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save HimDek/e09340eae2861e1ad8b7f6bdba5ee9ff to your computer and use it in GitHub Desktop.
Save HimDek/e09340eae2861e1ad8b7f6bdba5ee9ff to your computer and use it in GitHub Desktop.
This Guide will show you how to install and run apk files or Android apps in any Edition of Windows 11 using Windows Subsystem for Android. WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator.

Install Android apps or apk files in Windows using Windows Subsystem for Android

WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow my guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.

Prerequisites:

  • Windows Subsystem for Android or WSA must be Installed.

Click here to view the guide that shows how to install Windows Subsystem for Android in any Edition of Windows 11 (including Windows 11 Home) non Inider or stable release.

How to Install Android Apps or apk files in Windows Subsystem for Android:

  • First install Windows Subsystem for Android. Click here to know how to do that.
  • Search and run Windows Subsystem for Android Setting from Windows start menu.
  • The window shown in the screenshot below will appear. There, click on the icon in the extreme left side of the Files box. This will start Windows Subsystem for Android and open the File Manager App in Android. This can take some time so be patient.
  • Keep File Manager running otherwise Windows Subsystem for Android will terminate itself.
  • Enable Optional Diagnostic Data and Developer mode in Windows Subsystem for Android Setting Window and click the Refresh button in the IP address Section.
  • Click here to download the latest version of adb and extract the downloaded zip file.
  • Inside the extracted folder, there should be a file named adb.exe along with a plenty of other files.
  • Put the apk files of the Android apps that you want to install in this folder, and rename them to names that are easier to remember.

    Note: You can download apk files of Android apps from websites like APKPure, APKMirror or F-Droid. These are trusted websites.

  • Copy the path of this folder from the pathbox in Windows File Explorer as shown in the screenshot below: 11
  • Search for Command Prompt in Windows Start Menu and Open it.
  • Type cd "" in the command prompt. Inside those "", paste the copied path by pressing Ctrl + V. The windows should look something like the below screenshot. Then press Enter. 12
  • Now, type adb connect 127.0.0.1:58526 in the Command Prompt Window. Press Enter and wait for the connection.
  • Once connected, type adb install "name.apk" in the Command Prompt. Replace name with the name of the apk file that you want to install and press Enter. After successful install, the installed App will appear in Windows Start Menu. Repeat this step for all the apk files that you want to install and they will appear in Windows Start Menu as well.

Thats it! Thanks for using this Guide. I hope it helped.

@flyknight9821
Copy link

C:\Users\flykn\Downloads\pl\pl2>adb connect 127.0.0.1:5037
failed to connect to 127.0.0.1:5037

@octogeer
Copy link

I'm having an issue with the second to last step. When running the command i get:

* daemon not running; starting now at tcp:5037

* daemon started successfully
  cannot connect to 127.0.0.1:58526: No connection could be made because the target machine actively refused it. (10061)

And i don't know how to fix that

You fix that by starting WSA; just open the File Manager and one should be able to connect to 58526
grafik

@octogeer
Copy link

octogeer commented Mar 17, 2024

C:\Users\flykn\Downloads\pl\pl2>adb connect 127.0.0.1:5037 failed to connect to 127.0.0.1:5037

See above

@flyknight9821
Copy link

flyknight9821 commented Mar 18, 2024 via email

@gamer191
Copy link

Copy the path of this folder from the pathbox in Windows File Explorer as shown in the screenshot below

There's actually a much easier way: just backspace the folder path and type "cmd". The command prompt will open in the current directory!

@ninjazan420
Copy link

Copy the path of this folder from the pathbox in Windows File Explorer as shown in the screenshot below

There's actually a much easier way: just backspace the folder path and type "cmd". The command prompt will open in the current directory!

Holy. You're a master

@Dmod134
Copy link

Dmod134 commented Jun 28, 2024

hi, im new here. I'm running on win 11. after running the "change directory" command, when it came to the connection step, it gave me a "command not recognized" error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment