mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
back to nsenter
This commit is contained in:
parent
6d47258090
commit
574644ad9d
@ -14,11 +14,11 @@ else
|
||||
fi
|
||||
set_perm_recursive $MODPATH/bin 0 0 0755 0777
|
||||
|
||||
su -M -c grep __PKGNAME /proc/mounts | while read -r line; do
|
||||
nsenter -t1 -m -- grep __PKGNAME /proc/mounts | while read -r line; do
|
||||
ui_print "* Un-mount"
|
||||
mp=${line#* }
|
||||
mp=${mp%% *}
|
||||
su -M -c umount -l "${mp%%\\*}"
|
||||
nsenter -t1 -m -- umount -l "${mp%%\\*}"
|
||||
done
|
||||
am force-stop __PKGNAME
|
||||
|
||||
@ -97,7 +97,7 @@ mkdir -p $NVBASE/rvhc
|
||||
RVPATH=$NVBASE/rvhc/${MODPATH##*/}.apk
|
||||
mv -f $MODPATH/base.apk $RVPATH
|
||||
|
||||
if ! op=$(su -M -c mount -o bind $RVPATH $BASEPATH/base.apk 2>&1); then
|
||||
if ! op=$(nsenter -t1 -m -- mount -o bind $RVPATH $BASEPATH/base.apk 2>&1); then
|
||||
ui_print "ERROR: Mount failed!"
|
||||
ui_print "$op"
|
||||
fi
|
||||
|
@ -2,7 +2,7 @@
|
||||
{
|
||||
MODDIR=${0%/*}
|
||||
rm "$NVBASE/rvhc/${MODDIR##*/}".apk
|
||||
rmdir --ignore-fail-on-non-empty "$NVBASE/rvhc"
|
||||
rmdir "$NVBASE/rvhc"
|
||||
# if __ISBNDL; then
|
||||
# until [ "$(getprop sys.boot_completed)" = 1 ]; do sleep 1; done
|
||||
# sleep 15
|
||||
|
Loading…
x
Reference in New Issue
Block a user