mirror of
https://github.com/topjohnwu/Magisk
synced 2024-11-13 20:54:12 +01:00
Minor changes
This commit is contained in:
parent
2760f37e6b
commit
9087207dc0
@ -18,7 +18,6 @@ object Const {
|
||||
// Misc
|
||||
const val ANDROID_MANIFEST = "AndroidManifest.xml"
|
||||
const val MAGISK_INSTALL_LOG_FILENAME = "magisk_install_log_%s.log"
|
||||
const val MANAGER_CONFIGS = ".tmp.magisk.config"
|
||||
val USER_ID = Process.myUid() / 100000
|
||||
|
||||
object Version {
|
||||
|
@ -69,8 +69,8 @@ abstract class BaseDownloader : BaseService(), KoinComponent {
|
||||
// -- Download logic
|
||||
|
||||
private suspend fun Subject.startDownload() {
|
||||
val skipDl = this is Subject.Magisk && file.checkSum("MD5", magisk.md5)
|
||||
if (!skipDl) {
|
||||
val skip = this is Subject.Magisk && file.checkSum("MD5", magisk.md5)
|
||||
if (!skip) {
|
||||
val stream = service.fetchFile(url).toProgressStream(this)
|
||||
when (this) {
|
||||
is Subject.Module -> // Download and process on-the-fly
|
||||
|
@ -219,7 +219,7 @@
|
||||
<string name="failure">Failed</string>
|
||||
<string name="hide_manager_title">Hiding Magisk Manager…</string>
|
||||
<string name="hide_manager_fail_toast">Hide Magisk Manager failed</string>
|
||||
<string name="restore_manager_fail_toast">Restoring Magisk Manager failed</string>
|
||||
<string name="restore_manager_fail_toast">Restore Magisk Manager failed</string>
|
||||
<string name="open_link_failed_toast">No application found to open the link</string>
|
||||
<string name="complete_uninstall">Complete Uninstall</string>
|
||||
<string name="restore_img">Restore Images</string>
|
||||
|
Loading…
Reference in New Issue
Block a user