YT-Advanced / WSA-Script

Integrate Magisk root and Google Apps into WSA (Windows Subsystem for Android) with GitHub Actions
https://YT-Advanced.github.io/WSA-Script/
GNU Affero General Public License v3.0
828 stars 169 forks source link

[Bug] Multiple problems #803

Closed dennbenn73 closed 6 months ago

dennbenn73 commented 1 year ago

Steps to reproduce

  1. Downloaded and checked file integrity of prebuilt asset WSA_2309.40000.10.0_x64_Release-Nightly-MindTheGapps-13.0-as-Pixel-5-RemovedAmazon.7z
  2. Extracted archive to folder on C:\ of Surface Pro 9 (Core i7-1265U, 16GB RAM)
  3. Executed Run.bat but was not prompted with request for WSA administrative permission
  4. Opened Terminal (Admin) and executed PowerShell.exe -ExecutionPolicy Bypass -File .\Install.ps1 command

Expected behaviour

Executing Run.bat and/or Install.ps1 files should install prebuilt WSA as described by the instruction guide.

Actual behaviour

  1. Gapps was not installed.
  2. Subsystem resources are locked on 'Partially running' setting - cannot be adjusted to 'As needed' or 'Continuous' settings.
  3. Attempting to open WSA 'Manage developer settings' causes subsystem force close with permission error message: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." permission_error

Windows version

11.0.22621.2506 (22H2)

Build Issue number

No response

Version requirement

github-actions[bot] commented 1 year ago

We are checking your Issues body and head ...

https://github.com/YT-Advanced/WSA-Script/actions/runs/6670736570

YT-Advanced commented 1 year ago

First, uninstall your installed build, then delete the extracted folder. Next, extract again but with a short folder name, example: "WSA" Install again (NOTE: Allow administrator request) and check back

dennbenn73 commented 1 year ago

There wasn't any request for Admin privilege during the either installation attempt. I have shortened the folder name, and was given the same error message. permission_error

I had the official WSA installed before; how do I know if the previous installation has been completely removed?

YT-Advanced commented 1 year ago

You can check if WSA still shown in Settings or Control Panel. And also go to this path and delete it %LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe

dennbenn73 commented 1 year ago

I think I am looking in the correct location C:\Users\denn_\AppData\Local\Packages\ and I didn't see any folder named MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe

Windows 11 is a permissions nightmare.

EDIT: Here is what else I have tried:

  1. Decrypted drive and disabled Bitlocker.
  2. Installed 'Take Ownership' registry file and used on all WSA files before and after installation.
  3. Made sure that I am system adminstrator by opening Terminal (Admin) and running these two commands: PS C:\Users\denn_> $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) PS C:\Users\denn_> $currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) True
s1204IT commented 6 months ago

Please install the latest version.