Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Play Store crashes when you try to install any app #550

Closed
1 task done
MustardChef opened this issue May 23, 2023 · 18 comments
Closed
1 task done

[Bug] Play Store crashes when you try to install any app #550

MustardChef opened this issue May 23, 2023 · 18 comments
Labels
bug Something isn't working upstream It's something relative to upstream

Comments

@MustardChef
Copy link

Steps to reproduce/复现步骤

  1. Build WSA using MagiskOnWSALocal
  2. Open and sign in to your Google Account in the Google Play Store
  3. Try to install an app
  4. Play Store will crash

Expected behaviour/预期行为

Application from the Play Store should install withou any issue

Actual behaviour/实际行为

Play Store crashes

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

969d2b2

Linux distribution info/Linux 发行版信息

OS: Ubuntu 22.04.2 LTS on Windows 10 x86_64
Kernel: 5.15.90.1-microsoft-standard-WSL2

Windows version/Windows 版本

10.0.22621.1702

Build Parameters/构建参数

sudo ./build.sh --arch x64 --release-type WIF --magisk-ver canary --gapps-brand MindTheGapps --gapps-variant pico --root-sol none --compress-format zip --remove-amazon

INFO: Architecture: x64
INFO: Release Type: WIF
INFO: Magisk Version: canary
INFO: GApps Brand: MindTheGapps
INFO: GApps Variant: pico
INFO: Root Solution: none
INFO: Compress Format: zip
Build: RELEASE_TYPE=Insider Fast

Version requirement/版本要求

  • I am using latest commit of MagiskOnWSALocal/我正在使用最新 commit 的版本

Logs/日志

# Replace this line with the log / 将此行用日志替换
@MustardChef MustardChef added the bug Something isn't working label May 23, 2023
@MustardChef
Copy link
Author

MustardChef commented May 23, 2023

I would like to add that this is not an isolated incident, but many people have been having this issue/ are still having this issue.

@MustardChef
Copy link
Author

bandicam_2023-05-19_08-27-14-154.mp4

@Howard20181
Copy link
Member

Check microsoft/WSA#309

@MustardChef
Copy link
Author

Check microsoft/WSA#309

Ah, so that is the reason for this.

@Howard20181
Copy link
Member

Not thing we can do.

@YT-Advanced
Copy link

YT-Advanced commented May 24, 2023

Not thing we can do.

Turn off the setting "Block installation of malcious apps" will work ?
image

@Howard20181
Copy link
Member

Not thing we can do.

Turn off the setting "Block installation of malcious apps" will work ?
image

No.
Only work if you disable antivirus.

@YT-Advanced
Copy link

Only work if you disable antivirus.

Hmm, so sad :(

@MustardChef
Copy link
Author

MustardChef commented May 24, 2023

I would like to add that some users are also having their Play Store app crash without installing anything. Is this also to do with the WSA stated earlier

@Howard20181
Copy link
Member

I would like to add that some users are also having their Play Store app crash without installing anything. Is this also to do with the WSA stated earlier

Did only the Play Store crash (single app) or the entire WSA crash (entire WSA reload)?
Logs are needed to know what happened.

@marchingon12
Copy link

marchingon12 commented May 24, 2023

System Info:

OS: Windows 11 Home
CPU: Ryzen 7 4800H
RAM: 32GB DDR4 SDRAM
iGPU: AMD Radeon Graphics
GPU: NVIDIA RTX 2060
Model name: OMEN 15 Laptop (HP)

On behalf of @MustardChef I will be providing some visual evidence and logs (they may not be 100% accurate to the videos as they were recorded in an earlier time). There are two parts in the investigation:

  1. Installing WSA with Magisk and Play Store without AmazonAppstore:

WSA seems to be running in the background, setting up stuff that is required for it to work properly. However, no apps get installed and Android Settings appears to launch but will not load, ultimately killing itself altogether. I restart the whole laptop (part 2).

https://streamable.com/kk98lg

Logs included:

20230524123514.log
20230524123831.log
20230524123900.log
20230524124048.log
20230524123323.log

  1. Signing in to Play Store before trying to install an app (Instagram)

Play Store seems to crash before installing any app, I'm suspecting maybe something trying to get installed/updated in the background like Play Services or AR Services. There are no notification pop-ups indicating any installations or updates.

https://streamable.com/ts1eil

Logs included:

20230524125524.log
20230524125719.log
20230524125044.log

@Howard20181
Copy link
Member

Try turning off all manually installed antivirus software, leaving only Microsoft Defender.

@marchingon12
Copy link

Installing works without any crashing when only Microsoft Defender is on, it's quite apparent to your findings on microsoft/WSA#309

@Howard20181
Copy link
Member

Howard20181 commented May 24, 2023

From the logs, the line I FileSystemRedirectionHandler: Package verification request always appears a few seconds before the system crashes.
When installing the application, WSA will call FileSystemRedirectionHandler to forward the file to the antivirus software on Windows for real-time scanning, regardless of whether the "Prevent malware installation" is disabled (this feature will prevent the installation of malware when it is turned on, and pop-up notifications when it is turned off, so it needs to be scanned whether it is turned on or off), but some third-party antivirus providers incorrectly implement the engine display name, which can cause WsaClient to crash.

There are several situations that may trigger a Package verification request

  1. when trying to install Magisk App during a new WSA installation
  2. The Play Store will update itself automatically when needed
  3. The Play Store will update the Play service when needed (this can happen at login)
  4. Installing the app by any method (including installing on the Play Store)

@MustardChef
Copy link
Author

MustardChef commented May 24, 2023

So this is still due to the Package Verification/ Malicious app detection feature on WSA, right?

@Howard20181
Copy link
Member

So this is still due to the Package Verification/ Malicious app detection feature on WSA?

Yes, and you can't turn off scanning, the difference between the switch is just alert or block. Turning the switch on is blocking, turning it off is alerting.

@Howard20181 Howard20181 added the upstream It's something relative to upstream label May 24, 2023
@marchingon12
Copy link

marchingon12 commented May 26, 2023

Seems to have been fixed with the release of WSA_2304.40000.7.0_x64, tested on latest build with Magisk + MindTheGapps - AmazonAppstore

@MustardChef
Copy link
Author

Will close the issue as it is no longer an issue now.

@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working upstream It's something relative to upstream
Projects
None yet
Development

No branches or pull requests

4 participants