mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 12:05:30 +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() {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user