Skip to content
Commit 859a2616 authored by Eric Biggers's avatar Eric Biggers
Browse files

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
parent 60a60047
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment