Menu

Near Field Communications

This topic describes how to add support for NFC with the Knox SDK. You can control NFC globally or individually on the device / container side. The use of this API requires the caller to have the com.samsung.android.knox.permission.KNOX_HW_CONTROL permission.

Enable NFC in container only

enableNFC() allows you to control NFC in the container.

  1. Create a Knox Container.
  2. Get the Knox container manger object
  3. access the getContainerConfigurationPolicy class.
  4. Call .enableNFC() and set to true
EnterpriseKnoxManager ekm = EnterpriseKnoxManager.getInstance(context);
KnoxContainerManager kcm = ekm.getKnoxContainerManager(containerID);

ContainerConfigurationPolicy ccp = kcm.getContainerConfigurationPolicy();
ccp.enableNFC(true, null); 
Share it: