mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
module: fix kernelsu mount
This commit is contained in:
parent
0af100a39e
commit
805c22a687
@ -21,6 +21,7 @@ Get the [latest CI release](https://github.com/j-hc/revanced-magisk-module/relea
|
||||
* receive updates from Magisk app
|
||||
* do not break safetynet or trigger root detections
|
||||
* handle installation of the correct version of the stock app and all that
|
||||
* support Magisk and KernelSU
|
||||
|
||||
#### **Note that the [CI workflow](../../actions/workflows/ci.yml) is scheduled to build the modules and APKs everyday using GitHub Actions if there is a change in ReVanced patches. You may want to disable it.**
|
||||
|
||||
|
5
build.sh
5
build.sh
@ -33,7 +33,9 @@ if [ "$BUILD_MINDETACH_MODULE" = true ] && [ ! -f "mindetach-magisk/mindetach/de
|
||||
pr "mindetach module was not found."
|
||||
BUILD_MINDETACH_MODULE=false
|
||||
fi
|
||||
PARALLEL_JOBS=$(toml_get "$main_config_t" parallel-jobs) || PARALLEL_JOBS=1
|
||||
if ! PARALLEL_JOBS=$(toml_get "$main_config_t" parallel-jobs); then
|
||||
if [ "$OS" = Android ]; then PARALLEL_JOBS=1; else PARALLEL_JOBS=$(nproc); fi
|
||||
fi
|
||||
LOGGING_F=$(toml_get "$main_config_t" logging-to-file) && vtf "$LOGGING_F" "logging-to-file" || LOGGING_F=false
|
||||
CONF_PATCHES_VER=$(toml_get "$main_config_t" patches-version) || CONF_PATCHES_VER=
|
||||
CONF_INTEGRATIONS_VER=$(toml_get "$main_config_t" integrations-version) || CONF_INTEGRATIONS_VER=
|
||||
@ -115,6 +117,7 @@ for table_name in $(toml_get_table_names); do
|
||||
done
|
||||
wait
|
||||
rm -rf temp/tmp.*
|
||||
if [ -z "$(ls -A1 ${BUILD_DIR})" ]; then abort "All builds failed."; fi
|
||||
|
||||
if [ "$BUILD_MINDETACH_MODULE" = true ]; then
|
||||
pr "Building mindetach module"
|
||||
|
@ -2,7 +2,6 @@
|
||||
compression-level = 9 # compression level for module zips. between 1 and 9
|
||||
logging-to-file = true # enables logging of every patch process to a seperate file
|
||||
enable-magisk-update = true # set this to false if you do not want to receive updates for the module in magisk app
|
||||
parallel-jobs = 1 # max number of concurrent building jobs
|
||||
build-mindetach-module = true
|
||||
|
||||
# extended
|
||||
|
@ -1,7 +1,6 @@
|
||||
compression-level = 9 # compression level for module zips. between 1 and 9
|
||||
logging-to-file = true # enables logging of every patch process to a seperate file
|
||||
enable-magisk-update = true # set this to false if you do not want to receive updates for the module in magisk app
|
||||
parallel-jobs = 1 # max number of concurrent building jobs
|
||||
build-mindetach-module = true
|
||||
|
||||
# add 'enabled = false' for not patching a specific app or remove its entry
|
||||
|
@ -18,7 +18,7 @@ nsenter -t1 -m -- grep __PKGNAME /proc/mounts | while read -r line; do
|
||||
ui_print "* Un-mount"
|
||||
mp=${line#* }
|
||||
mp=${mp%% *}
|
||||
nsenter -t1 -m -- umount -l ${mp%%\\*}
|
||||
nsenter -t1 -m -- umount -l "${mp%%\\*}"
|
||||
done
|
||||
am force-stop __PKGNAME
|
||||
|
||||
@ -92,6 +92,10 @@ nohup cmd package compile --reset __PKGNAME >/dev/null 2>&1 &
|
||||
ui_print "* Cleanup"
|
||||
rm -rf $MODPATH/bin $MODPATH/__PKGNAME.apk
|
||||
|
||||
for s in "uninstall.sh" "service.sh"; do
|
||||
sed -i "2 i\NVBASE=${NVBASE}" $MODPATH/$s
|
||||
done
|
||||
|
||||
ui_print "* Done"
|
||||
ui_print " by j-hc (github.com/j-hc)"
|
||||
ui_print " "
|
||||
|
@ -1,8 +1,7 @@
|
||||
#!/system/bin/sh
|
||||
# shellcheck disable=SC2086
|
||||
MODDIR=${0%/*}
|
||||
MODULES=${MODDIR%/*}
|
||||
RVPATH=${MODULES%/*}/rvhc/__PKGNAME_rv.apk
|
||||
RVPATH=${NVBASE}/rvhc/__PKGNAME_rv.apk
|
||||
|
||||
until [ "$(getprop sys.boot_completed)" = 1 ]; do sleep 1; done
|
||||
while
|
||||
|
@ -1,8 +1,5 @@
|
||||
#!/system/bin/sh
|
||||
{
|
||||
MODDIR=${0%/*}
|
||||
MODULES=${MODDIR%/*}
|
||||
NVBASE=${MODULES%/*}
|
||||
rm $NVBASE/rvhc/__PKGNAME_rv.apk
|
||||
rmdir $NVBASE/rvhc
|
||||
if __ISBNDL :; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user