OpenVPN client in KNOX / getGenericVpnProfile returns null
I'm trying to connect to an OpenVPN server in KNOX. I'm running outside of a container, but one has been activated, and my application has Device Admin permissions.
I have registered a BroadcastReciever to catch the "com.samsung.android.mdm.VPN_BIND_RESULT" Intent. My application has the "android.permission.sec.MDM_ENTERPRISE_VPN" permission.
I make the following call, but get back a null result:
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(); gvp = ekm.getGenericVpnPolicy("net.openvpn.openvpn");
From the KNOX Premium documentation, I believe that KNOX has support for the "OpenVPN for Samsung KNOX" VPN client.
I don't know exactly what that is, but I have downloaded "OpenVPN Connect" from the Android Play Store. Is that the same product? When I Google the specific string "OpenVPN for Samsung KNOX", I don't find any results, and there's no mention of it on the OpenVPN page. Is "OpenVPN Connect" the right client to have downloaded? Is there anything obviously wrong with my API call?