Closed Zackptg5 closed 3 years ago
I see, does the command works on devices below Android 11?
Ya but I think it was added to magisk earlier this year so it's only in recent versions of magisk. After playing around with it more, I favor doing this instead:
[ -d "/sbin/.magisk" ] && MAGISKTMP="/sbin/.magisk" || MAGISKTMP="$(find /dev -mindepth 2 -maxdepth 2 -type d -name ".magisk")"
It should work with older magisk versions. Either way, you get the idea
Ya but I think it was added to magisk earlier this year so it's only in recent versions of magisk. After playing around with it more, I favor doing this instead:
[ -d "/sbin/.magisk" ] && MAGISKTMP="/sbin/.magisk" || MAGISKTMP="$(find /dev -mindepth 2 -maxdepth 2 -type d -name ".magisk")"
It should work with older magisk versions. Either way, you get the idea
it works like a charm.
Android 11 got rid of sbin completely and so magisk now uses /dev/randomstring/.magisk
The random string changes each boot so you need to use the
Command each time the script is run to get the proper path. I forget when this functionality was added though (some point early this year) so it'd probably be best to use sbin if it exists, the path command otherwise