summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Atneya Nair <atneya@google.com> 2025-03-19 22:55:13 -0700
committer Atneya Nair <atneya@google.com> 2025-03-19 22:55:14 -0700
commit30d34d06fac9ae18754719a4d032f496c89112e7 (patch)
tree2ef37a06d3d6ebfcda00a8b2ae34f22ddfadca63 /libs/androidfw/StringPool.cpp
parent4df491445a5e9da47a58e20edd46c4ec8b280319 (diff)
[appops] Preflight skip datasource validation
The forDataDelivery logic always skips checking the first attribution in the chain from datasources, either via singleReceiverFromDataSource, or internal in startProxyOp, since skipProxy=true is passed for non-trivial chains. Make the preflight check consistent with this behavior, by also skipping a checkOp on the first entry in this case. This avoids cases where the preflight fails when the delivery would succeed, which should never happen. This is implicitly relied on by audioserver, as it happens to fail checkOp due to not having a valid Uid/PackageState. Test: manual: start and stop recording with toggle restriction Test: atest CtsMediaAudioPermissionTestCases Test: atest RuntimePermissionsAppOpTrackingTest Test: atest SensorPrivacyMicrophoneTest Bug: 399138369 Bug: 293603271 Bug: 401105309 Flag: EXEMPT bugfix Change-Id: I509e7f8da501f5e32d336adb412662e078eab500
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions