WSAGAScript icon indicating copy to clipboard operation
WSAGAScript copied to clipboard

cannot run 'apply.sh'

Open jkampich1411 opened this issue 4 years ago • 3 comments

The error: "find: '/mnt/product/overlay': No such file or directory" occoures when I run "apply.sh".

Log output:

root@[redacted]:/mnt/c/WindowsSubsystemAndroid/WSAGAScript# ./apply.sh
Modifing build.prop for each image
-> fixing system
-> fixing vendor
-> fixing product
-> fixing system_ext
removing duplicate apps from system
Copying GApps files to system...
Applying root file ownership
Setting directory permissions
find: ‘/mnt/product/overlay’: No such file or directory
Setting file permissions
find: ‘/mnt/product/overlay’: No such file or directory
Applying SELinux security contexts to directories
find: ‘/mnt/product/overlay’: No such file or directory
Applying SELinux security contexts to files
find: ‘/mnt/product/overlay’: No such file or directory
Applying SELinux security contexts to props
Applying SELinux policy
!! Apply completed !!

There are no spaces in the file path.

Do you know what I should do?

jkampich1411 avatar Nov 30 '21 20:11 jkampich1411

Yep I'm stuck at the same issue. Here's my log output. Running Ubuntu WSL

root@DESKTOP-65AIK1G:/mnt/c/WSA/WSAGAScript# sudo ./apply.sh
Modifing build.prop for each image
-> fixing system
-> fixing vendor
-> fixing product
-> fixing system_ext
removing duplicate apps from system
Copying GApps files to system...
Applying root file ownership
Setting directory permissions
Setting file permissions
Applying SELinux security contexts to directories
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/app': No data available
chcon: failed to get security context of '/mnt/product/etc/permissions': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
chcon: failed to get security context of '/mnt/product/priv-app': No data available
Applying SELinux security contexts to files
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/app/ModuleMetadata/ModuleMetadata.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/etc/permissions/privapp-permissions-venezia.xml': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
chcon: failed to get security context of '/mnt/product/priv-app/amazon-adm-release/amazon-adm-release.apk': No such file or directory
Applying SELinux security contexts to props
chcon: failed to get security context of '/mnt/product/etc': No data available
Applying SELinux policy
!! Apply completed !!
root@DESKTOP-65AIK1G:/mnt/c/WSA/WSAGAScript#

irvinekyle avatar Dec 17 '21 13:12 irvinekyle

sudo su (yes i know) then retype that 3 commands extend_and.... appl... ... this worked for me

ckoever avatar Jan 03 '22 02:01 ckoever

sudo su (yes i know)

This method still outputs the same error. Also, sudo su and sudo ./FILE result in the same thing as they both access the root user.

jkampich1411 avatar Jan 03 '22 18:01 jkampich1411