update jni module to detect network changed