Minor changes

This commit is contained in:
topjohnwu 2020-10-17 04:14:12 -07:00
parent 2760f37e6b
commit 9087207dc0
3 changed files with 3 additions and 4 deletions

View File

@ -18,7 +18,6 @@ object Const {
// Misc // Misc
const val ANDROID_MANIFEST = "AndroidManifest.xml" const val ANDROID_MANIFEST = "AndroidManifest.xml"
const val MAGISK_INSTALL_LOG_FILENAME = "magisk_install_log_%s.log" const val MAGISK_INSTALL_LOG_FILENAME = "magisk_install_log_%s.log"
const val MANAGER_CONFIGS = ".tmp.magisk.config"
val USER_ID = Process.myUid() / 100000 val USER_ID = Process.myUid() / 100000
object Version { object Version {

View File

@ -69,8 +69,8 @@ abstract class BaseDownloader : BaseService(), KoinComponent {
// -- Download logic // -- Download logic
private suspend fun Subject.startDownload() { private suspend fun Subject.startDownload() {
val skipDl = this is Subject.Magisk && file.checkSum("MD5", magisk.md5) val skip = this is Subject.Magisk && file.checkSum("MD5", magisk.md5)
if (!skipDl) { if (!skip) {
val stream = service.fetchFile(url).toProgressStream(this) val stream = service.fetchFile(url).toProgressStream(this)
when (this) { when (this) {
is Subject.Module -> // Download and process on-the-fly is Subject.Module -> // Download and process on-the-fly

View File

@ -219,7 +219,7 @@
<string name="failure">Failed</string> <string name="failure">Failed</string>
<string name="hide_manager_title">Hiding Magisk Manager…</string> <string name="hide_manager_title">Hiding Magisk Manager…</string>
<string name="hide_manager_fail_toast">Hide Magisk Manager failed</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="open_link_failed_toast">No application found to open the link</string>
<string name="complete_uninstall">Complete Uninstall</string> <string name="complete_uninstall">Complete Uninstall</string>
<string name="restore_img">Restore Images</string> <string name="restore_img">Restore Images</string>