diff options
| author | 2022-11-28 21:12:23 -0600 | |
|---|---|---|
| committer | 2022-11-28 21:51:09 -0600 | |
| commit | 000011116fa430bc866e060761df42d1c571823c (patch) | |
| tree | 0c3daf8c6ee99221b823edc05c39e046c8cc8e2c /libs/androidfw/StringPool.cpp | |
| parent | 4ae8fc3e608903cd65dc31c2dd676327381ff3a5 (diff) | |
BinaryTransparencyService: Fix getOriginalApexPreinstalledLocation
The existing `getOriginalApexPreinstalledLocation` method makes use
of heuristics to determine the filename of originally APEXs
preinstalled on the /system/apex directory.
This change fixes the method to perform prefix comparison instead
of relying on previous heuristics, and thus making this method
more robust overall against package name mismatch, and provides
clear error signals now.
Bug: 259349011
Test: atest BinaryTransparencyServiceTest
Change-Id: Iff6d1041c71e10522f744b9569f5827bb14ed238
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions