summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2023-07-07 23:29:00 +0000
committer Eric Biggers <ebiggers@google.com> 2023-07-10 16:32:06 +0000
commit859a261615fe05d3cd500bf143e8d57be3d7bda6 (patch)
tree8cb1a759ee2bb42a4cae52df079736c0a7f8a4c9 /libs/androidfw/StringPool.cpp
parent60a60047125a737fdbccf2df59cf53652d629e70 (diff)
Fix logspam due to missing /vendor/etc/public.libraries.txt
On Cuttlefish, a warning "Failed to read public libraries file" followed by a stack trace is logged at boot time due to /vendor/etc/public.libraries.txt not existing. However, this file only exists when the silicon vendor chooses to provide additional libraries accessible to apps, according to https://source.android.com/docs/core/permissions/namespaces_libraries#adding-additional-native-libraries Therefore, catch the FileNotFoundException and just log a debug message. Bug: 290402890 Test: booted Cuttlefish and verified the warning is gone Change-Id: I8c21ccb5603fe1f3d523ce762ccc2f7191d74938 Merged-In: I8c21ccb5603fe1f3d523ce762ccc2f7191d74938
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions