summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Songchun Fan <schfan@google.com> 2023-05-01 16:18:48 -0700
committer Songchun Fan <schfan@google.com> 2023-05-02 11:49:21 -0700
commitce8e3fc1c3bb63771b6448911cfe571fb1ab1d40 (patch)
tree9c2073b3e95c0cf50f98a7f953ff4e38210dc82a /libs/androidfw/StringPool.cpp
parent0a2721fc4f291c77087b6be9f7f1a31a57da87e6 (diff)
[SettingsProvider] skip caching in system server
The old implementation avoids closing the memory int array if the process is the system process. However, this doesn't prevent the object to be garbage collected. As a result, the array may be left open without being properly closed. This change skips sending the memory int array and index if the query is from inside system server; should also addresses StrictMode complaints. BUG: 277448672 Test: boots Change-Id: I309ad3558a77d8e7d0c8a8d2c8f45db5a316c976
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions