LSPosed / MagiskOnWSALocal

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

[Bug] Build Error - Create system images #717

Closed tymondouglas closed 6 months ago

tymondouglas commented 10 months ago

Steps to reproduce/复现步骤

  1. Clone repository
  2. Attempt to build an image
  3. Error during build

Expected behaviour/预期行为

Successfully build

Actual behaviour/实际行为

No /output

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

8548114d793c8aee7ccdb7038c355f44c713834a

Linux distribution info/Linux 发行版信息

WSL2 - Ubuntu 22.04 LTS Also tried in an actual baremetal Ubuntu 22.04 LTS

Windows version/Windows 版本

10.0.22621.2428

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type WIF --root-sol none --gapps-brand MindTheGapps --remove-amazon INFO: Architecture: x64 INFO: Release Type: WIF INFO: Magisk Version: stable INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: none Build: RELEASE_TYPE=Insider Fast

Version requirement/版本要求

Logs/日志

[//]: <> (Don't modify above) ``` COMMAND_LINE=--arch x64 --release-type WIF --root-sol none --gapps-brand MindTheGapps --remove-amazon INFO: Architecture: x64 INFO: Release Type: WIF INFO: Magisk Version: stable INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: none Build: RELEASE_TYPE=Insider Fast Generate Download Links Generating WSA download link: arch=x64 release_type=Insider Fast WSA Build Version=2309.40000.10.0 download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/28edaebf-8019-4844-ba32-8ab019bc9391?P1=1698187558&P2=404&P3=2&P4=YsmHaAn9n8B2%2fcDWUfXa7jAD3DgIOAS294Bm2Lyp5I6P74qYmSEKnWDh9ZJPA1pBu6SkURoViPrBzY3BA9tmEw%3d%3d path: ../download/Microsoft.VCLibs.140.00_x64.appx download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/986a8270-404c-4470-871d-5c4090dcaa79?P1=1698187681&P2=404&P3=2&P4=BTPuGo0cTaRPZclicjZR8OwqyNdbDXra84PEKxxlrPNZ%2ffvSxWO%2fJrW8xyPRj4kTKaJERduhRZmaVgOyu6HaWA%3d%3d path: ../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/21a6f30d-0ec0-46da-92cf-04e35cf18efc?P1=1698187688&P2=404&P3=2&P4=Zr7fLMjHgciuy4OhtDFoW9IUDimfBRkMzvuTUJ5YIauwqVQ0hGqOr0ceKYmtws4xdPLH8ugp6NhbRxHNuNQZhA%3d%3dpath: ../download/Microsoft.UI.Xaml.2.8_x64.appx download link: http://tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files/865c8919-3247-45e3-95ee-323261875078?P1=1698215728&P2=404&P3=2&P4=DmTSbNc4oa8xtJHj7ChICaLDGWP1uyYUXJeuWBm1fU3z4OVJCp5sjraL2K%2bXLBYo93rmVbMGjOkWXuykxG%2bsqg%3d%3d path: ../download/wsa-WIF.zip Generating Magisk download link: release type=stable download link: https://cdn.jsdelivr.net/gh/topjohnwu/magisk-files@26.3/app-release.apk Generating MindTheGapps download link: arch=x64 variant=pico download link: https://downloads.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zipDownload Artifacts 10/24 19:36:26 [NOTICE] Downloading 6 item(s) 10/24 19:36:27 [NOTICE] Download complete: ../download/Microsoft.VCLibs.140.00_x64.appx 10/24 19:36:27 [NOTICE] Download complete: ../download/Microsoft.UI.Xaml.2.8_x64.appx 10/24 19:36:27 [NOTICE] Download complete: ../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx [DL:50MiB][#8ff45a 29MiB/1.3GiB(2%)][#564a0d 3.7MiB/11MiB(31%)][#b02a17 0B/0B] 10/24 19:36:28 [NOTICE] CUID#35 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:41MiB][#8ff45a 104MiB/1.3GiB(7%)][#564a0d 4.2MiB/11MiB(35%)][#b02a17 80KiB/188MiB(0%)] 10/24 19:36:29 [NOTICE] CUID#53 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:40MiB][#8ff45a 178MiB/1.3GiB(12%)][#564a0d 4.3MiB/11MiB(36%)][#b02a17 640KiB/188MiB(0%)] 10/24 19:36:31 [NOTICE] CUID#59 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:39MiB][#8ff45a 252MiB/1.3GiB(17%)][#564a0d 4.6MiB/11MiB(38%)][#b02a17 1.2MiB/188MiB(0%)] 10/24 19:36:33 [NOTICE] CUID#54 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:39MiB][#8ff45a 327MiB/1.3GiB(23%)][#564a0d 4.7MiB/11MiB(39%)][#b02a17 1.9MiB/188MiB(1%)] 10/24 19:36:35 [NOTICE] CUID#58 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:37MiB][#8ff45a 400MiB/1.3GiB(28%)][#564a0d 4.9MiB/11MiB(41%)][#b02a17 3.1MiB/188MiB(1%)] 10/24 19:36:37 [NOTICE] CUID#57 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:37MiB][#8ff45a 474MiB/1.3GiB(33%)][#564a0d 5.1MiB/11MiB(42%)][#b02a17 4.0MiB/188MiB(2%)] 10/24 19:36:39 [NOTICE] CUID#56 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:37MiB][#8ff45a 548MiB/1.3GiB(38%)][#564a0d 5.2MiB/11MiB(44%)][#b02a17 5.4MiB/188MiB(2%)] 10/24 19:36:41 [NOTICE] CUID#55 - Redirecting to https://razaoinfo.dl.sourceforge.net/project/wsa-mtg/x86_64/20230920/MindTheGapps-13.0.0-x86_64-20230920.zip [DL:37MiB][#8ff45a 1.3GiB/1.3GiB(99%)][#564a0d 8.1MiB/11MiB(67%)][#b02a17 43MiB/188MiB(23%)] 10/24 19:37:06 [NOTICE] Download complete: ../download/wsa-WIF.zip [DL:37MiB][#564a0d 10MiB/11MiB(90%)][#b02a17 117MiB/188MiB(62%)] 10/24 19:37:08 [NOTICE] Download complete: ../download/magisk-stable.zip [#b02a17 184MiB/188MiB(97%) CN:5 DL:17MiB] 10/24 19:37:10 [NOTICE] Download complete: ../download/MindTheGapps-x64-13.0.zip Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 736dd9|OK | 9.4MiB/s|../download/Microsoft.VCLibs.140.00_x64.appx 7e30f9|OK | 21MiB/s|../download/Microsoft.UI.Xaml.2.8_x64.appx c52c1b|OK | 28MiB/s|../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx 8ff45a|OK | 36MiB/s|../download/wsa-WIF.zip 564a0d|OK | 297KiB/s|../download/magisk-stable.zip b02a17|OK | 4.6MiB/s|../download/MindTheGapps-x64-13.0.zip Status Legend: (OK):download completed. Extract WSA unzipping WsaPackage_2309.40000.10.0_x64_Release-Nightly.msix to /tmp/wsa-build-e3GKGe6ynJ_/wsa unzipping from /tmp/wsa-build-e3GKGe6ynJ_/wsa/WsaPackage_2309.40000.10.0_x64_Release-Nightly.msix Extract done Extract Magisk Magisk version: 26.3 (26300) done Extract MindTheGapps Archive: ../download/MindTheGapps-x64-13.0.zip inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/lib/libjni_latinimegoogle.so inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/overlay/GmsSettingsProviderOverlay.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/overlay/GmsOverlay.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/security/fsverity/gms_fsverity_cert.der inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/permissions/privapp-permissions-google-product.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/permissions/com.google.android.dialer.support.xml extracting: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/init/gapps.rc inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/default-permissions/default-permissions-mtg.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/default-permissions/default-permissions-google.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/google_build.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/google.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/d2d_cable_migration_feature.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/etc/sysconfig/google-hiddenapi-package-allowlist.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/lib64/libjni_latinimegoogle.so inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/app/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/app/PrebuiltExchange3Google/PrebuiltExchange3Google.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/AndroidAutoStub/AndroidAutoStub.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/Phonesky/Phonesky.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/GmsCore/GmsCore.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/Velvet/Velvet.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/priv-app/GoogleRestore/GoogleRestore.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/product/framework/com.google.android.dialer.support.jar inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/system_ext/etc/permissions/privapp-permissions-google-system-ext.xml inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/system_ext/priv-app/GoogleFeedback/GoogleFeedback.apk inflating: /tmp/wsa-build-e3GKGe6ynJ_/gapps/system/system_ext/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk caution: excluded filename not matched: system/product/priv-app/VelvetTitan/* Extract done Convert vhdx to RAW image Convert vhdx to RAW image done Mount images mount: /dev/loop0 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs. mount: /dev/loop1 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs/vendor. mount: /dev/loop2 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs/product. mount: /dev/loop3 mounted on /tmp/wsa-build-e3GKGe6ynJ_/erofs/system_ext. done Create overlayfs mk_overlayfs: label system lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/system workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/system merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged. mk_overlayfs: label vendor lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs/vendor upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/vendor workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/vendor merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor. mk_overlayfs: label product lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs/product upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/product workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/product merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/product mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/product. mk_overlayfs: label system_ext lowerdir=/tmp/wsa-build-e3GKGe6ynJ_/erofs/system_ext upperdir=/tmp/wsa-build-e3GKGe6ynJ_/upper/system_ext workdir=/tmp/wsa-build-e3GKGe6ynJ_/worker/system_ext merged=/tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system_ext mount: overlay mounted on /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system_ext. Create overlayfs done Remove Amazon Appstore done Add device administration features sed: can't read /cts/a \ : No such file or directory done Add extra packages Add extra packages done Integrate MindTheGapps Integrate MindTheGapps done Fix MindTheGapps prop fixing /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system/build.prop fixing /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor/build.prop fixing /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor/odm/etc/build.prop done Create system images mk_image_umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor /tmp/wsa-build-e3GKGe6ynJ_/wsa/x64/vendor.img /tmp/wsa-build-e3GKGe6ynJ_/upper/vendor ext4 ERROR: Not yet implemented Build: an error has occurred, exit Cleanup Work Directory Cleanup Mount Directory umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs/vendor unmounted umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs/system_ext unmounted umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs/product unmounted umount: /tmp/wsa-build-e3GKGe6ynJ_/erofs unmounted umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/vendor (overlay) unmounted umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/system_ext (overlay) unmounted umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged/product (overlay) unmounted umount: /tmp/wsa-build-e3GKGe6ynJ_/system_root_merged (overlay) unmounted Cleanup Download Directory ``` [//]: <> (Don't modify below)
huang95-Q commented 10 months ago

我也遇到这个问题了,最新版编译就会出现这个错误,你解决了吗?

Almighty188 commented 10 months ago

That is what it showed on mines when I just tried it to build WSA 2309.40000.10.0 as scripts/build.sh has been updated so the fix by @YT-Advanced from https://github.com/LSPosed/MagiskOnWSALocal/pull/620/files no longer works as those lines no longer exist.

Ivanwah91 commented 10 months ago

I am getting the same error.

qwertytreq commented 10 months ago

Same issue here

Create system images
mk_image_umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/vendor /tmp/wsa-build-KdtqMS5oxv_/wsa/x64/vendor.img /tmp/wsa-build-KdtqMS5oxv_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs/vendor unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs/system_ext unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs/product unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/erofs unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-KdtqMS5oxv_/system_root_merged (overlay) unmounted
Cleanup Download Directory
sn-o-w commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

qwertytreq commented 10 months ago

@sn-o-w Works great, thanks!

tymondouglas commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Working now!

Tbeing commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

How do I do this please. I am new to this

Tbeing commented 10 months ago

I have been re-running it over and over again, keeps bringing the same error message. How can I execute the above recommendation. I am new to this as I was just trying to install an android interface on my system

Tbeing commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Kindly put me through on how to get this done as I am new here and don't know how

Almighty188 commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Works great, thanks for coming to the rescue so quickly!

Tbeing commented 10 months ago

I do not know how to do that

Kindly put me through step by step

Thanks

On Thu, 26 Oct 2023, 10:19 am Almighty188, @.***> wrote:

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Works great, thanks for coming to the rescue so quickly!

— Reply to this email directly, view it on GitHub https://github.com/LSPosed/MagiskOnWSALocal/issues/717#issuecomment-1780732612, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDRC6ZTVVQMNPYRVZJ36UULYBITJTAVCNFSM6AAAAAA6ONGAC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQG4ZTENRRGI . You are receiving this because you commented.Message ID: @.***>

sn-o-w commented 10 months ago

I have been re-running it over and over again, keeps bringing the same error message. How can I execute the above recommendation. I am new to this as I was just trying to install an android interface on my system

Tbeing commented 10 months ago

Thank

I tried opening the file but it was not opening hence I could not delete the files in it. In the process of trying, I mistakenly deleted the build.sh file

On Thu, 26 Oct 2023, 12:57 pm sn-o-w, @.***> wrote:

I have been re-running it over and over again, keeps bringing the same error message. How can I execute the above recommendation. I am new to this as I was just trying to install an android interface on my system

  • In your local cloned repo, you should see multiple folders.
  • Open the folder "scripts", then you should see the file "build.sh".
  • Delete everything in your "build.sh" and replace the contents of it with the contents you see inside the URL I posted earlier.

— Reply to this email directly, view it on GitHub https://github.com/LSPosed/MagiskOnWSALocal/issues/717#issuecomment-1780969286, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDRC6ZRXAIU4LVIQYUEK3Z3YBJF3BAVCNFSM6AAAAAA6ONGAC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQHE3DSMRYGY . You are receiving this because you commented.Message ID: @.***>

Eric-Joker commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Replacing build.sh with your script builds successfully, but after installing WSA magisk fails to install the module (only tried lsposed): After flushing you can find the module in the module list, after reboot the module disappears and it says "未安装任何模块" (no modules installed). Have opened zygisk and there are no errors in the module installation log. Is it only me that has this problem?

Almighty188 commented 10 months ago

Interesting. The only module I have in Magisk is Lucky Patcher's patches to Android and it seems to show the module and even after rebooting Windows, it still shows the module.

Eric-Joker commented 10 months ago

Interesting. The only module I have in Magisk is Lucky Patcher's patches to Android and it seems to show the module and even after rebooting Windows, it still shows the module.

all right, I tried other modules still same problem, ugh

sn-o-w commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh Replace everything in your build.sh with the contents in the above URL, then try building again. I've reverted some code and added the changes I did in a PR that was declined. Until the upstream code is fixed, this should work.

Replacing build.sh with your script builds successfully, but after installing WSA magisk fails to install the module (only tried lsposed): After flushing you can find the module in the module list, after reboot the module disappears and it says "未安装任何模块" (no modules installed). Have opened zygisk and there are no errors in the module installation log. Is it only me that has this problem?

A few moments ago, I installed LSPosed, and everything worked as expected, so dunno. 🤷‍♂️

Something may be wrong with your WSA instance. 🤔

If I were you, I would back up essential apps using Neo Backup, save the backup locally, delete WSA and its data and create a new instance of WSA + restore the data backed up earlier.

Eric-Joker commented 10 months ago

If I were you, I would back up essential apps using Neo Backup, save the backup locally, delete WSA and its data and create a new instance of WSA + restore the data backed up earlier.

Thanks for the advice, my WSA is a fresh install with no data. I successfully installed lsposed using kernelSU. don't know why exactly, I was able to successfully install lsposed using magisk two months ago.

gitcnd commented 10 months ago

This seem to be the problem:

vhdx_to_rawimg /tmp/wsa-build-sN90c7lLR0/wsa/x64/systemext.vhdx /tmp/wsa-build-sN90c7lLR0/wsa/x64/system_ext.img

vhdx_to_raw_img: command not found

No idea where that command comes from - might be hallucinated from an AI? Google has only 3 results for it - all useless

myusrn commented 10 months ago

Looks to be same issue raised in discussion https://github.com/LSPosed/MagiskOnWSALocal/discussions/731 right?

myusrn commented 10 months ago

Looks to be same issue raised in discussion #731 right?

workaround provided above by @sn-o-w worked on my setup, thanks. nice to now have ability to deploy and test new 2309.40000.8.0 based install given what was discussed about it bring to the table in https://blogs.windows.com/windows-insider/2023/10/19/update-to-windows-subsystem-for-android-on-windows-11-october-2023/.

andresayac commented 10 months ago

It didn't work for me, I don't know what I could be doing wrong, I restarted the wsl I practically reinstalled I had the stable version of the wsl now I have the latest one in pre-release and it continues with both the @sn-o-w repository

WSL version: 2.0.7.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25880.1000-230602-1350.main Windows version: 10.0.22621.2506


product: 137/144 files (8.0% non-contiguous), 78387/78549 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-CFiFJu9xFo/wsa/x64/product.img to 306932 (4k) blocks. The filesystem on /tmp/wsa-build-CFiFJu9xFo/wsa/x64/product.img is now 306932 (4k) blocks long.

/: 2800/2816 files (11.7% non-contiguous), 246011/246510 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-CFiFJu9xFo/wsa/x64/system.img to 493020 (4k) blocks. The filesystem on /tmp/wsa-build-CFiFJu9xFo/wsa/x64/system.img is now 493020 (4k) blocks long.

vendor: 1096/1120 files (4.2% non-contiguous), 60420/60545 blocks resize2fs 1.46.5 (30-Dec-2021) Resizing the filesystem on /tmp/wsa-build-CFiFJu9xFo/wsa/x64/vendor.img to 63105 (4k) blocks. The filesystem on /tmp/wsa-build-CFiFJu9xFo/wsa/x64/vendor.img is now 63105 (4k) blocks long.

Expand images done

Mount images mount: /tmp/wsa-build-CFiFJu9xFo_/system_root_merged: mount failed: Operation not permitted. Build: an error has occurred, exit

Cleanup Work Directory Cleanup Mount Directory umount: /tmp/wsa-build-CFiFJu9xFo/erofs/vendor: no mount point specified. umount: /tmp/wsa-build-CFiFJu9xFo/erofs/systemext: no mount point specified. umount: /tmp/wsa-build-CFiFJu9xFo/erofs/product: no mount point specified. umount: /tmp/wsa-build-CFiFJu9xFo/erofs: no mount point specified. umount: /tmp/wsa-build-CFiFJu9xFo/system_rootmerged/vendor: no mount point specified. umount: /tmp/wsa-build-CFiFJu9xFo/system_root_merged/systemext: no mount point specified. umount: /tmp/wsa-build-CFiFJu9xFo/system_rootmerged/product: no mount point specified. umount: /tmp/wsa-build-CFiFJu9xFo/system_root_merged: not mounted. Cleanup Download Directory log-complete.txt

Almighty188 commented 10 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

This is what I noticed when building WSA v2310.40000.2.0 which just came out, not sure if it is important or not as WSA appears to run fine: Mount images mount: /dev/loop0 mounted on /tmp/wsa-build-4TLz1trJsX_/system_rootmerged. mount: /dev/loop1 mounted on /tmp/wsa-build-4TLz1trJsX/system_rootmerged/vendor. mount: /dev/loop2 mounted on /tmp/wsa-build-4TLz1trJsX/system_rootmerged/product. mount: /dev/loop3 mounted on /tmp/wsa-build-4TLz1trJsX/system_root_merged/system_ext. done

Add device administration features sed: can't read /cts/a \ : No such file or directory done

SachinKarinki commented 9 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work. I tried to copy your build.sh file from Windows explorer and Ubuntu terminal also. I am unable to copy because of READ only issue. I took helo from CHAT GPT and tried to make the MagiskOnWSALocal path RW, but i am not successful. Could you please help me in this ?

SachinKarinki commented 9 months ago

I tried to copy your build.sh file from Windows explorer and Ubuntu terminal also. I am unable to copy because of READ only issue. I took helo from CHAT GPT and tried to make the MagiskOnWSALocal path RW, but i am not successful. Could you please help me in this ?

lazersate commented 9 months ago

work around worked great from sn-o-w

inside the script folder delete the file [build.sh]

then inside the script folder just input

wget https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

then run the command if your in scripts directory still command is ./run.sh if your in previous directory run ./scripts/run.sh

DomN86 commented 9 months ago

Hi, I'm having some difficulty with the output. It's not opening the output folder to Run.bat. The output folders are empty.

Screenshot 2023-11-28 172432

Screenshot 2023-11-28 172607

Almighty188 commented 9 months ago

Hi, I'm having some difficulty with the output. It's not opening the output folder to Run.bat. The output folders are empty.

Screenshot 2023-11-28 172432

Screenshot 2023-11-28 172607

You didn't show the contents of what is in the 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' folder/directory.

DomN86 commented 9 months ago

You didn't show the contents of what is in the 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' folder/directory.

Hi, Thanks for the reply. How do I show the contents ?

Almighty188 commented 9 months ago

The Run.bat is should be in the 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' folder/directory

You can just ls 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' and see what it shows... I may have typed the directory name wrong...

DomN86 commented 9 months ago

The Run.bat is should be in the 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' folder/directory

I was looking at wrong location for some reason thinking it was in the tmp folder rather than the home folder 🙄. So I've found it, do I run Run.bat from the folder location in the Ubuntu directory / container, or do I need to copy the WSA folder from there to C: and run from there ?

Almighty188 commented 9 months ago

You run the Run.bat from the Windows side, hopefully there is actually a folder you created on the Windows side

DomN86 commented 9 months ago

The Run.bat is should be in the 'WSA_2310.40000.2.0_x64_Release-Nightly-with-magisk-26.4(26400)-stable-MindThe Gapps-13.0-Removed-Amazon' folder/directory

I was looking at wrong location for some reason thinking it was in the tmp folder rather than the home folder 🙄. So I've found it, do I run Run.bat from the folder location in the Ubuntu directory / container, or do I need to copy the WSA folder from there to C: and run from there ?

I copied it to the C: drive in to a folder called Android. All working.

hellowuyongjian commented 9 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Thank you! It works!

letrosrer commented 9 months ago

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

I even tried running build.sh but the result was the same.

Does someone have any tips or anything else to do I might have missed? This is also my first time using Ubuntu/Linux so I'm very new to this.

Also all the download avg speeds showed 0 (as shown in picture) 0

Mohsen7s commented 9 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

I didn't check exactly what have changed but this solution works on Windows 11.

sn-o-w commented 9 months ago

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

I even tried running build.sh but the result was the same.

Does someone have any tips or anything else to do I might have missed? This is also my first time using Ubuntu/Linux so I'm very new to this.

Also all the download avg speeds showed 0 (as shown in picture) 0

You didn't replace build.sh with the contents of my file.

Not a single line mentions "Not yet implemented" into the build.sh file within my fork.

Make sure you replace correctly build.sh

letrosrer commented 9 months ago

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

I even tried running build.sh but the result was the same. Does someone have any tips or anything else to do I might have missed? This is also my first time using Ubuntu/Linux so I'm very new to this. Also all the download avg speeds showed 0 (as shown in picture) 0

You didn't replace build.sh with the contents of my file.

Not a single line mentions "Not yet implemented" into the build.sh file within my fork.

Make sure you replace correctly build.sh

Oh I tried replacing the build.sh contents with the nano command, by selecting all deleting then pasting. I'll try again.

hugo-lyppens commented 9 months ago

It's December 11 now and this patch is still necessary ;-(. Why not merged yet?

letrosrer commented 9 months ago

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

I even tried running build.sh but the result was the same. Does someone have any tips or anything else to do I might have missed? This is also my first time using Ubuntu/Linux so I'm very new to this. Also all the download avg speeds showed 0 (as shown in picture) 0

You didn't replace build.sh with the contents of my file. Not a single line mentions "Not yet implemented" into the build.sh file within my fork. Make sure you replace correctly build.sh

Oh I tried replacing the build.sh contents with the nano command, by selecting all deleting then pasting. I'll try again.

I managed to fix this!! Instead of changing build.sh with the nano command I opened it in Windows by using "explorer.exe ." and then changed it with notepad. thank you so much!

SherlockChiang commented 9 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Wow Great!

1552980358 commented 9 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh Replace everything in your build.sh with the contents in the above URL, then try building again. I've reverted some code and added the changes I did in a PR that was declined. Until the upstream code is fixed, this should work.

Wow Great!

No need to replace that build.sh, just pull and merge #620 locally

git pull origin main
git fetch origin pull/620/head:pr
git checkout pr

and then

./scripts/run.sh
1552980358 commented 9 months ago

I tried replacing build.sh with https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh I then ran run.sh and it still has this same problem:

Create system images
mk_image_umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor /tmp/wsa-build-ud9fIs5o1c_/wsa/x64/vendor.img /tmp/wsa-build-ud9fIs5o1c_/upper/vendor ext4
ERROR: Not yet implemented
Build: an error has occurred, exit

Cleanup Work Directory
Cleanup Mount Directory
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/vendor unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/system_ext unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs/product unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/erofs unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/vendor (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/system_ext (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged/product (overlay) unmounted
umount: /tmp/wsa-build-ud9fIs5o1c_/system_root_merged (overlay) unmounted
Cleanup Download Directory

I even tried running build.sh but the result was the same. Does someone have any tips or anything else to do I might have missed? This is also my first time using Ubuntu/Linux so I'm very new to this. Also all the download avg speeds showed 0 (as shown in picture) 0

You didn't replace build.sh with the contents of my file. Not a single line mentions "Not yet implemented" into the build.sh file within my fork. Make sure you replace correctly build.sh

Oh I tried replacing the build.sh contents with the nano command, by selecting all deleting then pasting. I'll try again.

I managed to fix this!! Instead of changing build.sh with the nano command I opened it in Windows by using "explorer.exe ." and then changed it with notepad. thank you so much!

Maybe try my simplier method https://github.com/LSPosed/MagiskOnWSALocal/issues/717#issuecomment-1851656394

Almighty188 commented 9 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh Replace everything in your build.sh with the contents in the above URL, then try building again. I've reverted some code and added the changes I did in a PR that was declined. Until the upstream code is fixed, this should work.

Wow Great!

No need to replace that build.sh, just pull and merge #620 locally

git pull origin main
git fetch origin pull/620/head:pr
git checkout pr

and then

./scripts/run.sh

I thought that method no longer worked as I mentioned in https://github.com/LSPosed/MagiskOnWSALocal/issues/717#issuecomment-1778531475

1552980358 commented 9 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh Replace everything in your build.sh with the contents in the above URL, then try building again. I've reverted some code and added the changes I did in a PR that was declined. Until the upstream code is fixed, this should work.

Wow Great!

No need to replace that build.sh, just pull and merge #620 locally

git pull origin main
git fetch origin pull/620/head:pr
git checkout pr

and then

./scripts/run.sh

I thought that method no longer worked as I mentioned in #717 (comment)

I‘ve tested building with latest main branch today, and PR #620 still work

Almighty188 commented 9 months ago

I didn't mean your method didn't work but still trying learn what each line does you mentioned does as far as git is concerned. Am I correct that the scripts/build.sh file is basically replaced with the one from #620 instead of the current one?

1552980358 commented 9 months ago

I didn't mean your method didn't work but still trying learn what each line does you mentioned does as far as git is concerned. Am I correct that the scripts/build.sh file is basically replaced with the one from #620 instead of the current one?

I know the problem, but I think pasting and executing 3 git-commands is much more faster than replace with a new file, and the PR merged branch can be push to own repo for future build, which I think is much more efficient

misterhaan commented 8 months ago

got mine to work with these commands (starting from MagiskOnWSALocal path). it deletes the build.sh from the repo, downloads the patched one to replace it, allows the patched file to execute, then runs the run script again.

cd scripts
rm build.sh
wget https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh
chmod +x build.sh
cd ..
./scripts/run.sh
intelQong commented 8 months ago

https://raw.githubusercontent.com/sn-o-w/MagiskOnWSALocal/main/scripts/build.sh

Replace everything in your build.sh with the contents in the above URL, then try building again.

I've reverted some code and added the changes I did in a PR that was declined.

Until the upstream code is fixed, this should work.

Thank you so much