Closed MustardChef closed 1 year ago
PS C:\Users\vince\Desktop\Windows Subsystem for Android\MagiskOnWSALocal\output\WSA_2302.40000.8.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0> .\makepri.exe dump /if .\pri\resources.language-zh-hant.pri /o /es .\pri\resources.pri /of .\priinfo\resources.language-zh-hant.pri.xml /dt detailed ERROR: PRI175: 0x80004005 - Dump ERROR: PRI175: 0x80004005 - MakePri failed with error: Unspecified error
PS C:\Users\vince\Desktop\Windows Subsystem for Android\MagiskOnWSALocal\output\WSA_2302.40000.8.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-MindTheGapps-13.0>
What the size of .\pri\resources.language-zh-hant.pri
and .\pri\resources.pri
?
For me is 11KB and 87KB
.\pri\resources.pri
What is the size of resources.pri
in the root of the WSA before running any scripts?
In 2203.40000.8 It should be 87KB
In 2203.40000.8 It should be 87KB
It is indeed 87KB before any scripts are ran
Yes, it is 87KB as seen in https://github.com/LSPosed/MagiskOnWSALocal/issues/450#issuecomment-1483916464 posted earlier.
Try to dump one pri before any scripts be run.
.\makepri.exe dump /if .\pri\resources.language-zh-hans.pri /o /es .\resources.pri /of .\resources.language-zh-hans.pri.xml /dt detailed
Should be
Output File at .\resources.language-zh-hans.pri.xml
Successfully Completed
I also get the same message
Why did it fail to dump before? Try this MakePri.debug.ps1.txt Check if dumps success (check priinfo folder)
If dumps success the exit code should be 0.
If dumps success run makepri.exe new /pr .\priinfo /cf .\xml\priconfig.xml /of .\pri\resources.pri /mn .\AppxManifest.xml /o
If dumps success the exit code should be 0.
Exit code still shows as -2147024809 and still nothing inside the priinfo folder
Does the size of .\pri\resources.pri
same as .\resources.pri
? It's 87KB.
Output using MakePri.debug.ps1 from https://github.com/LSPosed/MagiskOnWSALocal/issues/450#issuecomment-1483932655
Now MakePri.ps1 does the following:
Copy .\resources.pri
to .\pri\resources.pri
to make a backup of the original file.
This time the two pri
should be 87KB.
Try to create a new pri
base on the files in pri
folder, the new pri
will overwrite the original one in the root folder, this way we need to do a backup.
If failed to create from pri
, try to dump all pri
files in pri
folder to priinfo
. (In 2301 this will succeed, failed in 2302 so why do we need to dump)
This time .\pri\resources.pri
should be 87KB.
Dumping pri
for another language executes English needs based on the original one, this time we need to use the backup one in the pri
folder. <- We failed on this step. So the backup one corrupted?
Then create a new pri
base on the files in priinfo
folder
Yes, because before I did the last execution of MakePri.debug.ps1 from https://github.com/LSPosed/MagiskOnWSALocal/issues/450#issuecomment-1483932655 - I backed up the resources.pri to resources.pri.orig just in case as seen here:
My backup of .\resources.pri as .\resources.pri.orig is identical to the backup one in .\pri\resources.pri
One possible reason why the first copy step did not complete is that Copy-Item
is non-blocking, so a | Out-Null
was added to wait for it to complete, but I saw your feedback that .\pri\resources.pri
is 87KB in size, the backup should be completed.
This should success.
.\makepri.exe dump /if .\pri\resources.language-zh-hans.pri /o /es .\pri\resources.pri /of .\resources.language-zh-hans.pri.xml /dt detailed
Means
dump per-language pri (.\pri\resources.language-zh-hans.pri
) based on the original backup pri (.\pri\resources.pri
) to .\resources.language-zh-hans.pri.xml
Why it failed in the script and success manually?
Try this MakePri.debug.ps1.txt
Try this MakePri.debug.ps1.txt It may be caused by a space in the path, which is now enclosed in quotes.
Try this MakePri.debug.ps1.txt It may be caused by a space in the path, which is now enclosed in quotes.
Output using MakePri.debug.ps1 after deleting the priinfo folder and copying .\pri\resources.pri to .\resources.pri but did not regenerate WSA:
Seems like this stupid problem is finally fixed, my bad.
Seems to be working now.
Check e3e9c0a
The error is no longer encountered and WSA installs normally. Thank you Almighty188 and Howard20181 for all the help
Now I switch to relative path, can you confirm if it works properly? https://github.com/LSPosed/MagiskOnWSALocal/commit/2e02381b9addf70044e5464fab3c58dd308d584b
Now I switch to relative path, can you confirm if it works properly? 2e02381
Yes, I can confirm that I encounter no problems and it seems to work properly.
WSA installs properly, but this time, both the Magisk and Google Play Store loads and then exits. Was able to start both Magisk and Google Play Store manually.
Steps to reproduce/复现步骤
./MagiskOnWSA/scripts/run.sh
Expected behaviour/预期行为
WSA should install smoothly, without any issue like with the previously built builds
Actual behaviour/实际行为
Installing MagiskOnWSA.... WsaClient does not exist Deployment operation progress: C:\Users\MCDeltaT\Downloads\WSA_2302.40000.8.0_x64_Release-Nightly-with-magisk-981ccab Processing [o ] NamedResource Not Found. . Check that the string resource is defined and that there C:\Users\MCDeltaT\Downloads\WSA_2302.40000.8.0_x64_Release-Nightly-with-magisk-981ccabb(25210)-canary-MindTheGapps-13 .0-RemovedAmazon\AppxManifest.xml(79,27): error 0x80073B17: Cannot register the MicrosoftCorporationII.WindowsSubsystemForAndroid_2302.40000.8.0_x64__8wekyb3d8bbwe package because the following error was encountered while determining whether the ms-resource:WsaDisplayName string resource could be localized: NamedResource Not Found. . Check that the string resource is defined and that there is at least one instance defined in the resources.pri file contained in this package. NOTE: For additional information, look for [ActivityId] 903ba5dc-5ef4-0000-67f8-4e90f45ed901 in the Event Log or use the command line Get-AppPackageLog -ActivityID 903ba5dc-5ef4-0000-67f8-4e90f45ed901 At C:\Users\MCDeltaT\Downloads\WSA_2302.40000.8.0_x64_Release-Nightly-with-magisk-981ccabb(25210)-canary-MindTheGapps -13.0-RemovedAmazon\Install.ps1:139 char:1
All Done! Press any key to exit
MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希
58e17da
Linux distribution info/Linux 发行版信息
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" KERNAL= 5.15.90.1-microsoft-standard-WSL2
Windows version/Windows 版本
10.0.22621.1413
Build Parameters/构建参数
COMMAND_LINE=--arch x64 --release-type WIF --magisk-ver canary --gapps-brand MindTheGapps --gapps-variant pico --remove-amazon --root-sol magisk --compress --compress-format zip INFO: Architecture: x64 INFO: Release Type: WIF INFO: Magisk Version: canary INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk INFO: Compress Format: zip Build: RELEASE_TYPE=Insider Fast
Version requirement/版本要求
Logs/日志