From 9ca0fb789bd2fee76012cdbef8b513a00f8c3fcc Mon Sep 17 00:00:00 2001 From: Tiger Oakes Date: Tue, 26 Oct 2021 20:11:38 -0700 Subject: [PATCH] Updated installSplitApks --- app/src/main/java/com/vanced/manager/utils/PackageHelper.kt | 3 +++ 1 file changed, 3 insertions(+) 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 37fc618e90..1fbcf6b897 100644 --- a/app/src/main/java/com/vanced/manager/utils/PackageHelper.kt +++ b/app/src/main/java/com/vanced/manager/utils/PackageHelper.kt @@ -282,6 +282,9 @@ object PackageHelper { val sessionId: Int val sessionParams = PackageInstaller.SessionParams(PackageInstaller.SessionParams.MODE_FULL_INSTALL) + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + sessionParams.setRequireUserAction(PackageInstaller.SessionParams.USER_ACTION_NOT_REQUIRED) + } val callbackIntent = Intent(context, AppInstallerService::class.java) val pendingIntent = PendingIntent.getService(context, 0, callbackIntent, intentFlags) try {