mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-08-28 13:12:21 +00:00
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Tue, 14 May 2019 14:31:29 -0400
|
|
Subject: [PATCH] disable WebView reservation for exec spawning
|
|
|
|
---
|
|
core/java/com/android/internal/os/ZygoteInit.java | 8 +++++---
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java
|
|
index c5ae8f3de0be..b711db51db05 100644
|
|
--- a/core/java/com/android/internal/os/ZygoteInit.java
|
|
+++ b/core/java/com/android/internal/os/ZygoteInit.java
|
|
@@ -160,9 +160,11 @@ public class ZygoteInit {
|
|
}
|
|
preloadSharedLibraries();
|
|
preloadTextResources();
|
|
- // Ask the WebViewFactory to do any initialization that must run in the zygote process,
|
|
- // for memory sharing purposes.
|
|
- WebViewFactory.prepareWebViewInZygote();
|
|
+ if (fullPreload) {
|
|
+ // Ask the WebViewFactory to do any initialization that must run in the zygote process,
|
|
+ // for memory sharing purposes.
|
|
+ WebViewFactory.prepareWebViewInZygote();
|
|
+ }
|
|
endPreload(fullPreload);
|
|
warmUpJcaProviders();
|
|
Log.d(TAG, "end preload");
|