Преглед на файлове

Add `-r` flag to ShizukuInstaller `createCommand` (#7080)

FourTOne5 преди 2 години
родител
ревизия
49d3ddb830
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app/src/main/java/eu/kanade/tachiyomi/extension/installer/ShizukuInstaller.kt

+ 2 - 2
app/src/main/java/eu/kanade/tachiyomi/extension/installer/ShizukuInstaller.kt

@@ -52,9 +52,9 @@ class ShizukuInstaller(private val service: Service) : Installer(service) {
                 val size = service.getUriSize(entry.uri) ?: throw IllegalStateException()
                 service.contentResolver.openInputStream(entry.uri)!!.use {
                     val createCommand = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
-                        "pm install-create --user current -i ${service.packageName} -S $size"
+                        "pm install-create --user current -r -i ${service.packageName} -S $size"
                     } else {
-                        "pm install-create -i ${service.packageName} -S $size"
+                        "pm install-create -r -i ${service.packageName} -S $size"
                     }
                     val createResult = exec(createCommand)
                     sessionId = SESSION_ID_REGEX.find(createResult.out)?.value