WSA-Community / WSAGAScript

Scripts to install Google Apps into a WSA image. Plus optional root
The Unlicense
3.59k stars 3.53k forks source link

The new WSA version (2204) breaks compatibility #213

Closed LightJack05 closed 2 years ago

LightJack05 commented 2 years ago

I tried to modify the new version (2204). While the Playstore gets installed, it blocks signing in, saying "This device is not Play Protect certified."

marticliment commented 2 years ago

x2. tried registering product with no success

kensuke commented 2 years ago

model name didn't recognized? wsa11to12

marticliment commented 2 years ago

It gets recognized, but it is not validated

kensuke commented 2 years ago

fix img size fix build.prop location login succeeded with open_gapps-x86_64-11.0-pico-20220215

echo "chk vendor.img" e2fsck -f $ImagesRoot/vendor.img

echo "Resizing vendor.img"

resize2fs $ImagesRoot/vendor.img 300M

resize2fs $ImagesRoot/vendor.img 512M


- apply.sh

fix_prop product $MountPointProduct/build.prop

fix_prop product $MountPointProduct/etc/build.prop

fix_prop system_ext $MountPointSystemExt/build.prop

fix_prop system_ext $MountPointSystemExt/etc/build.prop

RogueOwl commented 2 years ago
  • apply.sh
#fix_prop product $MountPointProduct/build.prop
fix_prop product $MountPointProduct/etc/build.prop
#fix_prop system_ext $MountPointSystemExt/build.prop
fix_prop system_ext $MountPointSystemExt/etc/build.prop

You might also have to modify a couple other lines further down in the file

echo "Applying SELinux security contexts to props"
...
#chcon --reference=$MountPointSystemExt/etc $MountPointSystemExt/build.prop
chcon --reference=$MountPointSystemExt/etc $MountPointSystemExt/etc/build.prop
#chcon --reference=$MountPointProduct/etc $MountPointProduct/build.prop
chcon --reference=$MountPointProduct/etc $MountPointProduct/etc/build.prop
...
The-MAZZTer commented 2 years ago

Following the steps from the past two comments fixed my issues.

I would suggest the README be updated to list the specific version(s) it has been tested on, as well as provide a method for downloading those specific version(s) (instead of the latest WSA). I wasn't aware I was getting this latest version when I followed the steps; I assumed it would be the older one that these scripts were originally developed for.

LightJack05 commented 2 years ago

I use the installWSAGA.sh... Since that downloads the scripts directly from GitHub, I would need to either make the script modify the files after downloading or wait for me to manually edit them. So I could either just put in a "pause" or make it rewrite the lines in the other script files (no idea on how to do that), right?

LightJack05 commented 2 years ago

So, I modified the files once it asks for the architecture. However, it seems like the Gapps are completely missing.... (At least from start.) Maybe I'm just stupid... Anyone can upload the modified files so I can simply drag them in?

kensuke commented 2 years ago

OK I'm cloning repos and modified 2 files.

raw files https://raw.githubusercontent.com/kensuke/WSAGAScript/0bf8ad4569e87322606dd6c9fadc38fd07d1cfd5/extend_and_mount_images.sh https://raw.githubusercontent.com/kensuke/WSAGAScript/6c6da0c6d6b78ea178698f0f7e558f36a4fabd31/apply.sh

diffs extend_and_mount_images.sh https://github.com/kensuke/WSAGAScript/commit/0bf8ad4569e87322606dd6c9fadc38fd07d1cfd5

apply.sh https://github.com/kensuke/WSAGAScript/commit/3eb26916bd4b1ad28494f066a8f88ccc2a1ad679 (1. mistakes!) https://github.com/kensuke/WSAGAScript/commit/6c6da0c6d6b78ea178698f0f7e558f36a4fabd31 (2. repaired..)

repos https://github.com/kensuke/WSAGAScript

deutschthomas commented 2 years ago

I found a for Android 12L/12.1 x86_64 built OpenGApps pico here LSPosed/MagiskOnWSA#351, as the original link is not 24h available I uploaded it into my Onedrive https://1drv.ms/u/s!Aogy7BCP2WhegaNzD7R5di3_qJyqlw?e=SKgrmL, this may be better than using the android 11 OpenGApps

LightJack05 commented 2 years ago

The default Android 11 GApps seem to work fine. The script modifications fix the certification issue, but the default "C:\WSA\AppxManifest.xml" Path doesn't work. It gives me an error "Wrong Parameter" and doesn't launch. Copying it somewhere else (for me into my OneDrive) works fine though.

marticliment commented 2 years ago

OK I'm cloning repos and modified 2 files.

raw files https://raw.githubusercontent.com/kensuke/WSAGAScript/0bf8ad4569e87322606dd6c9fadc38fd07d1cfd5/extend_and_mount_images.sh https://raw.githubusercontent.com/kensuke/WSAGAScript/6c6da0c6d6b78ea178698f0f7e558f36a4fabd31/apply.sh

diffs extend_and_mount_images.sh kensuke@0bf8ad4

apply.sh kensuke@3eb2691 (1. mistakes!) kensuke@6c6da0c (2. repaired..)

repos https://github.com/kensuke/WSAGAScript

I can confirm that now it works

Sunny350-cmyk commented 2 years ago

I tried the installation twice. But i cant login into Google. After i start the Subsystem i get a lot of Messages (every 2 seconds) , that my device is not certified by Google Play Protect. I have to turn the Subsystem off to stop the messages.

I found this Files from kensuke but both don't work. I really don't know if im doing it right because there is no explanation. I downloaded the extend_and_mount_images.sh and the apply.sh and replace the originals in the folder. But at the point i have to use the "./extend_and_mount_images.sh" and the "./apply.sh" i got an error message. Curious.....the day before i got an other error with something with line 9. Now its 8.

Screenshot 2022-06-08 112351

marticliment commented 2 years ago

You might need to uninstall any older version (yes, this implies loosing data) before converting and installing the new version.

marticliment commented 2 years ago

I found this Files from kensuke

Try using only the files given in the repo

Sunny350-cmyk commented 2 years ago

I dont have an older version. After it didn't work yesterday, i deleted WSA and startet from the beginning.

What do you mean with "only the files given in the repo"?

I first install the "normal" repo from https://github.com/WSA-Community/WSAGAScript.git

This didn't work because of Google Play Protect Certification. Then i tried to search for this problem and found this issue and the solution from kensuke.

Now i didn't know exactly what i have to do, so i downloaded the 2 files and replace the original ones. Then i start the installation from the beginning but get the error message if i try to "./" the extend.... and the apply file.

There was no error with the original files, but then i get thousands of messages, that my device is not certified.

I am new to this site. Sorry, if i dont understand all things inmediately.

marticliment commented 2 years ago

I have explained myself wrong. Can you please try cloning kensuke's repo instead on these one?

Like the whole repo, not only the single files

Sunny350-cmyk commented 2 years ago

That was the solution. I needed ALL files. Not only the 2 i downloaded. Now i dont need the adb kit to login to google. Many thanks for this quick help. I never expected this. ;)

Geczy commented 2 years ago

OK I'm cloning repos and modified 2 files.

raw files kensuke/WSAGAScript@0bf8ad4/extend_and_mount_images.sh (raw) kensuke/WSAGAScript@6c6da0c/apply.sh (raw)

diffs extend_and_mount_images.sh kensuke@0bf8ad4

apply.sh kensuke@3eb2691 (1. mistakes!) kensuke@6c6da0c (2. repaired..)

repos kensuke/WSAGAScript

these steps worked for me, bypassed certified issue. thank you !

Methanoia commented 2 years ago

OK I'm cloning repos and modified 2 files. raw files kensuke/WSAGAScript@0bf8ad4/extend_and_mount_images.sh (raw) kensuke/WSAGAScript@6c6da0c/apply.sh (raw) diffs extend_and_mount_images.sh kensuke@0bf8ad4 apply.sh kensuke@3eb2691 (1. mistakes!) kensuke@6c6da0c (2. repaired..) repos kensuke/WSAGAScript

these steps worked for me, bypassed certified issue. thank you !

Hello! I don't understand how to apply those steps :( is it very difficult?