Prevent outdated modules to be shown

This commit is contained in:
topjohnwu
2018-04-08 01:05:01 +08:00
parent 684c5d225a
commit ce2e6b7d35
5 changed files with 11 additions and 7 deletions
@@ -36,7 +36,10 @@ public class Const {
// Versions
public static final int UPDATE_SERVICE_VER = 1;
public static final int SNET_VER = 7;
public static final int MIN_MODULE_VER = 1400;
public static int MIN_MODULE_VER() {
return MagiskManager.get().magiskVersionCode >= 1630 ? 1500 : 1400;
}
public synchronized static SuFile MAGISK_PATH() {
SuFile file;