JohnE Gledhill
Mar 08, 2018
9:03 pm

Light Weight Container VPN questions

I am creating a solftware solution that will use a Light Weight Container. I would like to add VPN to the container. Is that possible? Does the "knox-b2b-lwc" container support VPN?

In the knox developer documentation for the GenericVpnPolicy it states:
" b) If the administrator wants to use the below Api's for the Container, administrator needs the "com.sec.enterprise.knox.KNOX_CONTAINER_VPN" Permission.

I don't understand where I am applying these permissions.

It is my understanding that Android Device Admin is necessary for a device VPN. Do I also need this for the Light Weight Container.

I have not been able to find these details in the documentation. Any information is very appreciated! Thank you.
 

Similar topics

No similar topics found.
Samuel Goldwax
Mar 09, 2018
6:12 pm

Hi John,

You are indeed able to apply a VPN to a lightweight container, using the GenericVpnPolicy class you mentioned. The provided permission needs to be declared in the Android manifest. Also you need to activate device admin for your application to use any Knox API. I'd recommend checking out some related sample apps for implementations for this.

Thanks,

Sam

JohnE Gledhill
Mar 15, 2018
9:11 am

I have read the documentation and I have looked over the sample code for "ContainerVPNPolicies". I added code to activate device admin. I have looked over the forum too. I am stuck right now. I am getting a null from getGenericVpnPolicy("com.cisco.anyconnect.vpn.android.samsung43") and getGenericVpnPolicy("com.samsung.sVPN"). Because no exception is thrown and nothing in logcat...I can't get feedback as to what is causing the null. Please share any troubleshooting tips. Thank you.

Samuel Goldwax
Mar 19, 2018
5:23 pm

Hi John,

Could it be that the reason this method is returning null is because the KnoxContainerManager that's calling the method is null? What code are you using to get the container manager?

Thanks,

Sam