|
@@ -8,6 +8,7 @@ import android.content.Intent
|
|
|
import android.content.IntentFilter
|
|
|
import android.content.pm.PackageInstaller
|
|
|
import android.os.Build
|
|
|
+import androidx.core.content.ContextCompat
|
|
|
import eu.kanade.tachiyomi.extension.model.InstallStep
|
|
|
import eu.kanade.tachiyomi.util.lang.use
|
|
|
import eu.kanade.tachiyomi.util.system.getParcelableExtraCompat
|
|
@@ -100,7 +101,7 @@ class PackageInstallerInstaller(private val service: Service) : Installer(servic
|
|
|
}
|
|
|
|
|
|
init {
|
|
|
- service.registerReceiver(packageActionReceiver, IntentFilter(INSTALL_ACTION))
|
|
|
+ ContextCompat.registerReceiver(service, packageActionReceiver, IntentFilter(INSTALL_ACTION), ContextCompat.RECEIVER_EXPORTED)
|
|
|
}
|
|
|
}
|
|
|
|