OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03b58bd
)
NativeDaemonConnector: fix doListCommand() to return *all* list elements
author
San Mehat
<san@google.com>
Tue, 26 Jan 2010 20:48:39 +0000
(12:48 -0800)
committer
San Mehat
<san@google.com>
Tue, 26 Jan 2010 21:18:03 +0000
(13:18 -0800)
Signed-off-by: San Mehat <san@google.com>
services/java/com/android/server/NativeDaemonConnector.java
patch
|
blob
|
history
diff --git
a/services/java/com/android/server/NativeDaemonConnector.java
b/services/java/com/android/server/NativeDaemonConnector.java
index
98e00dc
..
92ba5f8
100644
(file)
--- a/
services/java/com/android/server/NativeDaemonConnector.java
+++ b/
services/java/com/android/server/NativeDaemonConnector.java
@@
-255,11
+255,7
@@
final class NativeDaemonConnector implements Runnable {
String[] tok = line.split(" ");
int code = Integer.parseInt(tok[0]);
if (code == expectedResponseCode) {
- if (tok.length !=2) {
- throw new IllegalStateException(
- String.format("Malformatted list entry '%s'", line));
- }
- rdata[idx++] = tok[1];
+ rdata[idx++] = line.substring(tok[0].length() + 1);
} else if (code == NativeDaemonConnector.ResponseCode.CommandOkay) {
return rdata;
} else {