From a16b5d241b196995c2ff1909e6d18911d95ad77a Mon Sep 17 00:00:00 2001 From: FourTOne5 <59261191+FourTOne5@users.noreply.github.com> Date: Sat, 7 May 2022 08:00:24 +0600 Subject: [PATCH] Add `-r` flag to ShizukuInstaller `createCommand` (#7080) (cherry picked from commit 49d3ddb830eaf792ae393d6f10dc76a26ebd28ec) --- .../kanade/tachiyomi/extension/installer/ShizukuInstaller.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/installer/ShizukuInstaller.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/installer/ShizukuInstaller.kt index 1fa4b230b7..2c3f617e05 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/installer/ShizukuInstaller.kt +++ b/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