LSPosed / MagiskOnWSALocal

Integrate Magisk root and Google Apps into WSA (Windows Subsystem for Android)
GNU Affero General Public License v3.0
9.6k stars 23.12k forks source link

[Bug] App Cannot be Installed #382

Closed lucasoskorep closed 1 year ago

lucasoskorep commented 1 year ago

Steps to reproduce/复现步骤

  1. Ubuntu WSL install used to build latest code (yesterday 2/6/2023)
  2. go to scripts and run
  3. all default options for install
  4. Return to windows and try to run run.bat from the output folder
  5. Get the following error message:
    Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered.
                                                                                                                         Deployment operation progress: C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-w    Processing                                                                                                              [oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo                                      ]                                                                                                                              NOTE: For additional information, look for [ActivityId] aab3e185-39e9-0005-5d78-b5aae939d901 in the Event Log or use
    the command line Get-AppPackageLog -ActivityID aab3e185-39e9-0005-5d78-b5aae939d901
    At C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stabl
    e-MindTheGapps-13.0\Install.ps1:102 char:1
    + Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion  ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\Users\lucas\...ppxManifest.xml:String) [Add-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

Running Get-AppPackageLog we get

Started deployment Register operation on a package with main parameter AppxManifest.xml and Options ForceApplicationShutdownOption,DevelopmentModeOption,ForceUpdateFromAnyVersion and 0. See
                                       http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
2/6/2023 12:15:31 AM      216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
2/6/2023 12:15:31 AM      10002        Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\84c212c8-000d-46d1-997b-330c776255be_S-1-5-21-3054649336-2474637261-2939303473-1001_3.rslc for Register Operation on Package
                                       MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe.
2/6/2023 12:15:31 AM      607          Deployment Register operation on package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe has been de-queued and is running for user SID
                                       S-1-5-21-3054649336-2474637261-2939303473-1001.
2/6/2023 12:15:31 AM      854          Successfully added the following uri(s) to be processed:  C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\AppxManifest.xml.
2/6/2023 12:15:32 AM      855          Finished resolving action lists. DeploymentRequest action lists: addPackageList: MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe.
2/6/2023 12:15:32 AM      9643         0x0: TerminateApplications successful.
2/6/2023 12:15:32 AM      9643         0x0: TerminateApplications successful.
2/6/2023 12:15:32 AM      10000        About to service package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. Setting the package state to disabled returned with 0x0.
2/6/2023 12:15:32 AM      10000        About to service package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. Setting the package state to disabled returned with 0x0.
2/6/2023 12:15:32 AM      9643         0x0: TerminateApplications successful.
2/6/2023 12:15:32 AM      9643         0x0: TerminateApplications successful.
2/6/2023 12:15:32 AM      9626         AppxManifest.xml(108,12): PackagedServiceDEH successfully parsed manifest for package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe install
2/6/2023 12:15:32 AM      9622         0x0: PackagedServiceDEH EvaluateRequest completed successfully
2/6/2023 12:15:32 AM      9623         0x0: PackagedServiceDEH CommitRequest completed successfully
2/6/2023 12:15:32 AM      9625         0x0: PackagedServiceDEH RemoveRequest completed successfully
2/6/2023 12:15:32 AM      5044         AppxManifest.xml(85,27): error 0x80073B06: Cannot install or update package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because a splash screen image for the current application context cannot be
                                       identified. The application context could include a specific language, DPI, contrast, or other special circumstance. Add a splash screen image to be used as a default if a context-specific splash screen image cannot
                                       be identified.
2/6/2023 12:15:32 AM      5042         AppxManifest.xml(85,27): error 0x80073B06: Cannot install, update, or uninstall package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because the splash screen element could not be parsed from the
                                       package's manifest. Verify that the splash screen element in the package manifest is valid.
2/6/2023 12:15:32 AM      5091         error 0x80073B06: The Visual Elements extension failed while processing the SplashScreen element in the package manifest.
2/6/2023 12:15:32 AM      303          error 0x80073B06: While preparing to process the request, the system failed to register the windows.visualElements extension due to the following error: A resource does not have default or neutral value.
                                       .
2/6/2023 12:15:32 AM      5507         MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe : C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapp
                                       s-13.0\microsoft.system.package.metadata\S-1-5-21-3054649336-2474637261-2939303473-1001-MergedResources-*.pri : No user-specific merged files found
2/6/2023 12:15:32 AM      5507         MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe :
                                       C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\microsoft.system.package.metadata\Resources.????????.pri : No shared merged
                                       files found
2/6/2023 12:15:32 AM      5507         MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe : C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapp
                                       s-13.0\microsoft.system.package.metadata\S-1-5-21-3054649336-2474637261-2939303473-1001-MergedResources-*.pri : No user-specific merged files found
2/6/2023 12:15:32 AM      5507         MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe :
                                       C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\microsoft.system.package.metadata\Resources.????????.pri : No shared merged
                                       files found
2/6/2023 12:15:32 AM      300          error 0x80073B06: Cannot register the MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe package due to the following error: A resource does not have default or neutral value.
                                       .
2/6/2023 12:15:32 AM      605          The last successful state reached was SingletonRegisterAdd. Failure occurred before reaching the next state RegistrationChanged. hr: 0x80073CF6
2/6/2023 12:15:32 AM      330          error 0x80070002: While removing the request, the system failed to de-register the windows.MRT extension due to the following error: The system cannot find the file specified.
                                       .
2/6/2023 12:15:32 AM      5044         AppxManifest.xml(85,27): error 0x80073B06: Cannot install or update package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because a splash screen image for the current application context cannot be
                                       identified. The application context could include a specific language, DPI, contrast, or other special circumstance. Add a splash screen image to be used as a default if a context-specific splash screen image cannot
                                       be identified.
2/6/2023 12:15:32 AM      5042         AppxManifest.xml(85,27): error 0x80073B06: Cannot install, update, or uninstall package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because the splash screen element could not be parsed from the
                                       package's manifest. Verify that the splash screen element in the package manifest is valid.
2/6/2023 12:15:32 AM      5091         error 0x80073B06: The Visual Elements extension failed while processing the SplashScreen element in the package manifest.
2/6/2023 12:15:32 AM      330          error 0x80073B06: While removing the request, the system failed to de-register the windows.visualElements extension due to the following error: A resource does not have default or neutral value.
                                       .
2/6/2023 12:15:32 AM      9627         AppxManifest.xml(108,12): PackagedServiceDEH successfully parsed manifest for package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe removal
2/6/2023 12:15:32 AM      9622         0x0: PackagedServiceDEH EvaluateRequest completed successfully
2/6/2023 12:15:32 AM      9623         0x0: PackagedServiceDEH CommitRequest completed successfully
2/6/2023 12:15:32 AM      9625         0x0: PackagedServiceDEH RemoveRequest completed successfully
2/6/2023 12:15:32 AM      10001        Finished servicing package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. Setting the package state to enabled returned with 0x0.
2/6/2023 12:15:32 AM      401          Deployment Register operation with target volume C: on Package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe from:  (AppxManifest.xml)  failed with error 0x80073CF6. See
                                       http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
2/6/2023 12:15:32 AM      404          AppX Deployment operation failed for package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe with error 0x80073CF6. The specific error text for this failure is:
                                       AppxManifest.xml(85,27): error 0x80073B06: Cannot install or update package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because a splash screen image for the current application context cannot be
                                       identified. The application context could include a specific language, DPI, contrast, or other special circumstance. Add a splash screen image to be used as a default if a context-specific splash screen image cannot
                                       be identified.
2/6/2023 12:15:32 AM      471          error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\MicrosoftCorporationII.WindowsSubsystemForLinux_0.70.4.0_x64__8wekyb3d8bbwec9cd8606-5a26-4f64-9960-17f6b103a8d5\wslcoredeps.dll failed.
2/6/2023 12:15:32 AM      471          error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\MicrosoftCorporationII.WindowsSubsystemForLinux_0.70.4.0_x64__8wekyb3d8bbwec9cd8606-5a26-4f64-9960-17f6b103a8d5\wsldeps.dll failed.
2/6/2023 12:15:32 AM      471          error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe0ebe81de-2f45-4532-b868-b759f5ba4168\lxutil.dll failed.
2/6/2023 12:15:32 AM      493          There were 2 additional files that failed to be deleted under the folder \\?\C:\Program Files\WindowsApps\Deleted.

Expected behaviour/预期行为

App should be installed

Actual behaviour/实际行为

App fails to install with the above error code

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

b0e94d2ea36921a0a0d58f7199a619b212fe6f89

Linux distribution info/Linux 发行版信息

Ubuntu 22.04 WSL

Windows version/Windows 版本

10.0.22621 Build 22621

Build Parameters/构建参数

./run.sh

Version requirement/版本要求

Logs/日志

``` 2/6/2023 12:22:47 AM 603 Started deployment Register operation on a package with main parameter AppxManifest.xml and Options ForceApplicationShutdownOption,DevelopmentModeOption,ForceUpdateFromAnyVersion and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. 2/6/2023 12:22:47 AM 216 App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing. 2/6/2023 12:22:47 AM 10002 Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\84c212c8-000d-46d1-997b-330c776255be_S-1-5-21-3054649336-2474637261-2939303473-1001_8.rslc for Register Operation on Package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. 2/6/2023 12:22:47 AM 607 Deployment Register operation on package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-3054649336-2474637261-2939303473-1001. 2/6/2023 12:22:47 AM 854 Successfully added the following uri(s) to be processed: C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\AppxManifest.xml. 2/6/2023 12:22:47 AM 855 Finished resolving action lists. DeploymentRequest action lists: addPackageList: MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. 2/6/2023 12:22:47 AM 9643 0x0: TerminateApplications successful. 2/6/2023 12:22:47 AM 9643 0x0: TerminateApplications successful. 2/6/2023 12:22:47 AM 10000 About to service package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. Setting the package state to disabled returned with 0x0. 2/6/2023 12:22:47 AM 10000 About to service package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. Setting the package state to disabled returned with 0x0. 2/6/2023 12:22:47 AM 9643 0x0: TerminateApplications successful. 2/6/2023 12:22:47 AM 9643 0x0: TerminateApplications successful. 2/6/2023 12:22:47 AM 9626 AppxManifest.xml(108,12): PackagedServiceDEH successfully parsed manifest for package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe install 2/6/2023 12:22:47 AM 9622 0x0: PackagedServiceDEH EvaluateRequest completed successfully 2/6/2023 12:22:47 AM 9623 0x0: PackagedServiceDEH CommitRequest completed successfully 2/6/2023 12:22:47 AM 9625 0x0: PackagedServiceDEH RemoveRequest completed successfully 2/6/2023 12:22:47 AM 5044 AppxManifest.xml(85,27): error 0x80073B06: Cannot install or update package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because a splash screen image for the current application context cannot be identified. The application context could include a specific language, DPI, contrast, or other special circumstance. Add a splash screen image to be used as a default if a context-specific splash screen image cannot be identified. 2/6/2023 12:22:47 AM 5042 AppxManifest.xml(85,27): error 0x80073B06: Cannot install, update, or uninstall package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because the splash screen element could not be parsed from the package's manifest. Verify that the splash screen element in the package manifest is valid. 2/6/2023 12:22:47 AM 5091 error 0x80073B06: The Visual Elements extension failed while processing the SplashScreen element in the package manifest. 2/6/2023 12:22:47 AM 303 error 0x80073B06: While preparing to process the request, the system failed to register the windows.visualElements extension due to the following error: A resource does not have default or neutral value. . 2/6/2023 12:22:47 AM 5507 MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe : C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\microsoft.system.package.metadata\S-1-5-21-3054649336-2474637261-2939303473-1001-MergedResources-*.pri : No user-specific merged files found 2/6/2023 12:22:47 AM 5507 MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe : C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\microsoft.system.package.metadata\Resources.????????.pri : No shared merged files found 2/6/2023 12:22:47 AM 5507 MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe : C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\microsoft.system.package.metadata\S-1-5-21-3054649336-2474637261-2939303473-1001-MergedResources-*.pri : No user-specific merged files found 2/6/2023 12:22:47 AM 5507 MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe : C:\Users\lucas\Desktop\MagiskOnWSALocal\output\WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0\microsoft.system.package.metadata\Resources.????????.pri : No shared merged files found 2/6/2023 12:22:47 AM 300 error 0x80073B06: Cannot register the MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe package due to the following error: A resource does not have default or neutral value. . 2/6/2023 12:22:47 AM 605 The last successful state reached was SingletonRegisterAdd. Failure occurred before reaching the next state RegistrationChanged. hr: 0x80073CF6 2/6/2023 12:22:47 AM 330 error 0x80070002: While removing the request, the system failed to de-register the windows.MRT extension due to the following error: The system cannot find the file specified. . 2/6/2023 12:22:47 AM 5044 AppxManifest.xml(85,27): error 0x80073B06: Cannot install or update package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because a splash screen image for the current application context cannot be identified. The application context could include a specific language, DPI, contrast, or other special circumstance. Add a splash screen image to be used as a default if a context-specific splash screen image cannot be identified. 2/6/2023 12:22:47 AM 5042 AppxManifest.xml(85,27): error 0x80073B06: Cannot install, update, or uninstall package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because the splash screen element could not be parsed from the package's manifest. Verify that the splash screen element in the package manifest is valid. 2/6/2023 12:22:47 AM 5091 error 0x80073B06: The Visual Elements extension failed while processing the SplashScreen element in the package manifest. 2/6/2023 12:22:47 AM 330 error 0x80073B06: While removing the request, the system failed to de-register the windows.visualElements extension due to the following error: A resource does not have default or neutral value. . 2/6/2023 12:22:47 AM 9627 AppxManifest.xml(108,12): PackagedServiceDEH successfully parsed manifest for package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe removal 2/6/2023 12:22:47 AM 9622 0x0: PackagedServiceDEH EvaluateRequest completed successfully 2/6/2023 12:22:47 AM 9623 0x0: PackagedServiceDEH CommitRequest completed successfully 2/6/2023 12:22:47 AM 9625 0x0: PackagedServiceDEH RemoveRequest completed successfully 2/6/2023 12:22:47 AM 10001 Finished servicing package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe. Setting the package state to enabled returned with 0x0. 2/6/2023 12:22:48 AM 401 Deployment Register operation with target volume C: on Package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe from: (AppxManifest.xml) failed with error 0x80073CF6. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues. 2/6/2023 12:22:48 AM 404 AppX Deployment operation failed for package MicrosoftCorporationII.WindowsSubsystemForAndroid_2211.40000.11.0_x64__8wekyb3d8bbwe with error 0x80073CF6. The specific error text for this failure is: AppxManifest.xml(85,27): error 0x80073B06: Cannot install or update package MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe because a splash screen image for the current application context cannot be identified. The application context could include a specific language, DPI, contrast, or other special circumstance. Add a splash screen image to be used as a default if a context-specific splash screen image cannot be identified. 2/6/2023 12:22:48 AM 471 error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\MicrosoftCorporationII.WindowsSubsystemForLinux_0.70.4.0_x64__8wekyb3d8bbwec9cd8606-5a26-4f64-9960-17f6b103a8d5\wslcoredeps.dll failed. 2/6/2023 12:22:48 AM 471 error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\MicrosoftCorporationII.WindowsSubsystemForLinux_0.70.4.0_x64__8wekyb3d8bbwec9cd8606-5a26-4f64-9960-17f6b103a8d5\wsldeps.dll failed. 2/6/2023 12:22:48 AM 471 error 0x5: Deleting file \\?\C:\Program Files\WindowsApps\Deleted\MicrosoftCorporationII.WindowsSubsystemForLinux_1.0.0.0_x64__8wekyb3d8bbwe0ebe81de-2f45-4532-b868-b759f5ba4168\lxutil.dll failed. 2/6/2023 12:22:48 AM 493 There were 2 additional files that failed to be deleted under the folder \\?\C:\Program Files\WindowsApps\Deleted. ```
MustardChef commented 1 year ago

@lucasoskorep Try my guide to fix this: https://github.com/MustardChef/WSABuilds/blob/master/Fixes/Fix%20Error%200x80073CF9.md