From e11d918a82bb35762c0b0709cdf2be12a97736ad Mon Sep 17 00:00:00 2001 From: X1nto Date: Mon, 1 Mar 2021 22:50:24 +0400 Subject: [PATCH] fixed #437 --- app/src/main/java/com/vanced/manager/utils/PackageHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/vanced/manager/utils/PackageHelper.kt b/app/src/main/java/com/vanced/manager/utils/PackageHelper.kt index 55cd6bda..996d1490 100644 --- a/app/src/main/java/com/vanced/manager/utils/PackageHelper.kt +++ b/app/src/main/java/com/vanced/manager/utils/PackageHelper.kt @@ -302,7 +302,7 @@ object PackageHelper { private fun installSplitApkFilesRoot(apkFiles: List?, context: Context) : Boolean { val filenames = arrayOf("black.apk", "dark.apk", "blue.apk", "pink.apk", "hash.json") log(INSTALLER_TAG, "installing split apk files: ${apkFiles?.map { it.name }}") - val sessionId = Shell.su("pm install-create").exec().out.joinToString(" ").filter { it.isDigit() }.toInt() + val sessionId = Shell.su("pm install-create -r").exec().out.joinToString(" ").filter { it.isDigit() }.toInt() apkFiles?.filter { !filenames.contains(it.name) }?.forEach { apkFile -> val apkName = apkFile.name log(INSTALLER_TAG, "installing APK: $apkName")