mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-08-28 13:12:21 +00:00
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Wed, 11 Sep 2019 06:58:51 -0400
|
|
Subject: [PATCH] disable preloading HALs 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 31c6ce82ca93..9bdea9b4164c 100644
|
|
--- a/core/java/com/android/internal/os/ZygoteInit.java
|
|
+++ b/core/java/com/android/internal/os/ZygoteInit.java
|
|
@@ -152,9 +152,11 @@ public class ZygoteInit {
|
|
preloadResources();
|
|
bootTimingsTraceLog.traceEnd(); // PreloadResources
|
|
}
|
|
- Trace.traceBegin(Trace.TRACE_TAG_DALVIK, "PreloadAppProcessHALs");
|
|
- nativePreloadAppProcessHALs();
|
|
- Trace.traceEnd(Trace.TRACE_TAG_DALVIK);
|
|
+ if (fullPreload) {
|
|
+ Trace.traceBegin(Trace.TRACE_TAG_DALVIK, "PreloadAppProcessHALs");
|
|
+ nativePreloadAppProcessHALs();
|
|
+ Trace.traceEnd(Trace.TRACE_TAG_DALVIK);
|
|
+ }
|
|
if (fullPreload) {
|
|
Trace.traceBegin(Trace.TRACE_TAG_DALVIK, "PreloadGraphicsDriver");
|
|
maybePreloadGraphicsDriver();
|