From 37f2c1fc2b7422008f09de4f818b9b707e7bfb6c Mon Sep 17 00:00:00 2001 From: ItsLogic <38233332+ItsLogic@users.noreply.github.com> Date: Sat, 23 Oct 2021 07:33:39 +0100 Subject: [PATCH 1/4] update readme with more detailed instructions --- README.md | 119 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 83 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 14fc483..d37bcac 100644 --- a/README.md +++ b/README.md @@ -2,46 +2,93 @@ # This readme is being updated multiple times. I'm aware that's not clear, I'm going to resolve it ASAP. -## SIGN IN DOESN'T WORK CURRENTLY. +## SIGN IN DOESN'T WORK CURRENTLY. (Unless you use the fix at the bottom) ### THIS IS FOR TESTING -Download MSIXBUNDLE (use store rg-adguard to download the msixbundle, Package id: 9P3395VX91NR, Ring: SLOW, size is around 1.2GB) - -INSTALL WSL2 (ubuntu/debian, any other distro could work) - -INSTALL unzip lzip - -DOWNLOAD GAPPS PICO FROM OPENGAPPS (x86_64, 11, PICO) - -EXTRACT MSIXBUNDLE, EXTRACT MSIX (YOUR ARCH) TO A FOLDER, DELETE (APPXMETADATA, APPXBLOCKMAP, APPXSIGNATURE, \[CONTENT_TYPES\]) - -COPY IMAGES (SYSTEM.IMG, SYSTEM_EXT.IMG, PRODUCT.IMG, VENDOR.IMG) TO #IMAGES - -COPY (GAPPS PICO ZIP) TO #GAPPS - -EDIT (VARIABLES.sh) AND SET ROOT FOLDER - -EXECUTE AS SUDO: -- extract_gapps_pico.sh -- extend_and_mount_images.sh -- apply.sh -- unmount_images.sh - -COPY IMAGES FROM (#IMAGES FOLDER) TO YOUR EXTRACTED MSIX FOLDER - -OPEN POWERSHELL (NOT CORE) AS ADMIN, EXECUTE (Add-AppxPackage -Register PATH_TO_EXTRACTED_MSIX\AppxManifest.xml) -DEVELOPMENT MODE HAS TO BE ENABLED BEFOREHAND. MAKE SURE YOU DON'T HAVE WSA ALREADY INSTALLED, THEY CAN'T COEXIST. - -RUN WSA WITH GAPPS, ENJOY +### Download msixbundle (~1.2GB) +Use 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 + +(all commands in this readme assume you are using the same terminal and are continuing from where the last command left off) + +### Install unzip lzip +For Ubuntu +``` +sudo apt-get update +sudo apt install unzip lzip +``` + +### Download gapps +Select Platform: x86_64, Android: 11 and Variant: Pico on 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 + +### 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 + + +### 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 + + +### Run the scripts +``` +sudo ./extract_gapps_pico.sh +sudo ./extend_and_mount_images.sh +sudo ./apply.sh +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``` + +WSA will install with gapps # 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) -COPY (kernel FILE) FROM (misc FOLDER) TO (Tools FOLDER) IN YOUR EXTRACTED MSIX FOLDER - -NOW YOU CAN USE su IN ADB SHELL -ENTER ADB SHELL, TYPE su THEN TYPE setenforce 0 -YOU CAN NOW SIGN IN - +This will allow you use use su inside adb shell -This readme will be rewritten very soon +Enter adb shell and run +``` +su +setenforce 0 +``` +You can now sign in From b763aa032e699ee87205c56c3b7ba5deb370289a Mon Sep 17 00:00:00 2001 From: ItsLogic <38233332+ItsLogic@users.noreply.github.com> Date: Sat, 23 Oct 2021 09:27:51 +0100 Subject: [PATCH 2/4] Requested fixes --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d37bcac..6e02a7b 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ ### THIS IS FOR TESTING ### Download msixbundle (~1.2GB) -Use https://store.rg-adguard.net/ to download the msixbundle with the settings ProductId: 9P3395VX91NR, Ring: SLOW +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 -(all commands in this readme assume you are using the same terminal and are continuing 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 left off) ### Install unzip lzip For Ubuntu @@ -21,7 +21,7 @@ sudo apt install unzip lzip ``` ### Download gapps -Select Platform: x86_64, Android: 11 and Variant: Pico on https://opengapps.org/ +Select Platform: x86_64, 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. From 5146f64c91cb40285e536c765867e80759697209 Mon Sep 17 00:00:00 2001 From: Draff Date: Sat, 23 Oct 2021 09:49:57 +0100 Subject: [PATCH 3/4] add video --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6e02a7b..2b994bf 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ # This readme is being updated multiple times. I'm aware that's not clear, I'm 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)") + ## SIGN IN DOESN'T WORK CURRENTLY. (Unless you use the fix at the bottom) ### THIS IS FOR TESTING From 1ead0f6c38abdceb76a75f14c538428b78f94937 Mon Sep 17 00:00:00 2001 From: ItsLogic <38233332+ItsLogic@users.noreply.github.com> Date: Sat, 23 Oct 2021 10:27:39 +0100 Subject: [PATCH 4/4] Changes to architecture instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b994bf..2dfc97a 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ sudo apt install unzip lzip ``` ### Download gapps -Select Platform: x86_64, Android: 11 and Variant: Pico on [OpenGApps](https://opengapps.org/) +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.