summaryrefslogtreecommitdiffstats
path: root/libnativehelper/Register.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-03-16 16:43:17 -0700
committerElliott Hughes <enh@google.com>2010-03-16 17:28:06 -0700
commit7579f24238f3eecf439d6f4d8f06d339f1d7cccf (patch)
treee9ff21815472d962affeaa111140baf06f8b2269 /libnativehelper/Register.c
parent861b33855aff080278ea5125e4372a2d4bf8aef5 (diff)
downloadandroid_dalvik-7579f24238f3eecf439d6f4d8f06d339f1d7cccf.tar.gz
android_dalvik-7579f24238f3eecf439d6f4d8f06d339f1d7cccf.tar.bz2
android_dalvik-7579f24238f3eecf439d6f4d8f06d339f1d7cccf.zip
Add Java 6's java.io.Console.
This is actually functional, if you're in the mood to "adb shell". The implementation is based on harmony's, but with the initialization and native code rewritten, with readPassword responsible for echoing a newline (so we don't have to play silly tricks with the ECHONL flag), and a vastly simplified ConsoleReader class. I've also rewritten the documentation. Change-Id: I902b47fb27a8fdb2d6f067bb905ee02c6a10e454
Diffstat (limited to 'libnativehelper/Register.c')
-rw-r--r--libnativehelper/Register.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnativehelper/Register.c b/libnativehelper/Register.c
index e923cee53..c09b1e9ca 100644
--- a/libnativehelper/Register.c
+++ b/libnativehelper/Register.c
@@ -22,6 +22,8 @@ int jniRegisterSystemMethods(JNIEnv* env)
if (register_org_apache_harmony_dalvik_NativeTestTarget(env) != 0)
goto bail;
+ if (register_java_io_Console(env) != 0)
+ goto bail;
if (register_java_io_File(env) != 0)
goto bail;
if (register_java_io_FileDescriptor(env) != 0)