Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Updated installSplitApks
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Oct 27, 2021
1 parent 9a14d0f commit 9ca0fb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/vanced/manager/utils/PackageHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9ca0fb7

Please sign in to comment.