Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 49 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,89 @@
# IT'S **WIP**

# This readme is being updated multiple times. I'm aware that's not clear, I'm going to resolve it ASAP.
# This readme is being updated frequently. As I am aware that it might not be completely clear right now, I am going to resolve it ASAP.

# As a temporary measure I made a tutorial
[![How to install Google Apps (Play Store) on WSA (Windows Subsystem Android)](http://img.youtube.com/vi/rIt00xDp0tM/0.jpg)](http://www.youtube.com/watch?v=rIt00xDp0tM "How to install Google Apps (Play Store) on WSA (Windows Subsystem Android)")
# As a temporary measure, I have also made a tutorial and hosted that video on YouTube.

<p align="center">

[![How to install Google Apps (Play Store) on WSA (Windows Subsystem Android)](http://img.youtube.com/vi/rIt00xDp0tM/0.jpg)](http://www.youtube.com/watch?v=rIt00xDp0tM 'How to install Google Apps (Play Store) on WSA (Windows Subsystem Android)')

</p>

## SIGN-IN ISN'T WORKING CURRENTLY. (UNLESS YOU ARE USING THE FIX GIVEN AT THE BOTTOM)

## SIGN IN DOESN'T WORK CURRENTLY. (Unless you use the fix at the bottom)
### THIS IS FOR TESTING

### Download msixbundle (~1.2GB)

Use this [link](https://store.rg-adguard.net/) to download the msixbundle with the settings ProductId: 9P3395VX91NR, Ring: SLOW

### Install WSL2
Ubuntu is used in this guide but any other distro will work for this
### Install WSL2

Ubuntu is used in this guide, but any other distro will work for this just fine.

(We are assuming that you are using the exact terminal, and you are also continuing this from where the last command left off)
(We are assuming that you are using the exact terminal, and you are also continuing this from where the last command has been left off)

### Install unzip lzip

### Install unzip lzip
For Ubuntu

```
sudo apt-get update
sudo apt install unzip lzip
```

### Download gapps
Select Platform: x86_64 if Windows architecture is x64 otherwise choose ARM64, Android: 11 and Variant: Pico on [OpenGApps](https://opengapps.org/)
### Download gapps

Select Platform: x86_64 if Windows architecture is x64, otherwise choose ARM64, Android: 11 and Variant: Pico on [OpenGApps](https://opengapps.org/)

### Extract msixbundle

Download 7zip or a similar archival program and open the recently downloaded msixbundle. Find the msix file inside the msixbundle relating to your architecture and extract that to a folder.
Delete the files appxblockmap, appxsignature and \[content_types\] along with the folder appxmetadata
Delete the files appxblockmap, appxsignature and \[content_types\] along with the folder appxmetadata.

### Clone this repo and populate the directories

For Ubuntu

```
git clone https://github.com/ADeltaX/WSAGAScript
cd WSAGAScript/\#IMAGES
mv /mnt/path-to-extracted-msix/*.img .
cd ../\#GAPPS
cp /mnt/path-to-downloaded-gapps/*.zip .
```
paths in wsl follow the same as windows after /mnt/ its just the drive letter then folder structure as normal. For example /mnt/c/users would be the c:\users folder

paths in wsl follow the same as windows after /mnt/ its just the drive letter then folder structure as normal. For example /mnt/c/users would be the c:\users folder

### Edit scripts

Set executable permission for the scripts

```
cd ..
sudo chmod +x extract_gapps_pico.sh
sudo chmod +x extend_and_mount_images.sh
sudo chmod +x apply.sh
sudo chmod +x unmount_images.sh
```

Change the root directory in VARIABLES.sh

```
pwd
```

(take note of the output)

```
nano VARIABLES.sh
```

replace the root variable with the output of pwd up until and including the WSAGAScript folder

replace the root variable with the output of pwd up until and including the WSAGAScript folder

### Run the scripts

**Debian WSL users need to create an mtab symlink:**
```
sudo ln -s /proc/self/mounts /etc/mtab
Expand All @@ -77,26 +97,33 @@ sudo ./unmount_images.sh
```

### Copy the edited images

```
cd \#IMAGES
cp *.img /mnt/path-to-extracted-msix/
```

### Register the edited WSA
Enable developer mode in windows settings
Uninstall any other installed versions of WSA
Open powershell as admin and run ```Add-AppxPackage -Register path-to-extracted-msix\AppxManifest.xml```

- Enable developer mode in windows settings.
- Uninstall any other installed versions of WSA
- Open powershell as admin and run `Add-AppxPackage -Register path-to-extracted-msix\AppxManifest.xml`

WSA will install with gapps

# WORKAROUND FOR SIGN IN ISSUE:
# WORKAROUND FOR SIGN-IN ISSUE:

## (ADB SHELL ROOT WITH su)
Copy the kernel file from this repo and replace the kernel file inside the Tools folder of your extracted msix (make sure WSA is not running)

This will allow you use use su inside adb shell
Copy the kernel file from this repo and replace the kernel file inside the `Tools` folder of your extracted msix (make sure WSA is not running)

This will allow you to use use `su` inside the adb shell.

Enter into the adb shell and run the following commands

Enter adb shell and run
```
su
setenforce 0
```
You can now sign in

You can sign in successfully from now on.