summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Yi-Yo Chiang <yochiang@google.com> 2023-08-22 18:04:10 +0800
committer Eric Biggers <ebiggers@google.com> 2023-10-10 22:52:37 +0000
commit0ed52ac404e607251762846a0b8f5b3c9b006637 (patch)
tree6aed19c0666ff508d1ca8e69c30d6dc211ef4c51 /libs/androidfw/ObbFile.cpp
parent5f8125f572349bfbfd54d88b8dce2f7660ce27c3 (diff)
locksettings: Don't use AIDL V1 weaver
V1 and V2 reports IWeaver.read() errors differently. V1 throws ServiceSpecificException wrapping an error code. V2 returns the error code in the output parcel. The current client code expects the weaver HAL to be V2 or newer, however it doesn't check if the actual service version is V2 or not. If the service is V1, then IWeaver.read() errors would become unhandled exception, crashing the system_server. Since Weaver AIDL V1 is broken and should never be used, don't use Weaver AIDL V1 services. This fixes a regression in Android 14 where AIDL V1 started being used when available. Bug: 296984182 Bug: 296512452 Test: Boot on old (tm) vendor Change-Id: I32306fb8473c655e68d89d63a1e4f00c8bb5d61f Merged-In: I32306fb8473c655e68d89d63a1e4f00c8bb5d61f (cherry picked from commit 048aaf42d7073d2c45377154badbe3732103047b)
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions