northbridgesecure device
Jun 07, 2018
5:49 am

java.lang.SecurityException: Admin does not have com.samsung.android.knox.permission.KNOX_CUSTOM_DEX

I'm trying to set a new logo for Dex. I get this exception 

java.lang.SecurityException: Admin  does not have com.samsung.android.knox.permission.KNOX_CUSTOM_DEX

I'm trying to use the same example as in  https://seap.samsung.com/sample-app/samsung-dex-mode#

This example gives an option to change logo. But the permission was missing, i have added it in the manifest file. 

But still error occurs. License activation was successful. 

Any help would be greatly appreciated. 

Cheers,

Jenna Slomowitz
Jun 07, 2018
6:24 pm

Hello,

Are you using a KLM key or an SKL key? Are you getting the same error when using the sample app?

Kind regards,

Jenna

northbridgesecure device
Jun 08, 2018
5:10 am

Hello 

I'm using the SKL key. Yes the error is in sample app. 

Sample app doesn't include the permission "com.samsung.android.knox.permission.KNOX_CUSTOM_DEX". 

From the documents I read to change logo, this permission is to be included.

I modified sample app, by adding this permission. Still when I try to change logo, I get permission error.

Cheers.

 

Jenna Slomowitz
Jun 28, 2018
8:55 pm

Hello,

I've just tested the Dex sample app and everything seems to be working as intended.

Your issue may be related to activating an incorrect license key.

The app requires a Samsung Knox License (SKL) key. These licenses are of the format "KLM06-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX". You can generate this license from: https://seap.samsung.com/license-keys/create under the "Knox SDK" section. Currently the "com.samsung.android.knox.permission.KNOX_CUSTOM_DEX" permission can only be granted from a development SKL key.

Please let us know if you've activated a development SKL key (which start with KLM06) and are still seeing the issue.

Regards,

Jenna

Lanie Mendoza
Jul 24, 2019
6:53 pm

Post Deleted

Our content monitors have determined that this post violated our terms of service.

Please ensure your posts comply with our forum guidelines. We are committed to providing helpful and professional information in this space.

Thank you,

The SEAP team

Deleted Jul 24, 2019 11:26 pm