Wire up work_around_app_jni_bugs.

This removes the cached value from struct JNIEnv. YAGNI.

Change-Id: Iad1a9182e86d7bf533af14000b99bb0340d6af9b
diff --git a/src/dalvik_system_VMRuntime.cc b/src/dalvik_system_VMRuntime.cc
index de5252d..3a1eac0 100644
--- a/src/dalvik_system_VMRuntime.cc
+++ b/src/dalvik_system_VMRuntime.cc
@@ -112,13 +112,12 @@
 
 void VMRuntime_setTargetSdkVersion(JNIEnv* env, jobject, jint targetSdkVersion) {
   // This is the target SDK version of the app we're about to run.
-  // Note that this value may be CUR_DEVELOPMENT (10000).
-  // Note that this value may be 0, meaning "current".
+  // Note that targetSdkVersion may be CUR_DEVELOPMENT (10000).
+  // Note that targetSdkVersion may be 0, meaning "current".
   if (targetSdkVersion > 0 && targetSdkVersion <= 13 /* honeycomb-mr2 */) {
     // TODO: running with CheckJNI should override this and force you to obey the strictest rules.
     LOG(INFO) << "Turning on JNI app bug workarounds for target SDK version " << targetSdkVersion << "...";
-    UNIMPLEMENTED(WARNING) << "can we get this as a command-line argument?";
-    //gDvmJni.work_around_app_jni_bugs = true;
+    Runtime::Current()->GetJavaVM()->work_around_app_jni_bugs = true;
   }
 }