summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Gustav Sennton <gsennton@google.com> 2017-09-27 11:19:45 +0100
committer Gustav Sennton <gsennton@google.com> 2018-01-15 18:15:19 +0000
commit90b38a9e3831121df736e87ecf724c29ad101897 (patch)
tree7fa109f226548c87f7414512aa4942e16d7d13d8
parentdc4cb146315240441fc8d9c05fe8dd63370a7c57 (diff)
Reenable Strictmode disk reads checks in WebViewFactory.
In an earlier release we had to allow disk reads during a part of WebView initialization, now that this fault is fixed we can remove that allowance. Bug: 63324842 Test: Manual: ensure calling new WebView() doesn't cause StrictMode disk read violation. Test: run WebViewHostSideStartupTest.testStrictMode() Change-Id: If7b4ad790c67469806c255427d86e5fd28d19f35
-rw-r--r--core/java/android/webkit/WebViewFactory.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebViewFactory.java b/core/java/android/webkit/WebViewFactory.java
index b3522ec94c0c..e9fe481112a2 100644
--- a/core/java/android/webkit/WebViewFactory.java
+++ b/core/java/android/webkit/WebViewFactory.java
@@ -27,7 +27,6 @@ import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.os.RemoteException;
import android.os.ServiceManager;
-import android.os.StrictMode;
import android.os.Trace;
import android.util.AndroidRuntimeException;
import android.util.ArraySet;
@@ -251,7 +250,6 @@ public final class WebViewFactory {
"WebView.disableWebView() was called: WebView is disabled");
}
- StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
Trace.traceBegin(Trace.TRACE_TAG_WEBVIEW, "WebViewFactory.getProvider()");
try {
Class<WebViewFactoryProvider> providerClass = getProviderClass();
@@ -279,7 +277,6 @@ public final class WebViewFactory {
}
} finally {
Trace.traceEnd(Trace.TRACE_TAG_WEBVIEW);
- StrictMode.setThreadPolicy(oldPolicy);
}
}
}