Windows subsystem for android google play

Время на прочтение
3 мин

Количество просмотров 15K

Энтузиаст смог установить Google сервисы и приложения на WSA. Оригинал тут.

Я же попробую описать это в виде инструкции, и предоставить готовый архив, для тех кому лень вводить кучу команд в терминал или устанавливать WSL.

Внимание, после установки WSA, перестает запускаться эмулятор Android Studio. С этой проблемой еще не разобрался! И не говорите потом, что я вас не предупреждал :)

Для ленивых — архив с готовой директорией для установки WSA. Распаковать строго в папку C:\WindowsSubsystemAndroid. После этого перейти к пункту Установка WSA с Google приложениями. То что ниже пропустить.

Как понятно из второго абзаца данной статьи, для установки WSA c Google сервисами и приложениями необходимо наличие установленной WSL. Если она не установлена, это не проблема, запускаем PowerShell от имени администратора и вводим команду

wsl –install

Остальная установка интуитивно понятна и в комментариях не нуждается

Скачивание файлов:

  1. Скачиваем WSA подробнее тут, в конце статьи в разделе UPD1 (далее файл_1)

  2. Скачиваем репозиторий в виде архива .zip (далее файл_2)

  3. Переходим на сайт opengapps , выбираем параметры platform: x86_64, android: 11, variant: pico и скачиваем архив. (далее файл_3)

Подготовка установочных файлов:

  • Создаем папку C:\WindowsSubsystemAndroid

  • Открываем архиватором файл_1. Находим в архиве файл вида «WsaPackage_XXX_x64_Release-Nightly.msix» размер более 700мб, у меня находился в самом конце списка. И открываем этот файл так же архиватором

  • В открывшемся архиве выделяем все файлы и папки, снимаем выделение с папки AppxMetadata и файлов [Content_Types].xml AppxBlockMap.xml AppxSignature.p7x выделенное копируем и вставляем в папку C:\WindowsSubsystemAndroid

  • Создаем папку C:\GAppsWSA и разархивируем туда репозиторий файл_2 из пункта скачивания файлов

  • Переходим в директорию C:\GAppsWSA\#GAPPS и кладем туда архив файл_3. ВНИМАНИЕ, разархивировать не нужно!

  • Переходим в директорию C:\WindowsSubsystemAndroid копируем из нее 4 файла: product.img vendor.img system_ext.img system.img в папку C:\GAppsWSA\#IMAGES

  • Открываем консоль WSL

  • Вводим команду: sudo su

  • Меняем в консоли директорию на C:\GAppsWSA (команды cd)

  • Выполняем команду sudo apt-get update

  • Выполняем команду sudo apt-get install unzip lzip

  • Выполняем команду apt install lzip unzip

  • Выполняем команду apt install dos2unix

  • Выполняем команду dos2unix apply.sh

  • Выполняем команду dos2unix extend_and_mount_images.sh

  • Выполняем команду dos2unix extract_gapps_pico.sh

  • Выполняем команду dos2unix unmount_images.sh

  • Выполняем команду dos2unix VARIABLES.sh

  • Выполняем команду ./extract_gapps_pico.sh

  • Выполняем команду ./extend_and_mount_images.sh

  • Выполняем команду ./apply.sh

  • Выполняем команду ./unmount_images.sh

  • Переходим в директорию C:\GAppsWSA\#IMAGES копируем из нее 4 файла product.img vendor.img system_ext.img system.img в папку C:\WindowsSubsystemAndroid

  • Переходим в директорию C:\WindowsSubsystemAndroid\Tools переименовываем файл kernel в kernel_bak

  • Копируем файл kernel из C:\GAppsWSA\misc в C:\WindowsSubsystemAndroid\Tools

Установка WSA с Google приложениями. Сюда переходим, если скачали готовый архив и не делали инструкцию выше

Для дальнейшей установки необходимо включить developer mode в Windows. Как включить посмотреть можно тут

Запускаем PowerShell от имени администратора

  • Выполняем команду Add-AppxPackage -Register C:\WindowsSubsystemAndroid\AppxManifest.xml

WSA установлена, запускаем ее из меню пуск. Включаем Developer Mode, и запускаем подсистему значком рядом с пунктом Files. Авторизовываться в Google пока рано! еще немного терпения

Скачиваем ADBKit и разархивируем его в папку C:\ADBKit

В PowerShell переходим в директорию C:\ADBKit. Далее выполняем команды

  • .\adb.exe connect 127.0.0.1:58526

  • .\adb.exe shell

  • su

  • setenforce 0

После этого можно авторизовываться в Google.

Осталось пару шагов.

  • Выключаем WSA, для этого нажимаем кнопку «Turn off» в настройках

  • Переходим в директорию C:\WindowsSubsystemAndroid\Tools

  • Файл kernel переименовываем в kernel_root

  • Файл kernel_bak переименовываем в kernel

Можно пользоваться Google Play и устанавливать оттуда приложения. Полноценно оценить какие работают а какие нет — еще не успел, возможно разберу позже

Надеюсь помог тем кто хотел это опробовать)

P.S устройство определяется как Google Pixel 5

When Windows 11 announced the ability to install and use Android apps, everybody was over the moon. People were excited to run social media apps, games, and more directly from their PC. Sadly this excitement was cut short when Microsoft revealed that they would be using the Amazon App Store instead of the Google Play Store.

For comparison, the Amazon apps store only has around 460,000 while the Google alternative has 3.48 million apps in total. This is one of the reasons many users have been looking to install Google Play Services and Store manually. Are you in the same boat? Then we have the perfect guide for you!

Use the methods below to get and use Google Play Store and Gapps on your Windows 11 PC.

Related: How to Ungroup Icons on Windows 11 Taskbar With a Registry Hack

Method #1: Install custom WSA with Gapps and Play Store pre-installed

A simpler way to get Google Apps and Google Play Store with WSA is by using a pre-modified WSA that has the Gapps pre-installed. This WSA was shared by a Redditor called Rageman666 (see here). Once downloaded, you can use the mod given below to sign in to Google Play Store with your Google account. (However, if you want to install WSA officially only and then take on the complex method of installing Gapps yourself, then look at Method 2 below.)

What do you need

  • Modified WSA | Download Link (Mirror | Mirror 2)
  • ADBToolkit | Download Link
  • Important: You will need to uninstall the original WSA from your system in case you have it installed before proceeding with this guide. 

Step-by-step guide

We will first need to enable developer mode on your installation of Windows 11. Press Windows + i on your keyboard and select ‘Privacy & security’ from the left sidebar. 

Click on ‘For developers’ on your right. 

Click and turn on the toggle for ‘Developer Mode’. Click on ‘Yes’ to confirm your choice.  

Now download the WSA linked above to a convenient location on your local storage. Unzip the files to a new folder named ‘WSAUnpacked’. Click on the address bar in the ‘WSAUnpacked’ folder and copy the path to your clipboard.

Press Windows + S on your keyboard, search for ‘Powershell’ and click on ‘Run as administrator’ once it shows up in your search results.

Type in the following command and replace PATH with the path we copied to your clipboard. Ensure that you remove the quotes from the pasted path. 

cd PATH

 

Now type in and execute the following command.

Add-AppxPackage -Register .\AppxManifest.xml

The modified WSA will now be installed on your system. Press the Windows key and launch the same from your Start menu.

Once the Subsystem launches, click and enable ‘Developer Mode’. 

Now click on ‘Files’ at the top so that it launches Windows Subsystem for Android on your system. 

Close the Files app. We now need to use a workaround to sign in to the Play Store.

Download ADBToolkit linked above and extract it to a new folder on your desktop named ‘ADBToolkit’. Once extracted, click on the address bar at the top and copy the address to your clipboard. 

Press Windows + S on your keyboard and search for Powershell. Click on ‘Run as administrator’ once Powershell shows up in your search results. 

Type in the following command and replace PATH with the path to ADBToolkit we copied earlier. 

cd PATH

Note: Ensure that you remove the quotes from the pasted path to ADBToolkit. 

Now switch back to the subsystem window and copy the address given below ‘Developer Mode’.

Execute the command given below to launch and connect ADB. Replace ‘ADDRESS’ with the address copied to your clipboard (from above). 

.\adb.exe connect ADDRESS 

Type in the following command to launch ADB shell.

.\adb.exe shell

Now use the following command to gain root access. 

su

Now type in the following command. 

setenforce 0

Type in ‘Exit’ to exit PowerShell. 

You can now close all the windows open on your desktop. Press Windows + S and search for ‘Play Store’ now. Click and launch the app once it shows up in your search results. 

Now click on ‘Sign in’ and sign in with your Google account. 

You will now be signed in with your Google Account and you should now be able to use Google Play Store on your Windows 11 PC. 

And that’s it! You can now download and install the desired Android apps on your system directly from the Google Play Store. 

Related: Sideload APK on Windows 11 using ADB manually | Automatically with a script

Method #2: Install WSA and then install Gapps yourself

The method above is much easier and thus easy to go with even though not exactly recommendable, as it’s a pre-modified (custom) WSA package. But if you want an official WSA package from Microsoft and want to install Gapps yourself over this, then this is the method for you. It’s quite complex btw, so may often wonder whether simply installing a custom WSA package that comes with Gapps pre-installed is worth it, which we’d say, is.

Getting Google Apps and Play Store on your PC on official WSA by installing Gapps package yourself is recommended as you wouldn’t need a pre-modified WSA which helps if you are concerned about the security of a custom WSA package under method 1. 

What do you need

  • WSGA script | Download Link (Gapps script for Windows Subsystem for Android)
  • Windows Subsystem For Android | Link
  • Store Adguard | Link
  • OpenGApps | Link
  • ADBToolkit | Download Link 
  • WinRAR | Download Link
  • WSL: Windows Subsystem for Linux
  • Ubuntu: Download Link
  • Important: Uninstall the original Windows Subsystem For Android if you already have it installed on your PC before proceeding with this guide.

Step-by-step guide

Visit the WSA link above and copy and paste the following link given below or above in the text box.

Link

Now click on the drop-down menu beside the text box and click on ‘Slow’. 

Click on the ‘Check Mark’ to process the given link.

Once processed, all the linked download files will now be available on your screen. Scroll to the bottom and click on the .msix bundle at the bottom and download it to a convenient location on your local storage. 

Now go to the downloaded file, right-click on it and open it with WinRAR. If you do not have WinRAR on your PC then use the link above to download and install the same. 

Once the bundle is open in WinRAR, scroll to the bottom and check the architecture of the .msix bundle. It should match your CPU architecture, if not, you can select the desired version from the list and proceed with the guide. 

Double click and open the same bundle in WinRAR. Once you are done, go to your C/boot drive and create a new folder named ‘WindowsSubsystemForAndroid’. 

Switch back to Winrar and select all the files except the following folders and files. 

  • AppxMetadata (folder)
  • AppxBlockMap.xml (file)
  • AppxSignature.p7x (file)
  • [Content Types].xml (file)

Copy all the selected files to the new ‘WindowsSubsystemForAndroid’ folder we created earlier. 

Once copied, create another new folder on your boot drive named ‘GAppsForWSA’.

Open the link for the WSGA script at the top and download the same as a .zip to your local storage. 

Extract the .zip to the new ‘GAppsForWSA’ folder that we created in your boot drive.

Note: Extract the contents of the ‘WSGAScript-main’ folder contents inside the archive.

With the contents archived, right-click on ‘VARIABLEs.sh’ and open it with Notepad. 

Replace ‘GAppsWSA’ with ‘GAppsForWSA’.

Press Ctrl + S on your keyboard to save the changes. We will now download GApps for your WSA installation. Visit the link for OpenGApps at the top and select the following options given below. 

  • Platform: x86_64
  • Android: 11.0
  • Variant: pico

Click on the ‘Download icon’. 

You will now be redirected to Sourceforge, wait a few seconds and the download should automatically be initiated for you.

Download and store the archive in the following location in the ‘GAppsForWSA’ folder on your boot drive.

Boot Drive\GAppsForWSA\#GAPPS

Now go back to your boot drive and open the ‘WindowsSubsystemForAndroid’. Copy the following 4 files. 

  • vendor.img
  • system_ext.img
  • system.img
  • product.img

Navigate to the following location and paste all your copied files. 

Boot Drive\GAppsForWSA\#IMAGES

We will now install WSL for your system. WSL is a Linux Subsystem that will allow you to use executables and scripts developed for Linux. Press Windows + i on your keyboard to open the Settings app and then click on ‘Apps’ on your left. 

Now click on ‘Optional Features’. 

Scroll down and click on ‘More Windows features’. 

A new window for available features will now open on your screen. Scroll to the bottom and check the box for ‘Windows Subsystem for Linux’. 

Click on ‘Ok’ once you are done. The Linux Subsystem will now be installed on your PC. You will now be prompted to restart your PC. We recommend you restart your PC at this point even if you are not prompted.

We will now install a distro that will help us during this setup. We recommend you use Ubuntu available on the Microsoft Store as it is easily downloaded and removed from your system. Use the link below to visit and download Ubuntu in the Microsoft Store.

  • Ubuntu | Microsoft Store Link

Click on ‘Open’ once the app is installed to configure your installation. You can also launch the app from your Start menu depending on your preference. 

Ubuntu will now be installed on your system. Once installed, proceed to set a Username to protect your installation. Subsequently, enter a password to protect root access on your system. 

The Distro has now been setup on your system, you can close the current window and press Windows + X instead. Select ‘Windows Terminal (admin)’. 

Click on the drop-down arrow at the top and select the same to launch a WSL terminal in the new tab. We’ll now need root access to modify your WSA with GApps. Type in the following command and press Enter on your keyboard. If you did not set a username or password then you should already have root access in the terminal. You can skip this step and move to the next one instead. 

sudo su

Enter your password to grant root access (if applicable). Now type in the following commands one by one.

  • cd ..

  • cd ..

Finally use the command below to navigate to ‘GAppsForWSA’.

cd GAppsForWSA/

Now type in the following command to install ‘lzip’ and ‘unzip’ which will be needed for this process. 

apt install lzip unzip

Note: If you are unable to get lzip or unzip setup, then run apt-get update -y to update your repositories and packages.

Confirm your choice by typing in ‘Y‘.

We will now install ‘dos2unix’ which will also be needed for this modification. Use the command below to install the same on your PC. 

apt install dos2unix

Now it’s time to modify your WSA image. Type in and execute the following commands in the terminal one by one in the same order. 

  • Command 1: dos2unix ./apply.sh

  • Command 2: dos2unix ./extend_and_mount_images.sh

  • Command 3: dos2unix ./extract_gapps_pico.sh

  • Command 4: dos2unix ./unmount_images.sh

  • Command 5: dos2unix ./VARIABLES.sh

Once the process completes, type in the following to clear up your terminal for better management. 

clear

Now that we have our scripts, let’s execute them. Type in and execute the commands given below one by one in the same order. 

  • Command 1: ./extract_gapps_pico.sh

  • Command 2: ./extend_and_mount_images.sh

  • Command 3: ./apply.sh

  • Command 4: ./unmount_images.sh

We are now done with the console, for now, you can close the same. Go to your boot drive and navigate to the following location. 

\GAppsForWSA\#IMAGES

Copy the following files to your clipboard. 

  • product.img
  • system.img
  • system_ext.img
  • vendor.img

Now navigate to the ‘WindowsSubsystemForAndroid’ folder on your boot drive and paste all the copied images in the same location. Choose to replace the files when prompted. 

We’re almost done with the modification now. Navigate to your ‘GAppsForWSA’ folder on your boot drive and double click and open the ‘misc’ folder. 

Copy ‘kernel’ to your clipboard.

Navigate to the following location. 

Boot drive\WindowsSubsystemForAndroid\Tools

Rename ‘kernel’ to ‘kernel_backup’. 

Now paste the kernel file we copied to your clipboard earlier in the same location.

We will now need to enable developer mode for your installation of Windows 11. Press Windows + i to open the Settings app and then click on ‘Privacy and Security’ on your right. 


Click on ‘For developers’. 

Enable the toggle for ‘Developer Mode’ at the top. 

Click on ‘Yes’ to confirm your choice. Now press Windows + X and select ‘Windows Terminal (admin)’. 

Click on the drop-down arrow at the top and select ‘Windows Powershell’. 

Note: Do not select ‘Powershell’, ensure that you select ‘Windows Powershell’.

Now run the following command.

Add-AppxPackage -Register C:\WindowsSubsystemForAndroid\AppxManifest.xml

The modified subsystem will now be installed on your PC.

Press the Windows key and launch the same once the process completes.

Enable the toggle for ‘Developer mode’ in the Android Subsystem. 

Click on ‘Files’ at the top to launch the Subsystem on your PC. You might have to wait a few minutes now depending on your PC. 

Close the Files app once it opens and download the ADBToolkit linked above.

Now create a new folder on your boot drive and name it ‘ADBToolkit’.

Extract the archive in the same location, and delete the archive and the original folder.

Press the Windows key, search for Play Store and launch it on your system. Do not click ‘Sign-in’ yet.

 

Go back to the ‘ADBToolkit’ folder and click on the address bar at the top, type in ‘Powershell’ and press Enter on your keyboard. 

Go back to the Android Subsystem and note down the address shown below ‘Developer Mode’.

Note: If the address does not show up, simply click on ‘Refresh’ beside IP address.

Type in and execute the following command. Replace ADDRESS with the address shown in the ‘Developer Mode’ section in the Android Subsystem. 

.\adb.exe connect ADDRESS

Once you are connected, execute the following command. 

.\adb.exe shell

Type in the following command to gain root access. 

su

Execute the following command next. 

setenforce 0

Now go back to the Play Store and click on ‘Sign-in’.

Sign in with your desired Google account now. 

Note: This will also enable Google Sync, which by default will sync your Google data to Windows including things like Contacts, Calendar events, Browser history, and more.

Once you are signed in, close the Play Store. We now need to restore your original kernel. Open the Windows Subsystem for Android window and click on ‘Turn off’. 

The Subsystem will now stop running in the background on your PC. Navigate to the ‘WindowsSubsystemForAndroid’ folder on your boot drive and open the ‘Tools’ folder. 

Rename the ‘kernel’ file to ‘kernel_Root_mod’. 

Similarly, rename ‘kernel_backup’ to ‘kernel’. 

You can now close everything. We recommend you restart your system at this point. Once restarted, you should now be able to use the Play Store on your system while signed in with your Google account. 


We hope you were able to easily set up and use GApps and Play Store on your PC using the guide above. If you face any issues or have any questions, feel free to reach out using the comments section below. 

Related:

  • How to Remove Appraiserres.dll to Bypass Requirements When Using Windows 11 Setup
  • How to Install WSA Manually Using Msixbundle
  • How to Fix ‘Virtualization Not Enabled’ Error for WSA on Windows 11
  • How to Change Refresh Rate on Windows 11
  • Windows 11 Start Menu Not Working: How to Fix
  • Fix VAN 1067 Valorant Issue on Windows 11
  • How to Disable CSM to install Windows 11
  • How To Remove Language Switcher on Windows 11
  • Right Click Menu Not working on Windows 11? How to Fix

В Windows 11 с помощью подсистемы Windows для Android (WSA) вы можете установить магазин Google Play Store, загружать и устанавливать любые приложения Android на свой компьютер с помощью определенных действий, которые включает в себя множество шагов.

Это был просто вопрос времени, теперь вы можете устанавливать Android приложения из Play Store в Windows 11, но не официально. Пользователь твиттера — ADeltaX, разработал процедуру, позволяющую обойти подсистему Windows для Android и установить приложение Google Play Store, что дает вам доступ в Windows 11 ко всему каталогу приложений для Android.

Пока, неясно, как это повлияет на будущие обновления. Другими словами, данный способ вполне может быть только временным решением, поскольку до сих пор не понятно, что произойдет после того, как WSA получит обновление через Магазин Microsoft. Вероятно, любому, кто использует этот метод, придется повторить весь процесс настройки. Конечно, если вы не отключите автоматическое обновление приложений в параметрах приложения Магазин Microsoft.

Этот способ установки магазина Google Play Store в Windows 11 является сокращением инструкций ADeltaX, но, если есть желание, вы можете следовать полной инструкции из репозитория Github.

Следуйте шагам ниже, чтобы установить магазин приложений Google и иметь возможность устанавливать приложения для Android в Windows 11.

Подготовка компьютера с Windows 11 для установки WSA

Прежде чем перейти к загрузке и установке, необходимо убедиться, что на вашем компьютере включены дополнительные функции Hyper-V и Virtual Machine Platform.

Шаг 1: Для этого, нажмите сочетание клавиш Win R, чтобы открыть диалоговое окно «Выполнить»

Шаг 2: Введите или скопируйте и вставьте:

OptionalFeatures

Шаг 3: Здесь в окне «Компоненты Windows» для  «Hyper-V» и «Платформа виртуальной машины» установите флажок, чтобы включить его.

 необходимо убедиться, что на вашем компьютере включены дополнительные функции Hyper-V и Virtual Machine Platform.

Шаг 4: Нажмите кнопку «ОК», чтобы установить эти дополнительные функции на свой компьютер с Windows.

Удалите любой ранее установленный пакет WSA

Удалите подсистему Windows для Android, если она уже установлена. Это связано с тем, что мы будем устанавливать новую подсистему Windows для Android, в которой существует интеграция Google Apps.

Шаг 5: Для этого, откройте меню «Пуск», найдите и кликните на подсистему «Windows Subsystem for Android» правой кнопкой мыши и выберите в контекстном меню пункт «Удалить». Затем следуйте инструкциям на экране, чтобы завершить процесс удаления.

Удалите любой ранее установленный пакет WSA

Включите параметры разработчика в Windows 11.

Вам нужно будет включить параметры разработчика в Windows (в Windows 11, а не в WSA!).

Шаг 6: Откройте параметры Windows 11, перейдите в раздел «Конфиденциальность и безопасность» →  «Для разработчиков».

Откройте параметры Windows 11, перейдите в раздел «Конфиденциальность и безопасность» →  «Для разработчиков».

Шаг 7: В разделе режим разработчика передвиньте ползунок переключателя в положение «Вкл.»

Шаг 8: В следующем всплывающем окне подтвердите свои действия нажав кнопку «Да».

В разделе режим разработчика передвиньте ползунок переключателя в положение «Вкл.»

Загрузите WSA + GApps пакет MSIX:

Выберите для загрузки файл в зависимости от вашего устройства.

Шаг 9: Это модифицированная версия – «Windows Subsystem for Android (WSA-x86 64-бит + GApps)».

Модифицированная версия файл MSIX для 64-разрядных компьютеров ARM, таких как Surface Pro X.

Обновление: Благодаря новому методу от LSPposed у нас теперь есть WSA со встроенной поддержкой Magisk.

Вам понадобится приложение Magisk после установки одного из пакетов ниже.

  • Модифицированная версия 64-разрядной версии WSA x86, в нее встроены приложения Google и поддержка Magisk.
  • Модифицированная версия 64-разрядной версии WSA ARM, в нее встроены приложения Google и поддержка Magisk.

Шаг 10: Распакуйте загруженный Zip-архив в любое расположение, в дальнейшем нам потребуется указать путь к файлу AppxManifest.xml из этой папки.

Чтобы быстро получить путь к расположению файла, кликните на AppxManifest.xml правой кнопкой мыши и выберите «Копировать как путь»,  чтобы скопировать путь к файлу в буфер обмена ПК с Windows 11.

Чтобы быстро получить путь к расположению файла, кликните на AppxManifest.xml правой кнопкой мыши и выберите «Копировать как путь»

Зарегистрируйте пакет WSA + GApps:

Шаг 11: Запустите Powershell от имени администратора с помощью Терминала или любым другим удобным вам способом.

Шаг 12: Измените команду Powershell, указав расположение извлеченного Zip-файла

Add-AppxPackage -Register "Путь_к_папке_с_WSA\AppxManifest.xml"

В моем случае команда выглядит так:

Add-AppxPackage -Register "C:\Users\almanex\Downloads\WSA-Patched\AppxManifest.xml"

Простой способ установить Google Play Store в Windows 11 WSA + GApps:

Приложение WSA будет установлено на ваше устройство в фоновом режиме. Если вы получите сообщение об ошибке, убедитесь, что все шаги были выполнены правильно.

Приложение WSA будет установлено на ваше устройство в фоновом режиме.

После регистрации WSA, магазин Google Play должен быть доступен в меню «Пуск».

И последнее, что нужно сделать, прежде чем вы сможете войти в свою учетную запись Google.

Загрузите ADBKit:

Шаг 13: На странице developer.android.com загрузите «SDK Platform-Tools for Windows».

загрузите «SDK Platform-Tools for Windows».

Шаг 14: Pаспакуйте zip-архив в любую папку.

Pаспакуйте zip-архив в любую папку.

Настройка WSA

Шаг 15: С помощью меню «Пуск» откройте приложение «Windows Subsystem for Android».

Шаг 16: В разделе «Режим разработчика» передвиньте ползунок переключателя в положение «Вкл.», как показано на экране ниже.

В разделе «Режим разработчика» передвиньте ползунок переключателя в положение «Вкл.»

При появлении запроса брандмауэра разрешите доступ ADB.

Скопируйте IP-адрес

Шаг 17: Теперь в верхней части страницы параметров WSA откройте опцию «Файлы», в появившемся диалоговом окне нажмите «Продолжить».

Теперь в верхней части страницы параметров WSA откройте опцию «Файлы», в появившемся диалоговом окне нажмите «Продолжить».

Шаг 18: Затем нажмите кнопку «Обновить» напротив опции IP-адрес

Затем нажмите кнопку «Обновить» напротив опции IP-адрес. 

Шаг 19: Обратите внимание на адрес ADB, в разделе «Developer mode» отображается как 127.0.0.1:58526 (он должен быть таким же для вас)

Обратите внимание на адрес ADB, в разделе «Developer mode» отображается как 127.0.0.1:58526 (он должен быть таким же для вас)

Установите соединение

Шаг 20: Откройте Powershell от имени администратора и перейдите в папку «C:\Users\Almanex\Downloads\platform-tools_r32.0.0-windows\platform-tools» для этого можно использовать команду, предварительно заменив Имя_пользователя:

cd C:\Users\Имя_пользователя\Downloads\platform-tools_r32.0.0-windows\platform-tools

перейдите в папку «C:\Users\Almanex\Downloads\platform-tools_r32.0.0-windows\platform-tools» для этого можно использовать команду, предварительно заменив Имя_пользователя

Теперь, выполните команду:

.\adb.exe connect 127.0.0.1:58526

Установите соединение WSA ADB

Шаг 21: Убедитесь, что adb подключен, выполнив:

.\adb.exe devices

Установите Google Play Store в Windows 11

Шаг 22: Чтобы иметь возможность авторизироваться в магазине Google Play, выполните по очереди три команды:

.\adb.exe shell
su 
setenforce 0

Команда Windows 11 WSA ADB Чтобы иметь возможность авторизироваться в магазине Google Play

Если вы все сделали правильно, вы сможете войти в Google Play Store со своей учетной записью Google.

Откройте магазин Google Play Store с помощью меню «Пуск»

Теперь вы можете пользоваться полным набором приложений Google Play на наших компьютерах с Windows 11.

Большое спасибо ADeltaX, благодаря которому это стало возможным!

приложение Google Play на наших компьютерах с Windows 11.

На этом мы завершаем руководство о том, как установить Google Play Store на ПК с Windows 11 с помощью подсистемы Windows для Android. Play Маркет, вероятно, лучший вариант, потому что он может похвастаться большим каталогом приложений и обеспечивает безопасную и надежную экосистему.

Если вы хотите, чтобы будущие обновления для подсистемы Windows для Android не сбросили выполненный вами процесс, вы можете отключить автоматические обновления для приложений в Магазине Microsoft: перейдите в меню «Профиль» →  «Параметры приложения»  и отключите автоматическое «Обновление приложений». Если вы хотите обновить другие приложения, вам необходимо обновить их вручную.

 в Магазине Microsoft: перейдите в меню «Профиль» →  «Параметры приложения»  и отключите автоматическое «Обновление приложений»

Вопросы.

  1. Могу ли я использовать Google Play Store для установки приложений в Windows 11?

    Да, Google Play Store полностью работает в Windows 11. Спасибо пользователю Twitter  ADeltaX.

  2. Нужен ли мне канал Windows Beta для запуска приложений Android в Windows 11?

    Официально да. Но вы можете установить модифицированный пакет Msixbundle, чтобы он работал в любой сборке Windows 11.

  3. Как удалить приложение Android из Windows 11?

    Чтобы удалить приложение Android из Windows 11, откройте меню «Пуск» найдите приложение, которое хотите удалить. кликните приложение правой кнопкой мыши и выберите «Удалить».

Kudos to ADeltaX and his repo! Make sure toit :)

Recently, Microsoft released Android™ Apps on Windows 11, read about it more here and here.

But…

It supports only Amazon Store, available only in the US. Weird right? I thought so too.

Hopefully, thanks to an amazing community, and especially ADeltaX, here is a workaround. 😁

He found a way to install fully functional Google Play on WSA. How?

Let’s go.

But before I show you: Be careful! This will be technical and risky, still in the testing stage, as of today (10/25/21).

PREREQUISITES

  1. No WSA (Windows Subsystem for Android) installed. (if you have WSA already, you will need to uninstall it for this to work properly)
  2. WSL2 installed
  3. Ubuntu for WSL2. You should get Ubuntu with installation.
  4. WinRAR, or a similar program for compressed stuff
  5. Enable Developer Mode. Use the search in settings to find it easily.

GETTING STARTED

In this section, we will get everything we need for this guide. That only includes a few websites:

  1. ADeltaX GitHub repo
  2. WSA download website
  3. Android 11 download website

So, with this, we are ready. Let’s start!

Getting WSA

Copy product code → 9P3395VX91NR

Or head over to GitHub and copy product code (it’s the same one):

  1. Open WSA download website.
  2. Select ProductID on the left
  3. Paste product code
  4. Select slow on the right
  5. Click on the tick button

In a few moments, you will have a list of downloadable options.

Scroll (or not), find the biggest option (around 1.21GB, as of 10/25/21) in that list, and click on it to download.

  1. Right-click → Open with → select archiver software previously mentioned.
  2. Find and open(double-click) right .msix | You should match your processor architecture. If you are in doubt about which one you have, check your settings.
  3. I have an x64 system (as probably most of you), so I opened → WsaPackage_1.7.32815.0_x64_Release-Nightly.msix
  4. Go to your disk (C:), and create a folder WindowsSubsystemAndroid.
  5. Select everything except files/folders listed below(hold ctrl and click on them to deselect).
  6. Drag files to the folder on your disc you created previously (WindowsSubsystemAndroid). That’s it!

Files to deselect:

  • AppxMetadata → folder
  • AppxSignature.p7x → file
  • AppxBlockMap.xml → file
  • [Content_Types].xml → file

Preparing workaround

Here, we will start preparing needed files for the Google Play apk.

Getting WSAGAScript files

  1. Create another folder on the disc (C:) → GAppsWSA
  2. Go to the repo and download the zip
  3. Extract everything into GAppsWSA

Getting OGA package

  1. Go to the OpenGApps tab
  2. Select your architecture (I have x64, so I selected x86_64), 11.0, and pico, and download the OGA package
  3. Navigate to the GAppsWSA folder, open the #GAPPS folder
  4. Move OGA package to #GAPPS folder

Prepare #IMAGES folder

  1. Navigate to WindowsSubsystemAndroid folder
  2. Copy these 4 files and paste them to the GAppsWSA → #IMAGES folder (hold CTRL and select):

  3. vendor.img

  4. system_ext.img
  5. system.img
  6. product.img

Modifying images

Finally, execution! Let’s do some work in the terminal:

Preparing environment

  1. Open WSL2 terminal (Linux)
  2. Type ‘sudo su’ to get root privileges. Enter
  3. Change directory to GAppsWSA folder. Use ‘cd’ to change the directory. Also ‘ls’ is a handy command, which will list files and folders in that directory.
  4. Update apt → Type ‘sudo apt-get update’. Enter
  5. Install lzip and unzip programs. Type ‘apt install lzip unzip’. Enter
  6. Install dos2unix. Type ‘apt install dos2unix’. Enter

Running commands

Run following commands:

  • dos2unix ./apply.sh
  • dos2unix ./extend_and_mount_images.sh
  • dos2unix ./extract_gapps_pico.sh
  • dos2unix ./unmount_images.sh
  • dos2unix ./VARIABLES.sh

Executing Steps

Execute these commands in order (you might wait a couple of moments, be patient):

  • ./extract_gapps_pico.sh → check for ‘!! GApps folder ready !!’
  • ./extend_and_mount_images.sh → check for ‘!! Images mounted !!’
  • ./apply.sh → check for ‘!! Apply completed !!’
  • ./unmount_images.sh → check for ‘!! Unmounting completed !!’

Let’s continue.

Managing WSA files

Now that we have modified images, we need to replace them in the main WSA (WindowsSubsystemAndroid) folder. We also need to temporarily replace the kernel.

Managing Images

  1. Navigate to the GAppsWSA → #IMAGES folder
  2. Copy 4 image files
  3. Go back to WSA (WindowsSubsystemAndroid) folder, and paste/replace files there

Managing Kernel

  1. Navigate to the GAppsWSA → misc folder
  2. Copy kernel
  3. Go to the WindowsSubsystemAndroid → Tools folder. Don’t paste yet!
  4. Rename existing kernel file to ‘kernel_bak’
  5. Now paste the previously copied file

Enabling WSA

Finally! We are ready to enable the WSA system. Let’s do it!

  1. Open Windows PowerShell (not PowerShell) as admin
  2. Type ‘Add-AppxPackage -Register C:\WindowsSubsystemAndroid\AppxManifest.xml’. Enter

It’s done! Well, not fully, but take a moment to shoulder-tap yourself, you deserved it :)

Now, let’s open Windows Subsystem for Android. Click on its icon in the Start Menu.

  1. Enable Developer mode in WSA
  2. Click on ‘Files’, so that the WSA system starts
  3. This is a modified image, so it’s recommended to opt-out from sending diagnostic data
  4. Wait for the system to start. This can take a while, be patient.
  5. When it loads, you can close the files window
  6. Open Start Menu
  7. Search for ‘Play Store’ and open it

Last important step

We have to restore the original kernel file, and we’re done.

  1. Open WSA settings (green icon — Windows Subsystem for Android)
  2. Find option and turn off WSA
  3. Go to WindowsSubsystemAndroid → Tools folder
  4. Rename ‘kernel’ → ‘kernel root’
  5. Rename ‘kernel_bak’ → ‘kernel’
  6. Go to WSA settings and open files, in order to restart the system
  7. Enjoy!

Voila, well done! Sign in with your account, you should have a fully functional Play Store in WSA.

_ktb

Sign In Fix

In some cases, Sign In button on the Google Play app will be unresponsive. But don’t worry! There is a fix.

Let’s go.

  1. Create a folder ADB in C: drive
  2. Download ADB and extract it inside the ADB folder
  3. Open ADB → platform-tools
  4. Click on the path, type in cmd. Enter
  5. Connect via adb to WSA → adb connect 127.0.0.1:58526.
  6. NOTE: It’s okay if it says ‘failed to authenticate to 127.0.0.1:58526’. Just continue.
  7. Type in ‘adb shell’. Enter
  8. You need root. Type in ‘su’. Enter
  9. Type in ‘setenforce 0’. Enter

You should now be able to log in.

Эта статья расскажет, как  установить Google Play Store на Windows 11 и GApps в подсистему Windows для Android. В октябре 2021 года Microsoft наконец-таки запустила тестирование подсистемы Android на Windows 11, благодаря чему у пользователей появилась возможность устанавливать приложения Android на свои компьютеры. Официально тестирование проходит только в США (Microsoft часто обходит вниманием другие страны при тестировании) и только в паре с магазином Amazon App Store, где выбор приложений, мягко говоря, не самый богатый. Обойти проблему можно установкой APK-файлов, но многие из них не будут работать из-за отсутствия Play Store и соответствующих сервисов.

Обратите внимание: эта статья описывает неофициальный способ установить Google Play Store на Windows 11, поэтому действуйте на свой страх и риск. Также стоит отметить, что вам не нужно регистрироваться в программе предварительной оценки Windows и скачивать ранние версии Windows 11. В процессе написания этой инструкции нам удалось запустить Google Play Store на стабильной версии Windows 11.

Google Play в Windows 11 в подсистеме для Android

Чтобы установить Google Play в подсистему Windows для Android на Windows 11, вам надо выполнить следующие шаги.

  1. Удалить существующую подсистему Windows для Android.
  2. Включить подсистему Windows для Linux и платформу виртуальных машин.
  3. Добавить GApps в подсистему Windows для Android и модифицировать ядро WSA.
  4. Установить Google Play Store в подсистему Windows 11 для Android.
  5. Восстановить исходное ядро для подсистемы Windows для Android.

Рассмотрим каждый шаг подробно.

Удалите существующую подсистему Windows для Android

  1. Откройте приложение «Параметры» сочетанием Win + I.
  2. Щелкните Приложения.
  3. Нажмите на кнопку «Приложения и функции» справа.
  4. Выберите «магазин приложений Amazon«.
  5. Нажмите кнопку меню с тремя точками справа и выберите кнопку Удалить.удалить магазин приложений Amazon
  6. Снова нажмите кнопку «Удалить» для подтверждения.
  7. Поищите в списке оставшихся программ подсистему Windows для приложений Android. Если она там есть — тоже удалите её.удалить подсистему windows для android

Готово, можно приступать к следующему шагу.

Включите подсистему Windows для Linux и платформу виртуальных машин

  1. Откройте меню Пуск и введите Включение или отключение компонентов Windows, затем нажмите Enter.Включение или отключение компонентов Windows
  2. В новом окне установите отметку возле пункта Платформа виртуальной машины, а затем Подсистема Windows для Linux.Включить WSL и Платформа виртуальной машины
  3. Нажмите Ок и подождите, пока Windows скачает необходимые компоненты.
  4. Перезагрузите компьютер для применения изменений.
  5. После включения компьютера откройте любой браузер и перейдите по ссылке store.rg-adguard.net. На этом этапе вам надо скачать файлы подсистемы Android для последующей модификации и интеграции сервисов Google.
  6. В первом выпадающем списке выберите ProductID.
  7. В поисковую строку на странице (не в браузере) введите 9P3395VX91NR.
  8. В последнем выпадающем списке выберите Slow.
  9. Нажмите на кнопку с галочкой для поиска нужных компонентов.Скачать подсистему Windows для Android (WSA)
  10. Пролистайте список и найдите самый большой файл размером 1.2Гб. Скачайте его.Скачать файл
  11. Перейдите на сайт OpenGapps и установите платформу x86_64, Android 11, а затем выберите вариант Pico. Для загрузки выбранного набора нажмите на большую красную кнопку со стрелкой.Скачайте Gapps Pico и Google Play
  12. Пока вы ждете загрузки подсистемы и сервисов Google, перейдите в магазин Microsoft Store по ссылке для загрузки и установки Ubuntu. Если Ubuntu в WSL уже установлена, пропустите этот шаг.

На этом этапе у вас есть все файлы, необходимые для объединения GApps и WSA. Теперь вам нужно распаковать оба пакета и выборочно объединить их компоненты.

