summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Bryce Lee <brycelee@google.com> 2025-02-24 16:21:11 -0800
committer Bryce Lee <brycelee@google.com> 2025-02-24 16:21:35 -0800
commit8f8016e3da1e1596f6130f4e6722acc6ded79abf (patch)
treec87d5e0d44c55175f3a992496367c728d437de29 /libs/androidfw/Util.cpp
parent2f39979ecf6a9a6fed3b30ec166c5c4ff03428cc (diff)
Ignore package sessions with empty package names.
This changelist prevents package sessions with empty package names from being processed. Previously, the SessionInfo was directly translated into a PackageInstallSession model. Since the package name field is non-null, this can lead to a crash. The conversion now returns a nullable result which is checked by the callers. Fixes: 398478006 Flag: EXEMPT bugfix Test: atest PackageInstallerMonitorTest#onCreateUpdatedSession_ignoreNullPackageNameSessions Change-Id: I42703ec1f9664094aa0db70ed0c9911f10ade4d2
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions