diff --git a/app/src/main/java/com/topjohnwu/magisk/container/Repo.java b/app/src/main/java/com/topjohnwu/magisk/container/Repo.java index 64a8fec10..0f3745b9a 100644 --- a/app/src/main/java/com/topjohnwu/magisk/container/Repo.java +++ b/app/src/main/java/com/topjohnwu/magisk/container/Repo.java @@ -96,8 +96,14 @@ public class Repo extends BaseModule { } public boolean isNewInstaller() { - try (Request req = Networking.get(getFileUrl("install.sh"))) { - return req.connect().isSuccess(); + try (Request install = Networking.get(getFileUrl("install.sh"))) { + if (install.connect().isSuccess()) { + // Double check whether config.sh exists + try (Request config = Networking.get(getFileUrl("config.sh"))) { + return !config.connect().isSuccess(); + } + } + return false; } }