diff options
| author | Oleksiy Vyalov <ovyalov@google.com> | 2016-03-30 20:23:25 -0700 |
|---|---|---|
| committer | Oleksiy Vyalov <ovyalov@google.com> | 2016-04-05 07:25:18 -0700 |
| commit | b68bcbdfe755540f3c21186211d4d9d30d4d0c7a (patch) | |
| tree | c5e5342f1acaa7b8fdb7d0d78345f4931879910b /core/java/android/ddm/DdmHandleHello.java | |
| parent | 5798a425ec657cbbe10025a90f5342700f569ba3 (diff) | |
Send nativeDebuggable byte value as part of HELLO response.
Bug: 27942453
Change-Id: I4a222c88e104040b08e603e300e54a1ca2c038fe
Diffstat (limited to 'core/java/android/ddm/DdmHandleHello.java')
| -rw-r--r-- | core/java/android/ddm/DdmHandleHello.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/ddm/DdmHandleHello.java b/core/java/android/ddm/DdmHandleHello.java index 2dce4257da57..b2288fc4492d 100644 --- a/core/java/android/ddm/DdmHandleHello.java +++ b/core/java/android/ddm/DdmHandleHello.java @@ -136,12 +136,14 @@ public class DdmHandleHello extends ChunkHandler { } String vmFlags = "CheckJNI=" + (vmRuntime.isCheckJniEnabled() ? "true" : "false"); + boolean isNativeDebuggable = vmRuntime.isNativeDebuggable(); ByteBuffer out = ByteBuffer.allocate(28 + vmIdent.length() * 2 + appName.length() * 2 + instructionSetDescription.length() * 2 - + vmFlags.length() * 2); + + vmFlags.length() * 2 + + 1); out.order(ChunkHandler.CHUNK_ORDER); out.putInt(DdmServer.CLIENT_PROTOCOL_VERSION); out.putInt(android.os.Process.myPid()); @@ -154,6 +156,7 @@ public class DdmHandleHello extends ChunkHandler { putString(out, instructionSetDescription); out.putInt(vmFlags.length()); putString(out, vmFlags); + out.put((byte)(isNativeDebuggable ? 1 : 0)); Chunk reply = new Chunk(CHUNK_HELO, out); |
