Added robot detection flag in jni