Function added that allows to update VPN state via JNI