Распаковка файлов

  1. Теперь откройте ранее скачанный msixbundle файл с помощью любого удобного вам архиватора. Например, 7Zip.
  2. Внутри файла найдите файл WsaPackage_1.7.32815.0_x64_Release-Nightly.msix. Он занимает приблизительно 700 Мб.распаковать файл WsaPackage
  3. Откройте Проводник и перейдите на диск С. Создайте папку WindowsSubsystemAndroid.
  4. Скопируйте в созданную папку все файлы из msix-файла в архиваторе.
  5. После копирования файлов удалите следующее: папку AppxMetadata и файлы AppxBlockMap.xml, AppxSignature.p7x и [Content_Types].xml.
  6. Вернитесь в корень диска С и создайте папку GAppsWSA.
  7. Откройте браузер и перейдите по ссылке на страницу репозитория проекта, с помощью которого стало возможным установить Google Play Store на Windows 11.
  8. Нажмите Code > Download ZIP.(прямая ссылка на архив)Скачать скрипт установки Google Play Store на Windows 11
  9. Откройте загруженный архив, а затем папку внутри него. Скопируйте все содержимое папки в ранее созданную папку GAppsWSA.
  10. Теперь скопируйте ранее скачанный архив с сервисами Google (GAPPS) и скопируйте его в папку C:\GAppsWSA\#GAPPS.
  11. Перейдите в папку WindowsSubsystemAndroid и скопируйте следующие файлы: product.img, system.img, system_ext.img, vendor.img.
  12. Скопируйте файлы в папку C:\GAppsWSA\#IMAGES.

Готово. Теперь выполним пересборку ядра и включим GApps в состав WSA.

Пересборка ядра WSA

  1. Запустите Ubuntu в Терминале Windows и введите команду sudo su для получения рут-прав.
  2. Введите команду cd /mnt/c/GAppsWSA/ и нажмите Enter.
  3. Теперь надо установить lzip и unzip. Для этого воспользуйтесь следующими командой apt install lzip unzip. Нажмите Y для подтверждения действия.
  4. Теперь надо установить dos2unix. Для этого используйте команду apt install dos2unix.
  5. Выполните следующие команды одна за другой:
    • dos2unix ./appli.sh,
    • dos2unix ./extend_and_mount_images.sh,
    • dos2unix ./extract_gapps_pico.sh,
    • dos2unix ./unmount_images.sh, и
    • dos2unix ./VARIABLES.sh.
  6. Введите команду clear для удобства в дальнейшей работе с консолью.
  7. Теперь вводите следующие команды последовательно одна за другой, каждый раз нажимая Enter для выполнения. Обратите внимание, что Терминал должен возвращать сообщения об успешном выполнении команд. Команды:
    • ./extract_gapps_pico.sh,
    • ./extend_and_mount_images.sh,
    • ./apply.sh
    • ./unmount_images.sh.

Теперь соберем все файлы вместе и установим Google Play в Windows 11.

Установка Google Play и GApps в Windows 11

  1. Перейдите в папку c:\GAppsWSA\#IMAGES и скопируйте файлы product.img, system.img, syste_ext.img и vendor.img.
  2. Вставьте скопированные файлы в папку WindowsSubsystemAndroid.
  3. Перейдите в C:\GAppsWSA\misc и скопируйте файл kernel.
  4. Перейдите в папку WindowsSubsystemAndroid > Tools и переименуйте файл kernel в kernel_bak.
  5. Вставьте сюда ранее скопированный файл kernel.
  6. Откройте Параметры Windows и перейдите в раздел Конфиденциальность и безопасность > Для разработчиков. Включите режим разработчика.Включить режим разработчика Windows 11
  7. Запустите Терминал Windows с правами Администратора и откройте профиль PowerShell (запускается по умолчанию).запустите Терминал Windows от администратора
  8. В Терминале вставьте следующую команду: Add-AppxPackage -Register C:\WindowsSubsystemAndroid\AppxManifest.xml
  9. Откройте меню Пуск и запустите Windows Subsystem for Android.запустите Windows Subsystem for Android
  10. Включите режим разработчика.Включите режим разработчика в WSA
  11. Нажмите на кнопку со стрелкой возле Files.
  12. Снимите отметку возле пункта делиться диагностическими данными (в этом нет смысла, так как используется модифицированная подсистема).
  13. Закройте приложение Файлы и подождите минуту-две.
  14. Откройте меню Пуск и введите Google Play. Windows отобразит магазин Google Play Store в поисковой выдаче. Запустите магазин.Windows 11 установить Google Play

Готово! Теперь вы можете войти в свою учетную запись, после чего откроется главная страница магазина.

Однако, мы настойчиво рекомендуем на этом этапе закрыть магазин Google Play и вернуть на место оригинальный файл ядра в WSA.

Восстанавливаем оригинальный файл ядра

  1. Откройте Windows Subsystem for Android и нажмите кнопку Выключить. Подождите, пока не исчезнет анимация загрузки.Выключить подсистему Windows для Android
  2. Перейдите в C:\WindowsSubsystemAndroid\Tools и переименуйте файл kernel в kernel_root.
  3.  Наконец, переименуйте kernel_bak в kernel.

Готово. Теперь вы можете запустить магазин Google Play на Windows 11 и устанавливать любые необходимые вам приложения. Обратите внимание, что не все из них могут работать корректно, но подавляющее большинство популярных программ все же работают без особых проблем.

Источник

💡Узнавайте о новых статьях быстрее. Подпишитесь на наши каналы в Telegram и Twitter.

Судя по тому, что вы читаете этот текст, вы дочитали эту статью до конца. Если она вам понравилась, поделитесь, пожалуйста, с помощью кнопок ниже. Спасибо за вашу поддержку!

  • Windows srv 2022 datactr std kms
  • Windows subsystem for android скачать торрент
  • Windows subsystem for android download
  • Windows sql server 2017 express
  • Windows subsystem for android не устанавливается