mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-04-16 12:11:26 +00:00
More precise channel targeting
This commit is contained in:
parent
c30be20e49
commit
7fc7809cfc
@ -98,7 +98,12 @@ object Config : PreferenceModel, DBConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val defaultChannel =
|
private val defaultChannel =
|
||||||
if (Utils.isCanary) Value.CANARY_DEBUG_CHANNEL
|
if (Utils.isCanary) {
|
||||||
|
if (BuildConfig.DEBUG)
|
||||||
|
Value.CANARY_DEBUG_CHANNEL
|
||||||
|
else
|
||||||
|
Value.CANARY_CHANNEL
|
||||||
|
}
|
||||||
else Value.DEFAULT_CHANNEL
|
else Value.DEFAULT_CHANNEL
|
||||||
|
|
||||||
var downloadPath by preference(Key.DOWNLOAD_PATH, Environment.DIRECTORY_DOWNLOADS)
|
var downloadPath by preference(Key.DOWNLOAD_PATH, Environment.DIRECTORY_DOWNLOADS)
|
||||||
|
@ -21,8 +21,10 @@ import static com.topjohnwu.magisk.DelegateApplication.MANAGER_APK;
|
|||||||
public class DownloadActivity extends Activity {
|
public class DownloadActivity extends Activity {
|
||||||
|
|
||||||
static final String TAG = "MMStub";
|
static final String TAG = "MMStub";
|
||||||
private static final String URL = BuildConfig.DEV_CHANNEL != null ? BuildConfig.DEV_CHANNEL :
|
private static final String URL =
|
||||||
"https://raw.githubusercontent.com/topjohnwu/magisk_files/master/stable.json";
|
BuildConfig.DEV_CHANNEL != null ? BuildConfig.DEV_CHANNEL :
|
||||||
|
"https://raw.githubusercontent.com/topjohnwu/magisk_files/" +
|
||||||
|
(BuildConfig.DEBUG ? "canary/debug.json" : "master/stable.json");
|
||||||
|
|
||||||
private String apkLink;
|
private String apkLink;
|
||||||
private ErrorHandler err = (conn, e) -> {
|
private ErrorHandler err = (conn, e) -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user