summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/PackageInstaller/src/com/android/packageinstaller/v2/model/InstallRepository.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/InstallRepository.kt b/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/InstallRepository.kt
index e48c0f42e62e..08028b1713b8 100644
--- a/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/InstallRepository.kt
+++ b/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/InstallRepository.kt
@@ -136,7 +136,7 @@ class InstallRepository(private val context: Context) {
callingPackage = callerInfo.packageName
- if (callingPackage == null && sessionId != SessionInfo.INVALID_ID) {
+ if (sessionId != SessionInfo.INVALID_ID) {
val sessionInfo: SessionInfo? = packageInstaller.getSessionInfo(sessionId)
callingPackage = sessionInfo?.getInstallerPackageName()
callingAttributionTag = sessionInfo?.getInstallerAttributionTag()