summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Andriy Kozachuk <kozachuk@google.com> 2023-05-15 12:44:31 +0000
committer Andriy Kozachuk <kozachuk@google.com> 2023-05-16 07:19:01 +0000
commitf507d5625e52aa22086edfa5474df8c62fab73e2 (patch)
tree37cf94df2d18ea8e0798827e93c8cfa59ea0ee0f /libs/androidfw/StringPool.cpp
parent4811f1daee9793f697a8e0dd6e805093b6ee8018 (diff)
Make "Recycle" Android Lint rule blocking for PackageInstaller
"Recycle" Android Lint rule checks the code for unclosed Cursor objects, as well as other unclosed resources. Cursors which are not closed as soon as they are not used anymore may lead to Android performance issues: * if Cursor was created by querying ContentProvider, then it will hold an active binding to the process that hosts ContentProvider, which will prevent this process from being cached or unloaded * each Cursor can hold an up to 2 MB CursorWindow memory buffer Changing "Recycle" rule severity to "error" will block the code with unclosed Cursors from being submitted. Bug: 266775648 Test: m PackageInstaller Test: m lint-check Merged-In: Ice7f02158259e1c2f899d43e8de8dd318fec1016 Change-Id: Ic062d53c26cb67e2b6c7070c96ab51bd44c3d824
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions