Skip to content

Commit c0e9504

Browse files
author
Jean-Baptiste Queru
committed
Don't crash zygote if webcore fails to load
Change-Id: I88271fb62c0cc7c6d768009a713f20d9dfbfb5eb
1 parent 056340a commit c0e9504

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/java/android/webkit/WebViewCore.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ final class WebViewCore {
5858
// Load libwebcore during static initialization. This happens in the
5959
// zygote process so it will be shared read-only across all app
6060
// processes.
61-
System.loadLibrary("webcore");
61+
try {
62+
System.loadLibrary("webcore");
63+
} catch (UnsatisfiedLinkError e) {
64+
Log.e(LOGTAG, "Unable to load webcore library");
65+
}
6266
}
6367

6468
/*

0 commit comments

Comments
 (0)