Closed abandoned-this closed 3 years ago
sorry for that...it's a mistake...
but there is something wrong with my phone, for the dumper can not find the path even if it was there...
RIRU_PATH="/data/adb/riru" check_riru_version() { if [ ! -f "$RIRU_PATH/api_version" ] && [ ! -f "$RIRU_PATH/api_version.new" ]; then ui_print "" ui_print "! Riru $RIRU_MIN_VERSION_NAME or above is required" ui_print "! Please install Riru from Magisk Manager or https://github.com/RikkaApps/Riru/releases" abort "" fi
adb shell walleye:/ $ su walleye:/ # cd /data walleye:/data # cd adb walleye:/data/adb # cd riru walleye:/data/adb/riru # ls api_version dev_random modules util_functions.sh walleye:/data/adb/riru #
I thought maybe there is something wrong in the riru.sh file such as below:
this function will be used when /data/adb/riru/util_functions.sh not exits
check_riru_version() { if [ ! -f "$RIRU_PATH/api_version" ] && [ ! -f "$RIRU_PATH/api_version.new" ]; then ui_print "" ui_print "! Riru $RIRU_MIN_VERSION_NAME or above is required" ui_print "! Please install Riru from Magisk Manager or https://github.com/RikkaApps/Riru/releases" abort "" fi
&& should be || the riru module now would delete old files for example:
ui_print "- Removing old files" rm -rf /data/adb/riru/bin rm /data/adb/riru/native_bridge rm /data/adb/riru/api_version.new <--- here