ARCH=x64
RELEASE_TYPE=retail
MAGISK_VER=stable
GAPPS_VARIANT=pico
REMOVE_AMAZON=remove
ROOT_SOL=magisk
Download WSA
python3: can't open file 'downloadWSA.py': [Errno 2] No such file or directory
extractWSA
python3: can't open file 'extractWSA.py': [Errno 2] No such file or directory
Download Magisk
python3: can't open file 'downloadMagisk.py': [Errno 2] No such file or directory
Download OpenGApps
python3: can't open file 'downloadGapps.py': [Errno 2] No such file or directory
Extract GApps
lzip: (stdin): File ends unexpectedly at member header.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Expand images
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/system_ext.img
Possibly non-existent device?
du: cannot access '../workdir/wsa/x64/system_ext.img': No such file or directory
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/system_ext.img
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/product.img
Possibly non-existent device?
du: cannot access '../workdir/wsa/x64/product.img': No such file or directory
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/product.img
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/system.img
Possibly non-existent device?
du: cannot access '../workdir/wsa/x64/system.img': No such file or directory
du: cannot access '../workdir/gapps/product': No such file or directory
./scripts/run.sh: line 155: 20000 + 0 - : syntax error: operand expected (error token is "- ")
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/system.img
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/vendor.img
Possibly non-existent device?
du: cannot access '../workdir/wsa/x64/vendor.img': No such file or directory
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/vendor.img
Mount images
mount: ../workdir/system: failed to setup loop device for ../workdir/wsa/x64/system.img.
mount: ../workdir/system/vendor: failed to setup loop device for ../workdir/wsa/x64/vendor.img.
mount: ../workdir/system/product: failed to setup loop device for ../workdir/wsa/x64/product.img.
mount: ../workdir/system/system_ext: failed to setup loop device for ../workdir/wsa/x64/system_ext.img.
Remove Amazon AppStore
find: ‘../workdir/system/product/etc/permissions’: No such file or directory
find: ‘../workdir/system/product/etc/sysconfig’: No such file or directory
find: ‘../workdir/system/product/framework’: No such file or directory
find: ‘../workdir/system/product/priv-app’: No such file or directory
Integrate Magisk
chcon: failed to get security context of '../workdir/system/init.environ.rc': No such file or directory
cp: cannot stat '../workdir/magisk/magisk/*': No such file or directory
cp: cannot stat '../download/magisk.zip': No such file or directory
#!/system/bin/sh
mkdir -p /data/adb/magisk
cp /sbin/* /data/adb/magisk/
chmod -R 755 /data/adb/magisk
restorecon -R /data/adb/magisk
for module in $(ls /data/adb/modules); do
if ! [ -f "/data/adb/modules/$module/disable" ] && [ -f "/data/adb/modules/$module/sepolicy.rule" ]; then
/sbin/magiskpolicy --live --apply "/data/adb/modules/$module/sepolicy.rule"
fi
done
chcon: failed to get security context of '../workdir/system/product': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
chmod: cannot access '../workdir/magisk/magiskpolicy': No such file or directory
tee: ../workdir/system/vendor/etc/selinux/vendor_file_contexts: No such file or directory
/dev/wsa-magisk(/.*)? u:object_r:magisk_file:s0
tee: ../workdir/system/vendor/etc/selinux/vendor_file_contexts: No such file or directory
/data/adb/magisk(/.*)? u:object_r:magisk_file:s0
sudo: ../workdir/magisk/magiskpolicy: command not found
tee: ../workdir/system/system/etc/init/hw/init.rc: No such file or directory
on post-fs-data
start logd
start adbd
mkdir /dev/wsa-magisk
mount tmpfs tmpfs /dev/wsa-magisk mode=0755
copy /sbin/magisk64 /dev/wsa-magisk/magisk64
chmod 0755 /dev/wsa-magisk/magisk64
symlink ./magisk64 /dev/wsa-magisk/magisk
symlink ./magisk64 /dev/wsa-magisk/su
symlink ./magisk64 /dev/wsa-magisk/resetprop
copy /sbin/magisk32 /dev/wsa-magisk/magisk32
chmod 0755 /dev/wsa-magisk/magisk32
copy /sbin/magiskinit /dev/wsa-magisk/magiskinit
chmod 0755 /dev/wsa-magisk/magiskinit
copy /sbin/magiskpolicy /dev/wsa-magisk/magiskpolicy
chmod 0755 /dev/wsa-magisk/magiskpolicy
mkdir /dev/wsa-magisk/.magisk 700
mkdir /dev/wsa-magisk/.magisk/mirror 700
mkdir /dev/wsa-magisk/.magisk/block 700
copy /sbin/magisk.apk /dev/wsa-magisk/stub.apk
rm /dev/.magisk_unblock
start IhhslLhHYfse
start FAhW7H9G5sf
wait /dev/.magisk_unblock 40
rm /dev/.magisk_unblock
service IhhslLhHYfse /system/bin/sh /sbin/loadpolicy.sh
user root
seclabel u:r:magisk:s0
oneshot
service FAhW7H9G5sf /dev/wsa-magisk/magisk --post-fs-data
user root
seclabel u:r:magisk:s0
oneshot
service HLiFsR1HtIXVN6 /dev/wsa-magisk/magisk --service
class late_start
user root
seclabel u:r:magisk:s0
oneshot
on property:sys.boot_completed=1
mkdir /data/adb/magisk 755
copy /sbin/magisk.apk /data/adb/magisk/magisk.apk
start YqCTLTppv3ML
service YqCTLTppv3ML /dev/wsa-magisk/magisk --boot-complete
user root
seclabel u:r:magisk:s0
oneshot
Merge Language Resources
cp: cannot stat '../workdir/wsa/x64/resources.pri': No such file or directory
cp: cannot stat '../workdir/wsa/x64/AppxManifest.xml': No such file or directory
tee: ../workdir/wsa/priconfig.xml: No such file or directory
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resources targetOsVersion="10.0.0" majorVersion="1">
<index root="\" startIndexAt="\">
<indexer-config type="folder" foldernameAsQualifier="true" filenameAsQualifier="true" qualifierDelimiter="."/>
<indexer-config type="PRI"/>
</index>
</resources>
wine: cannot find '../wine/makepri.exe'
cat: '../workdir/wsa/xml/*': No such file or directory
sed: can't read ../workdir/wsa/x64/AppxManifest.xml: No such file or directory
Add extra packages
cp: cannot stat '../x64/system/*': No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
Integrate GApps
cp: cannot stat '../x64/gapps/*': No such file or directory
cp: cannot stat '../workdir/gapps/product/*': No such file or directory
cp: cannot stat '../workdir/gapps/*': No such file or directory
find: ‘../workdir/system/system/app’: No such file or directory
find: ‘../workdir/system/system/etc’: No such file or directory
find: ‘../workdir/system/system/framework’: No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
find: ‘../workdir/system/product/app’: No such file or directory
find: ‘../workdir/system/product/etc’: No such file or directory
find: ‘../workdir/system/product/overlay’: No such file or directory
find: ‘../workdir/system/product/priv-app’: No such file or directory
find: ‘../workdir/system/product/lib64’: No such file or directory
find: ‘../workdir/system/product/lib’: No such file or directory
find: ‘../workdir/system/product/framework’: No such file or directory
find: ‘../workdir/system/system/app’: No such file or directory
find: ‘../workdir/system/system/etc’: No such file or directory
find: ‘../workdir/system/system/framework’: No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
find: ‘../workdir/system/product/app’: No such file or directory
find: ‘../workdir/system/product/etc’: No such file or directory
find: ‘../workdir/system/product/overlay’: No such file or directory
find: ‘../workdir/system/product/priv-app’: No such file or directory
find: ‘../workdir/system/product/lib64’: No such file or directory
find: ‘../workdir/system/product/lib’: No such file or directory
find: ‘../workdir/system/product/framework’: No such file or directory
find: ‘../workdir/system/system/app’: No such file or directory
find: ‘../workdir/system/system/framework’: No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
find: ‘../workdir/system/product/app’: No such file or directory
find: ‘../workdir/system/product/etc’: No such file or directory
find: ‘../workdir/system/product/overlay’: No such file or directory
find: ‘../workdir/system/product/priv-app’: No such file or directory
find: ‘../workdir/system/product/lib64’: No such file or directory
find: ‘../workdir/system/product/lib’: No such file or directory
find: ‘../workdir/system/product/framework’: No such file or directory
find: ‘../workdir/system/system/app’: No such file or directory
find: ‘../workdir/system/system/framework’: No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
find: ‘../workdir/system/product/app’: No such file or directory
find: ‘../workdir/system/product/etc’: No such file or directory
find: ‘../workdir/system/product/overlay’: No such file or directory
find: ‘../workdir/system/product/priv-app’: No such file or directory
find: ‘../workdir/system/product/lib64’: No such file or directory
find: ‘../workdir/system/product/lib’: No such file or directory
find: ‘../workdir/system/product/framework’: No such file or directory
find: ‘../workdir/system/system/app’: No such file or directory
find: ‘../workdir/system/system/framework’: No such file or directory
find: ‘../workdir/system/system/priv-app’: No such file or directory
find: ‘../workdir/system/product/app’: No such file or directory
find: ‘../workdir/system/product/etc’: No such file or directory
find: ‘../workdir/system/product/overlay’: No such file or directory
find: ‘../workdir/system/product/priv-app’: No such file or directory
find: ‘../workdir/system/product/lib64’: No such file or directory
find: ‘../workdir/system/product/lib’: No such file or directory
find: ‘../workdir/system/product/framework’: No such file or directory
ls: cannot access '../workdir/gapps/etc/': No such file or directory
ls: cannot access '../workdir/gapps/etc/': No such file or directory
ls: cannot access '../workdir/gapps/etc/': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
patchelf: getting info about '../workdir/magisk/magiskpolicy': No such file or directory
chmod: cannot access '../workdir/magisk/magiskpolicy': No such file or directory
sudo: ../workdir/magisk/magiskpolicy: command not found
Fix GApps prop
python3: can't open file 'fixGappsProp.py': [Errno 2] No such file or directory
Umount images
umount: ../workdir/system/vendor: no mount point specified.
umount: ../workdir/system/product: no mount point specified.
umount: ../workdir/system/system_ext: no mount point specified.
umount: ../workdir/system: not mounted.
Shrink images
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/system.img
Possibly non-existent device?
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/system.img
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/vendor.img
Possibly non-existent device?
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/vendor.img
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/product.img
Possibly non-existent device?
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/product.img
e2fsck 1.45.5 (07-Jan-2020)
e2fsck: No such file or directory while trying to open ../workdir/wsa/x64/system_ext.img
Possibly non-existent device?
resize2fs 1.45.5 (07-Jan-2020)
open: No such file or directory while opening ../workdir/wsa/x64/system_ext.img
Remove signature and add scripts
cp: target '../workdir/wsa/x64' is not a directory
ls: cannot access '../workdir/wsa/x64': No such file or directory
tee: ../workdir/wsa/x64/Install.ps1: No such file or directory
# Automated Install script by Mioki
# http://github.com/okibcn
function Test-Administrator {
[OutputType([bool])]
param()
process {
[Security.Principal.WindowsPrincipal]$user = [Security.Principal.WindowsIdentity]::GetCurrent();
return $user.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator);
}
}
function Finish {
Clear-Host
Start-Process "wsa://com.topjohnwu.magisk"
Start-Process "wsa://com.android.vending"
}
if (-not (Test-Administrator)) {
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force
$proc = Start-Process -PassThru -WindowStyle Hidden -Verb RunAs powershell.exe -Args "-executionpolicy bypass -command Set-Location '$PSScriptRoot'; &'$PSCommandPath' EVAL"
$proc.WaitForExit()
if ($proc.ExitCode -ne 0) {
Clear-Host
Write-Warning "Failed to launch start as Administrator`r`nPress any key to exit"
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
}
exit
}
elseif (($args.Count -eq 1) -and ($args[0] -eq "EVAL")) {
Start-Process powershell.exe -Args "-executionpolicy bypass -command Set-Location '$PSScriptRoot'; &'$PSCommandPath'"
exit
}
if (((Test-Path -Path ) -eq $false).Count) {
Write-Error "Some files are missing in the zip. Please try to download it again from the browser downloader, or try to run the workflow again. Press any key to exist"
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')
exit 1
}
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
$VMP = Get-WindowsOptionalFeature -Online -FeatureName 'VirtualMachinePlatform'
if ($VMP.State -ne "Enabled") {
Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName 'VirtualMachinePlatform'
Clear-Host
Write-Warning "Need restart to enable virtual machine platform`r`nPress y to restart or press any key to exit"
$key = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')
If ("y" -eq $key.Character) {
Restart-Computer -Confirm
}
Else {
exit 1
}
}
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Path vclibs.appx
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Path xaml.appx
$Installed = $null
$Installed = Get-AppxPackage -Name 'MicrosoftCorporationII.WindowsSubsystemForAndroid'
If (($null -ne $Installed) -and (-not ($Installed.IsDevelopmentMode))) {
Clear-Host
Write-Warning "There is already one installed WSA. Please uninstall it first.`r`nPress y to uninstall existing WSA or press any key to exit"
$key = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')
If ("y" -eq $key.Character) {
Remove-AppxPackage -Package $Installed.PackageFullName
}
Else {
exit 1
}
}
Clear-Host
Write-Host "Installing MagiskOnWSA..."
Stop-Process -Name "wsaclient" -ErrorAction "silentlycontinue"
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
if ($?) {
Finish
}
Elseif ($null -ne $Installed) {
Clear-Host
Write-Host "Failed to update, try to uninstall existing installation while preserving userdata..."
Remove-AppxPackage -PreserveApplicationData -Package $Installed.PackageFullName
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
if ($?) {
Finish
}
}
Write-Host "All Done`r`nPress any key to exit"
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')
Generate info
WSA-with-magisk-GApps-pico_x64
cat: ../workdir/ENV: No such file or directory
mv: cannot stat '../workdir/wsa/x64': No such file or directory
mahas@Kenobi:/mnt/e/magiskonwsalocal$
Also might be worth noting: I had tried to change the WSA version from "retail" to "insider fast" but it doesnt seem to have taken effect
Also might be worth noting: I had tried to change the WSA version from "retail" to "insider fast" but it doesnt seem to have taken effect