mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-11-12 21:02:58 +00:00
Default to canary channel if running canary build
This commit is contained in:
@@ -12,6 +12,7 @@ import android.provider.OpenableColumns;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.topjohnwu.magisk.App;
|
||||
import com.topjohnwu.magisk.BuildConfig;
|
||||
import com.topjohnwu.magisk.Config;
|
||||
import com.topjohnwu.magisk.Const;
|
||||
import com.topjohnwu.magisk.container.Module;
|
||||
@@ -118,4 +119,8 @@ public class Utils {
|
||||
public static void reboot() {
|
||||
Shell.su("/system/bin/reboot" + (Config.recovery ? " recovery" : "")).submit();
|
||||
}
|
||||
|
||||
public static boolean isCanary() {
|
||||
return BuildConfig.VERSION_NAME.contains("-");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user