Merge "Fix logspam due to missing /vendor/etc/public.libraries.txt" into main am: 997af74d7f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2650395

Change-Id: Iac01add68a77287940980b46bc3f6df041fadaad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Eric Biggers
2023-07-11 22:22:01 +00:00
committed by Automerger Merge Worker

View File

@@ -1848,6 +1848,9 @@ public class SystemConfig {
soname, soname, new String[0], true); soname, soname, new String[0], true);
mSharedLibraries.put(entry.name, entry); mSharedLibraries.put(entry.name, entry);
} }
} catch (FileNotFoundException e) {
// Expected for /vendor/etc/public.libraries.txt on some devices
Slog.d(TAG, listFile + " does not exist");
} catch (IOException e) { } catch (IOException e) {
Slog.w(TAG, "Failed to read public libraries file " + listFile, e); Slog.w(TAG, "Failed to read public libraries file " + listFile, e);
} }