Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eeb9b56a authored by Sumedh Sen's avatar Sumedh Sen
Browse files

[piav2] Remove an invalid check.

Since getLaunchedFromPackage() is used to get the calling package name,
it cannot be null. As such, the null check in Pia V2 is redundant.

Test: atest CtsAppOps2TestCases
Bug: 330634051
Change-Id: I9c857449c8c1946fe14e424519f370090768bb9b
parent 79c910f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()