25 lines
1.3 KiB
Diff
25 lines
1.3 KiB
Diff
![]() |
From 8806ec3ef166fe1fd1eeb690ace6dd5a7682195c Mon Sep 17 00:00:00 2001
|
||
|
From: Daniel Micay <danielmicay@gmail.com>
|
||
|
Date: Tue, 21 May 2019 23:54:20 -0400
|
||
|
Subject: [PATCH] disable exec spawning when using debugging options
|
||
|
|
||
|
The debugging options are not yet supported probably, so disable exec
|
||
|
spawning when doing debugging.
|
||
|
---
|
||
|
core/java/com/android/internal/os/ZygoteConnection.java | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/core/java/com/android/internal/os/ZygoteConnection.java b/core/java/com/android/internal/os/ZygoteConnection.java
|
||
|
index 7d51be259c20..48a68d96e84c 100644
|
||
|
--- a/core/java/com/android/internal/os/ZygoteConnection.java
|
||
|
+++ b/core/java/com/android/internal/os/ZygoteConnection.java
|
||
|
@@ -880,7 +880,7 @@ private Runnable handleChildProc(Arguments parsedArgs, FileDescriptor[] descript
|
||
|
throw new IllegalStateException("WrapperInit.execApplication unexpectedly returned");
|
||
|
} else {
|
||
|
if (!isZygote) {
|
||
|
- if (SystemProperties.getBoolean("sys.spawn.exec", true)) {
|
||
|
+ if (SystemProperties.getBoolean("sys.spawn.exec", true) && parsedArgs.runtimeFlags == 0) {
|
||
|
ExecInit.execApplication(parsedArgs.niceName, parsedArgs.targetSdkVersion,
|
||
|
VMRuntime.getCurrentInstructionSet(), parsedArgs.remainingArgs);
|
||
|
|