Open slabua opened 3 years ago
This affects only those devices with the Android 11 installed right?
If yes, we should additionally check for Android version before changing the modPath
variable.
I think sbin/.magisk is/was a reference to the actual real path which was /data/adb/modules also in previous versions. So linking to the original path should not break previous versions.
Better way possibly, let the script itself find out its own location.
Magisk has been in /data/adb for a while now
I think sbin/.magisk is/was a reference to the actual real path which was /data/adb/modules also in previous versions. So linking to the original path should not break previous versions.
Better way possibly, let the script itself find out its own location.
This snippet does help us find the location, feel free to check it out.
The following line should be update as follows: https://github.com/EnergizedProtection/magisk/blob/1c597d7fcd12581453077c2e76657e0a1e3a9b8f/system/bin/energized#L12
modPath="/data/adb/modules/energizedprotection/system/bin"