initializeCharon();
Log.i(TAG, "charon started");
+
+ String local_address = getLocalIPv4Address();
+ initiate(local_address != null ? local_address : "0.0.0.0",
+ mCurrentProfile.getGateway(), mCurrentProfile.getUsername(),
+ mCurrentProfile.getPassword());
}
}
catch (InterruptedException ex)
public native void deinitializeCharon();
/**
+ * Initiate VPN, provided by libandroidbridge.so
+ */
+ public native void initiate(String local_address, String gateway,
+ String username, String password);
+
+ /**
* Helper function that retrieves a local IPv4 address.
*
* @return string representation of an IPv4 address, or null if none found