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.13k forks source link

[Bug] Installation: Merge language resources ERROR: PRI180 & PRI193 #379

Closed redactedscribe closed 1 year ago

redactedscribe commented 1 year ago

Steps to reproduce/复现步骤

  1. sudo ./run.sh

Expected behaviour/预期行为

No build/installation errors.

Perhaps related to #342 and #335 as the same merge language resources errors appear in those logs too.

Actual behaviour/实际行为

A MagiskOnWSALocal archive file is created in MagiskOnWSALocal/output by ./run.sh but it does not get automatically installed.

Running PowerShell.exe -ExecutionPolicy Bypass -File .\Install.ps1 as Administrator fails with:

Get-Content : Cannot find path 'E:\repos\MagiskOnWSALocal\installer\filelist.txt' because it does not exist.
At E:\repos\MagiskOnWSALocal\installer\Install.ps1:44 char:13
+ $FileList = Get-Content -Path .\filelist.txt
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (E:\repos...er\filelist.txt:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
Installing MagiskOnWSA...
Add-AppxPackage : Cannot find path 'E:\repos\MagiskOnWSALocal\installer\AppxManifest.xml' because it does
not exist.
At E:\repos\MagiskOnWSALocal\installer\Install.ps1:102 char:1
+ Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (E:\repos...ppxManifest.xml:String) [Add-AppxPackage], ItemNotFou
   ndException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

All Done!
Press any key to exit

The first error section might not contain all of the output because it gets replaced by the second error quickly, thus making the window of time to copy the first error short.

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

b0e94d2ea36921a0a0d58f7199a619b212fe6f89

Linux distribution info/Linux 发行版信息

uname -a: Linux PC 5.15.79.1-microsoft-standard-WSL2 cat /etc/os-release: Ubuntu 22.04.1 LTS

Windows version/Windows 版本

10.0.22621

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type retail --magisk-ver stable --gapps-brand none --gapps-variant pico --remove-amazon --root-sol magisk --compress --compress-format 7z INFO: Architecture: x64 INFO: Release Type: retail INFO: Magisk Version: stable INFO: GApps Brand: none INFO: GApps Variant: pico INFO: Root Solution: magisk INFO: Compress Format: 7z

Version requirement/版本要求

Logs/日志

``` user@PC:/mnt/e/repos/MagiskOnWSALocal/scripts$ sudo ./run.sh COMMAND_LINE=--arch x64 --release-type retail --magisk-ver stable --gapps-brand none --gapps-variant pico --remove-amazon --root-sol magisk --compress --compress-format 7z INFO: Architecture: x64 INFO: Release Type: retail INFO: Magisk Version: stable INFO: GApps Brand: none INFO: GApps Variant: pico INFO: Root Solution: magisk INFO: Compress Format: 7z Build: RELEASE_TYPE=Retail Generate Download Links Generating WSA download link: arch=x64 release_type=Retail WSA Version=2211.40000.11.0 download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/82207876-51a4-4581-80d3-09369370aadc?P1=1675539358&P2=404&P3=2&P4=FfNGl0mu6%2fpq5l8VwPCvFTFkxnomgeWUIn1%2bOQAVimWjww9PmSLA0Pa%2f%2fDWmP0ZkatIc8BcVfdMqt%2f2qXIn2Dg%3d%3d to /mnt/e/repos/MagiskOnWSALocal/download/Microsoft.UI.Xaml_x64.appx download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/6f031e6b-f66d-4dee-8fe4-7f6f9a85cdc1?P1=1675567408&P2=404&P3=2&P4=gRcvfJoLGHaKnkPK0QQntYUMFcQFuPnkTSdKHX2YgGzBa4D%2bZW14s4wP2gsD9CL0xiixU1fwy%2f5iJSNgtnT4Ow%3d%3d to /mnt/e/repos/MagiskOnWSALocal/download/wsa-retail.zip Generating Magisk download link: release type=stable download link: https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@25.2/app-release.apk Download Artifacts 02/04 21:24:48 [NOTICE] Downloading 4 item(s) 02/04 21:24:49 [NOTICE] Allocating disk space. Use --file-allocation=none to disable it. See --file-allocation option in man page for more details. 02/04 21:24:49 [NOTICE] CUID#7 - Redirecting to https://download.microsoft.com/download/4/7/c/47c6134b-d61f-4024-83bd-b9c9ea951c25/appx/Microsoft.VCLibs.x64.14.00.Desktop.appx [DL:1.1MiB][#de9c59 0B/0B][#dc3a96 560KiB/5.0MiB(10%)][#e63f34 0B/1.3GiB(0%)][#4e1011 0B/10MiB(0%)] [FileAlloc:#e63f34 02/04 21:24:50 [NOTICE] Download complete: /mnt/e/repos/MagiskOnWSALocal/download/Microsoft.UI.Xaml_x64.appx [DL:6.2MiB][#de9c59 6.1MiB/6.3MiB(97%)][#e63f34 195MiB/1.3GiB(13%)][#4e1011 4.8MiB/10MiB(45%)] 02/04 21:25:28 [NOTICE] Download complete: /mnt/e/repos/MagiskOnWSALocal/download/Microsoft.VCLibs.x64.14.00.Desktop.appx *** Download Progress Summary as of Sat Feb 4 21:25:48 2023 *** ======================================================================================================================= [#e63f34 305MiB/1.3GiB(21%) CN:16 DL:6.2MiB ETA:2m56s] FILE: /mnt/e/repos/MagiskOnWSALocal/download/wsa-retail.zip ----------------------------------------------------------------------------------------------------------------------- [#4e1011 10MiB/10MiB(93%) CN:1 DL:314KiB ETA:2s] FILE: /mnt/e/repos/MagiskOnWSALocal/download/magisk-stable.zip ----------------------------------------------------------------------------------------------------------------------- [DL:6.6MiB][#e63f34 312MiB/1.3GiB(22%)][#4e1011 10MiB/10MiB(96%)] 02/04 21:25:50 [NOTICE] Download complete: /mnt/e/repos/MagiskOnWSALocal/download/magisk-stable.zip *** Download Progress Summary as of Sat Feb 4 21:26:49 2023 *** ======================================================================================================================= [#e63f34 691MiB/1.3GiB(49%) CN:16 DL:6.4MiB ETA:1m50s] FILE: /mnt/e/repos/MagiskOnWSALocal/download/wsa-retail.zip ----------------------------------------------------------------------------------------------------------------------- *** Download Progress Summary as of Sat Feb 4 21:27:49 2023 *** ======================================================================================================================= [#e63f34 1.0GiB/1.3GiB(77%) CN:16 DL:7.3MiB ETA:42s] FILE: /mnt/e/repos/MagiskOnWSALocal/download/wsa-retail.zip ----------------------------------------------------------------------------------------------------------------------- [#e63f34 1.3GiB/1.3GiB(99%) CN:1 DL:5.9MiB] 02/04 21:28:39 [NOTICE] Download complete: /mnt/e/repos/MagiskOnWSALocal/download/wsa-retail.zip Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= dc3a96|OK | 4.5MiB/s|/mnt/e/repos/MagiskOnWSALocal/download/Microsoft.UI.Xaml_x64.appx de9c59|OK | 184KiB/s|/mnt/e/repos/MagiskOnWSALocal/download/Microsoft.VCLibs.x64.14.00.Desktop.appx 4e1011|OK | 193KiB/s|/mnt/e/repos/MagiskOnWSALocal/download/magisk-stable.zip e63f34|OK | 6.1MiB/s|/mnt/e/repos/MagiskOnWSALocal/download/wsa-retail.zip Status Legend: (OK):download completed. Extract WSA unzipping to /tmp/wsa-build-JU5LM3Vi0u_/wsa unzipping from /tmp/wsa-build-JU5LM3Vi0u_/wsa/WsaPackage_2211.40000.11.0_x64_Release-Nightly.msix Extract done Extract Magisk Magisk version: 25.2 (25200) done Expand images system_ext: 99/128 files (1.0% non-contiguous), 44589/44723 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system_ext.img to 48068 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system_ext.img is now 48068 (4k) blocks long. product: 132/144 files (0.0% non-contiguous), 74672/74897 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/product.img to 78788 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/product.img is now 78788 (4k) blocks long. /: 2762/2816 files (0.4% non-contiguous), 224508/239777 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system.img to 250093 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system.img is now 250093 (4k) blocks long. vendor: 1103/1120 files (0.5% non-contiguous), 61069/61260 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/vendor.img to 64964 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/vendor.img is now 64964 (4k) blocks long. Expand images done Mount images mount: /dev/loop0 mounted on /tmp/wsa-build-JU5LM3Vi0u_/system. mount: /dev/loop1 mounted on /tmp/wsa-build-JU5LM3Vi0u_/system/vendor. mount: /dev/loop2 mounted on /tmp/wsa-build-JU5LM3Vi0u_/system/product. mount: /dev/loop3 mounted on /tmp/wsa-build-JU5LM3Vi0u_/system/system_ext. done Remove Amazon Appstore done Add device administration features done Integrate Magisk /dev/wkfoznla(/.*)? u:object_r:magisk_file:s0 /data/adb/magisk(/.*)? u:object_r:magisk_file:s0 Integrate Magisk done Merge Language Resources Microsoft (R) MakePRI Tool Copyright (C) 2013 Microsoft. All rights reserved. ERROR: PRI180: 0x80070057 - Target \\wsl.localhost\Ubuntu\tmp\wsa-build-JU5LM3Vi0u_\wsa\pri does not exist ERROR: PRI193: 0x80070057 - Please provide a valid Project Root Usage: ------ MakePri.exe new /pr /cf [options] Example: -------- MakePri.exe new /pr C:\MyApp\src\ /cf C:\MyApp\priconfig.xml /mn C:\MyApp\AppXManifest.xml /of C:\MyApp\src\resources.pri /o Description: ------------ Creates a PRI file at [outputfile] by indexing all files in the [projectroot]and its subdirectories as directed by the [configxml]. The index will be assigned [indexname] to reference resources in the application Required Parameters: -------------------- /ProjectRoot(pr) : Root location of project files /ConfigXml(cf) : Configuration file location. Use 'Makepri.exe createconfig' command to generate one Options: -------- /OutputFile(of) : Output location of PRI file, default is [current directory]\resources.pri /Manifest(mn) : Location of the application or component's manifest. This parameter is ignored if [indexname] is given. Default is [projectroot]\AppXManifest.xml /IndexName(in) : Name for the generated index of resources. Typically matches the AppX package name, class library simple name, etc. May be supplied via the [manifest] parameter. If IndexName is not specified and an AppX manifest file is not present, the default name 'Application' will be used. /VersionMajor(vma): [Deprecated] Major version number for index, default is 1 /IndexLog(il) : XML Log of indexed resources, no file generated by default /AutoMerge(am) : This flag is not recommended for normal use with AppX packages. It causes Makepri.exe to set the auto merge flag within the PRI file. Default is not set. /ReverseMap(rm) : Generate a reverse mapping section in the PRI file which can be used for debugging purposes. /MappingFile(mf) : Generate a mapping file in the given file format. /SchemaFile(sf) : Output location of XML resource schema description. /IndexOptions(io) : Options to provide detailed control over behavior of resource indexers. /Overwrite(o) : Overwrite an existing output file of the same name without prompting /Verbose(v) : Causes verbose messages to be output to the console /Help(h, ?) : Display the usage help text /ExtensionDll(ex) : Location of the MRT environment extension DLL. This DLL must be signed by a Microsoft-issued certificate. Default is an empty path (no DLL will be used). FOLDERPATH - is a valid path to a folder FILEPATH - is a path to a file, either relative to the current directory or absolute MAPPINGFILETYPE - Supported File type(s): 'AppX' Merge Language Resources done Add extra packages Add extra packages done Umount images umount: /tmp/wsa-build-JU5LM3Vi0u_/system/vendor unmounted umount: /tmp/wsa-build-JU5LM3Vi0u_/system/product unmounted umount: /tmp/wsa-build-JU5LM3Vi0u_/system/system_ext unmounted umount: /tmp/wsa-build-JU5LM3Vi0u_/system unmounted done Shrink images /: 2775/2816 files (0.4% non-contiguous), 228397/250093 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system.img to 229493 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system.img is now 229493 (4k) blocks long. vendor: 1103/1120 files (0.5% non-contiguous), 61134/64964 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/vendor.img to 61141 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/vendor.img is now 61141 (4k) blocks long. product: 132/144 files (0.0% non-contiguous), 74672/78788 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/product.img to 74680 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/product.img is now 74680 (4k) blocks long. system_ext: 88/128 files (1.1% non-contiguous), 37387/48068 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system_ext.img to 37408 (4k) blocks. The filesystem on /tmp/wsa-build-JU5LM3Vi0u_/wsa/x64/system_ext.img is now 37408 (4k) blocks long. Shrink images done Remove signature and add scripts Remove signature and add scripts done Generate info WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-NoGApps-RemovedAmazon Finishing building.... Compressing with 7z 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C.UTF-8,Utf16=on,HugeFiles=on,64 bits,16 CPUs AMD Ryzen 7 5700X 8-Core Processor (A20F12),ASM,AES-NI) Scanning the drive: 31 folders, 164 files, 1781286030 bytes (1699 MiB) Creating archive: ../output/WSA_2211.40000.11.0_x64_Release-Nightly-with-magisk-25.2(25200)-stable-NoGApps-RemovedAmazon.7z Items to compress: 195 Files read from disk: 164 Archive size: 568317270 bytes (542 MiB) Everything is Ok done Cleanup Work Directory done ```
Howard20181 commented 1 year ago

Not a bug. Do not run the installer directly. Run it in output