summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Rambo Wang <rambowang@google.com> 2021-11-16 17:51:34 -0800
committer Rambo Wang <rambowang@google.com> 2021-11-16 17:51:34 -0800
commit511e11af60536dc8d15f920d7c2fdb0c41501ab5 (patch)
tree90956ddec6ebfa6cd4c7d902726e4a0b4d35ec03 /libs/androidfw/StringPool.cpp
parent7d0bdd39fdad70b47e4ef1127122c27b4430cbe2 (diff)
Do not allow null signal thresholds in SignalStrengthUpdateRequest
SignalStrengthUpdateRequest is designed to not allow null nor empty signal thresholds for public apps. To support system privileged app (Bluetooth) which is only interested in requiring to report system thresholds while idle. An exemption was made (aosp/1569861) which was to allow empty thresholds but the null thresholds was also allowed by mistake. This will cause Bluetooth crash if no signal thresholds are set. To fix the issue, we only allow Bluetooth to set EMPTY thresholds but not null one. Bug: 205585585 Test: atest SignalStrengthUpdateRequestTest Change-Id: I245ecb87ab807a6005b32fa320c8820a2c0b1a9e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions