mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
More precise new installer detection
This commit is contained in:
parent
d1fa5be210
commit
8049b08918
@ -96,8 +96,14 @@ public class Repo extends BaseModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isNewInstaller() {
|
public boolean isNewInstaller() {
|
||||||
try (Request req = Networking.get(getFileUrl("install.sh"))) {
|
try (Request install = Networking.get(getFileUrl("install.sh"))) {
|
||||||
return req.connect().isSuccess();
|
if (install.connect().isSuccess()) {
|
||||||
|
// Double check whether config.sh exists
|
||||||
|
try (Request config = Networking.get(getFileUrl("config.sh"))) {
|
||||||
|
return !config.connect().isSuccess();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user