I am having an issue activating my enterprise license after moving from Knox 2.8 to 3.2.  

On my Note 8 (8.1.0 & Knox 3.1),  I call 

enterpriseLicenseManager.activateLicense(licenseKey.key, mActiveAppPackageName);

and my app crashes with this error;

java.lang.RuntimeException: Unable to start receiver com.samsung.android.knox.IntentConverterReceiver: java.lang.SecurityException: Permission Denial: not allowed to send broadcast com.samsung.android.knox.intent.action.KNOX_LICENSE_STATUS from pid=16045, uid=10200

I copied the IntentConverterReceiver code from https://seap.samsung.com/html-docs/android/Content/support-older-devices...

 

Thank you

Andre Erwanto
Jan 09, 2019
5:45 pm

Try this:

private void activateLicence() {
    KnoxEnterpriseLicenseManager KPEManager = KnoxEnterpriseLicenseManager.getInstance(this);
    try { KPEManager.activateLicense(Constants.LICENSE_KEY); } catch (Exception e) { }
}

Comments

I am still having the exact same crash.  I can wrap it in a try catch, but it would not send out the broadcast.  How does that help?

George MableyJan 09, 2019 at 7:35 pm

I am still having the exact same crash.  I can wrap it in a try catch, but it would not send out the broadcast.  How does that help?

George MableyJan 09, 2019 at 7:35 pm