diff --git a/app/core/src/main/java/com/topjohnwu/magisk/core/ktx/XAndroid.kt b/app/core/src/main/java/com/topjohnwu/magisk/core/ktx/XAndroid.kt index 11fb43d93..52b0e0718 100644 --- a/app/core/src/main/java/com/topjohnwu/magisk/core/ktx/XAndroid.kt +++ b/app/core/src/main/java/com/topjohnwu/magisk/core/ktx/XAndroid.kt @@ -2,7 +2,11 @@ package com.topjohnwu.magisk.core.ktx import android.annotation.SuppressLint import android.app.Activity -import android.content.* +import android.content.BroadcastReceiver +import android.content.Context +import android.content.ContextWrapper +import android.content.Intent +import android.content.IntentFilter import android.content.pm.ApplicationInfo import android.content.pm.PackageInfo import android.content.pm.PackageManager @@ -23,7 +27,6 @@ import com.topjohnwu.magisk.core.utils.RootUtils import com.topjohnwu.magisk.utils.APKInstall import com.topjohnwu.superuser.internal.UiThreadHandler import java.io.File -import kotlin.String fun Context.getBitmap(id: Int): Bitmap { var drawable = getDrawable(id)!! diff --git a/app/core/src/main/java/com/topjohnwu/magisk/core/model/module/LocalModule.kt b/app/core/src/main/java/com/topjohnwu/magisk/core/model/module/LocalModule.kt index 928efcb68..2bbb962ee 100644 --- a/app/core/src/main/java/com/topjohnwu/magisk/core/model/module/LocalModule.kt +++ b/app/core/src/main/java/com/topjohnwu/magisk/core/model/module/LocalModule.kt @@ -9,7 +9,7 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import timber.log.Timber import java.io.IOException -import java.util.* +import java.util.Locale data class LocalModule( private val path: String, diff --git a/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/FlashZip.kt b/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/FlashZip.kt index 16d53ebe6..88542ed2d 100644 --- a/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/FlashZip.kt +++ b/app/core/src/main/java/com/topjohnwu/magisk/core/tasks/FlashZip.kt @@ -7,7 +7,6 @@ import com.topjohnwu.magisk.core.Const import com.topjohnwu.magisk.core.ktx.writeTo import com.topjohnwu.magisk.core.utils.MediaStoreUtils.displayName import com.topjohnwu.magisk.core.utils.MediaStoreUtils.inputStream -import com.topjohnwu.magisk.core.utils.unzip import com.topjohnwu.superuser.Shell import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext