|
5 | 5 | # As a temporary measure I made a tutorial |
6 | 6 | [](http://www.youtube.com/watch?v=rIt00xDp0tM "How to install Google Apps (Play Store) on WSA (Windows Subsystem Android)") |
7 | 7 |
|
8 | | -## SIGN IN DOESN'T WORK CURRENTLY. |
| 8 | +## SIGN IN DOESN'T WORK CURRENTLY. (Unless you use the fix at the bottom) |
9 | 9 | ### THIS IS FOR TESTING |
10 | 10 |
|
11 | | -Download MSIXBUNDLE (use store rg-adguard to download the msixbundle, Package id: 9P3395VX91NR, Ring: SLOW, size is around 1.2GB) |
12 | | - |
13 | | -INSTALL WSL2 (ubuntu/debian, any other distro could work) |
14 | | - |
15 | | -INSTALL unzip lzip |
16 | | - |
17 | | -DOWNLOAD GAPPS PICO FROM OPENGAPPS (x86_64, 11, PICO) |
18 | | - |
19 | | -EXTRACT MSIXBUNDLE, EXTRACT MSIX (YOUR ARCH) TO A FOLDER, DELETE (APPXMETADATA, APPXBLOCKMAP, APPXSIGNATURE, \[CONTENT_TYPES\]) |
20 | | - |
21 | | -COPY IMAGES (SYSTEM.IMG, SYSTEM_EXT.IMG, PRODUCT.IMG, VENDOR.IMG) TO #IMAGES |
22 | | - |
23 | | -COPY (GAPPS PICO ZIP) TO #GAPPS |
24 | | - |
25 | | -EDIT (VARIABLES.sh) AND SET ROOT FOLDER |
26 | | - |
27 | | -EXECUTE AS SUDO: |
28 | | -- extract_gapps_pico.sh |
29 | | -- extend_and_mount_images.sh |
30 | | -- apply.sh |
31 | | -- unmount_images.sh |
32 | | - |
33 | | -COPY IMAGES FROM (#IMAGES FOLDER) TO YOUR EXTRACTED MSIX FOLDER |
34 | | - |
35 | | -OPEN POWERSHELL (NOT CORE) AS ADMIN, EXECUTE (Add-AppxPackage -Register PATH_TO_EXTRACTED_MSIX\AppxManifest.xml) |
36 | | -DEVELOPMENT MODE HAS TO BE ENABLED BEFOREHAND. MAKE SURE YOU DON'T HAVE WSA ALREADY INSTALLED, THEY CAN'T COEXIST. |
37 | | - |
38 | | -RUN WSA WITH GAPPS, ENJOY |
| 11 | +### Download msixbundle (~1.2GB) |
| 12 | +Use this [link](https://store.rg-adguard.net/) to download the msixbundle with the settings ProductId: 9P3395VX91NR, Ring: SLOW |
| 13 | + |
| 14 | +### Install WSL2 |
| 15 | +Ubuntu is used in this guide but any other distro will work for this |
| 16 | + |
| 17 | +(We are assuming that you are using the exact terminal, and you are also continuing this from where the last command left off) |
| 18 | + |
| 19 | +### Install unzip lzip |
| 20 | +For Ubuntu |
| 21 | +``` |
| 22 | +sudo apt-get update |
| 23 | +sudo apt install unzip lzip |
| 24 | +``` |
| 25 | + |
| 26 | +### Download gapps |
| 27 | +Select Platform: x86_64 if Windows architecture is x64 otherwise choose ARM64, Android: 11 and Variant: Pico on [OpenGApps](https://opengapps.org/) |
| 28 | + |
| 29 | +### Extract msixbundle |
| 30 | +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. |
| 31 | +Delete the files appxblockmap, appxsignature and \[content_types\] along with the folder appxmetadata |
| 32 | + |
| 33 | +### Clone this repo and populate the directories |
| 34 | +For Ubuntu |
| 35 | +``` |
| 36 | +git clone https://github.com/ADeltaX/WSAGAScript |
| 37 | +cd WSAGAScript/\#IMAGES |
| 38 | +mv /mnt/path-to-extracted-msix/*.img . |
| 39 | +cd ../\#GAPPS |
| 40 | +cp /mnt/path-to-downloaded-gapps/*.zip . |
| 41 | +``` |
| 42 | +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 |
| 43 | + |
| 44 | + |
| 45 | +### Edit scripts |
| 46 | +Set executable permission for the scripts |
| 47 | +``` |
| 48 | +cd.. |
| 49 | +sudo chmod +x extract_gapps_pico.sh |
| 50 | +sudo chmod +x extend_and_mount_images.sh |
| 51 | +sudo chmod +x apply.sh |
| 52 | +sudo chmod +x unmount_images.sh |
| 53 | +``` |
| 54 | +Change the root directory in VARIABLES.sh |
| 55 | +``` |
| 56 | +pwd |
| 57 | +``` |
| 58 | +(take note of the output) |
| 59 | +``` |
| 60 | +nano VARIABLES.sh |
| 61 | +``` |
| 62 | + |
| 63 | +replace the root variable with the output of pwd up until and including the WSAGAScript folder |
| 64 | + |
| 65 | + |
| 66 | +### Run the scripts |
| 67 | +``` |
| 68 | +sudo ./extract_gapps_pico.sh |
| 69 | +sudo ./extend_and_mount_images.sh |
| 70 | +sudo ./apply.sh |
| 71 | +sudo ./unmount_images.sh |
| 72 | +``` |
| 73 | + |
| 74 | +### Copy the edited images |
| 75 | +``` |
| 76 | +cd \#IMAGES |
| 77 | +cp *.img /mnt/path-to-extracted-msix/ |
| 78 | +``` |
| 79 | +### Register the edited WSA |
| 80 | +Enable developer mode in windows settings |
| 81 | +Uninstall any other installed versions of WSA |
| 82 | +Open powershell as admin and run ```Add-AppxPackage -Register path-to-extracted-msix\AppxManifest.xml``` |
| 83 | + |
| 84 | +WSA will install with gapps |
39 | 85 |
|
40 | 86 | # WORKAROUND FOR SIGN IN ISSUE: |
41 | 87 | ## (ADB SHELL ROOT WITH su) |
| 88 | +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) |
42 | 89 |
|
43 | | -COPY (kernel FILE) FROM (misc FOLDER) TO (Tools FOLDER) IN YOUR EXTRACTED MSIX FOLDER |
44 | | - |
45 | | -NOW YOU CAN USE su IN ADB SHELL |
46 | | -ENTER ADB SHELL, TYPE su THEN TYPE setenforce 0 |
47 | | -YOU CAN NOW SIGN IN |
48 | | - |
| 90 | +This will allow you use use su inside adb shell |
49 | 91 |
|
50 | | -This readme will be rewritten very soon |
| 92 | +Enter adb shell and run |
| 93 | +``` |
| 94 | +su |
| 95 | +setenforce 0 |
| 96 | +``` |
| 97 | +You can now sign in |
0 commit comments