Debugging, JNI & minor sensor api changes