diff options
| author | 2025-01-03 09:49:26 -0700 | |
|---|---|---|
| committer | 2025-01-06 16:37:57 +0000 | |
| commit | abfc8bba86f7ac8dd3693728a213e7d7c427bdff (patch) | |
| tree | 06f749c565cd20c50b184a10bfd774390b9fed8d /libs/androidfw/ApkParsing.cpp | |
| parent | 4288aff850a70ce5563afce07b9bd093ca60f163 (diff) | |
Update logging in getAnglePackageName()
The ANGLE APK may not be present if ANGLE is the native driver. However,
we still want to attempt to load the ANGLE APK if it's present so we use
the latest/developer libraries. If the APK is not present, this can lead
to misleading log messages such as:
Invalid number of ANGLE packages. Required: 1, Found: 0
It is not "invalid" for zero ANGLE APKs to be installed when ANGLE is
the native driver.
Update the logging to separate out when:
* No APKs are installed, omitting the "invalid" messaging.
* Too many ANGLE packages are found, since there should never be >1.
This also removes the redundant logging from setupAngleFromApk().
Also cleans up ".get(0)" to ".getFirst()", to remove a warning.
Bug: 372694741
Test: Manual verification of log message with ANGLE as native driver.
Change-Id: Icf820b44c4c7391f08d17d44a59951ba6340a2d0
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions