Sayaji Kadam
Dec 11, 2018
12:01 pm


We migrate our app from Premium Knox SDK to Knox SDK facing following problems -

RestrictionPolicy class depricated following methods - 
 - setUsbMassStorage, setBluetoothState, setWiFiState, setNonTrustedAppInstallBlock

I searched in API reference but not find optional method for this.

Please provide me alternative method for above mentioned.


Jenna S.Samsung SEAP Moderator
Dec 12, 2018
6:51 pm

Hello Sayaji,

Here are the methods in the Knox SDK: setUsbMAssStorageState, setBluetoothState, setWiFiState, setNonTrustedAppInstallBlock.

Best regards,


Sayaji Kadam
Jan 09, 2019
5:47 am

Hello Jenna,

I used setwifistatus and getting following error -

Caused by: java.lang.NoSuchMethodError: setWifiState(boolean, java.lang.String, java.lang.String, java.lang.String) method from class is only supported from API level 15 and above (current is 11)

And below my code -

try {
    CustomDeviceManager cdm = CustomDeviceManager.getInstance();
    SettingsManager kcsm1 = cdm.getSettingsManager();
    kcsm1.setWifiState(true, null, null, null);
} catch (SecurityException e) {
    DvBancLog.d("SecurityException: " + e);
} catch (Exception e) {
    DvBancLog.d("Exception: " + e);

I activate backword compatibility license also.

My device knox api is 11.