mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-06 15:30:46 -05:00
Directly download to magisk.zip for flashing
This commit is contained in:
@@ -31,7 +31,11 @@ sealed class DownloadSubject : Parcelable {
|
||||
) : DownloadSubject() {
|
||||
|
||||
override val url: String get() = magisk.link
|
||||
override val fileName get() = "Magisk-v${magisk.version}(${magisk.versionCode}).zip"
|
||||
override val fileName get() =
|
||||
if (configuration is Configuration.Flash)
|
||||
"magisk.zip"
|
||||
else
|
||||
"Magisk-v${magisk.version}(${magisk.versionCode}).zip"
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ sealed class Patching(
|
||||
private val console: MutableList<String>,
|
||||
logs: MutableList<String>,
|
||||
private val resultListener: FlashResultListener
|
||||
) : MagiskInstaller(console, logs, file) {
|
||||
) : MagiskInstaller(console, logs) {
|
||||
|
||||
override fun onResult(success: Boolean) {
|
||||
if (success) {
|
||||
|
||||
Reference in New Issue
Block a user