Deeptiman Pattnaik
May 15, 2018
10:23 am

Getting Error Code : 206 for ELM licence key

Hi,

    I have all the code setup for activation for KLM/ELM keys.

KLM is activating without any issues but in case of ELM , it's keeps giving error code : 206.

whereas the application package name and public ***** is proper in the knox cloud.

I don't understand the real issue here.

My Code :

KLM

public void activateKLM(String klmsKey) {
    Log.d(TAG,"activateKLM : klmsKey > "+klmsKey);
    KnoxEnterpriseLicenseManager klmsMgr = null;

    if (klmsKey.equalsIgnoreCase("")) {
        SAUtils.showAlert(this, getResources().getString(R.string.insert_klm_key_heading), getResources().getString(R.string.insert_klm_key), SAConstants.OK);
    } else {
        try {
            if (klmsMgr == null) {
                klmsMgr = KnoxEnterpriseLicenseManager.getInstance(this);
            }
            klmsMgr.activateLicense(klmsKey,this.getPackageName());
        } catch (Exception e) {
            // This exception may occur if the admin is not activated successfully.
            Log.e(TAG, "activateKLM > Exception  : " + e);
        }
    }
}

ELM

public void activateELM(String elmKey) {
    Log.d(TAG,"activateELM : elmKey > "+elmKey);
    EnterpriseLicenseManager elmMgr = null;
    if (elmKey.equalsIgnoreCase("")) {
        SAUtils.showAlert(this, getResources().getString(R.string.insert_elm_key_heading), getResources().getString(R.string.insert_elm_key), SAConstants.OK);
    } else {
        try {
            if (elmMgr == null) {
                elmMgr = EnterpriseLicenseManager.getInstance(this);
            }
            elmMgr.activateLicense(elmKey,this.getPackageName());
        } catch (Exception e) {
            // This exception may occur if the admin is not activated successfully.
            Log.e(TAG, "activateELM > Exception " + e);
       }
    }
}

 

please suggest me some solutions.

Thanks