Aaba aabasoft
Jun 19, 2019
6:35 am

Admin does not have android.permission.sec.MDM_HW_CONTROL OR com.samsung.android.knox.permission.KNOX_HW_CONTROL

I'm just started with Knox SDK i'm using following  tutorial
https://seap.samsung.com/sample-app/get-started-knox-sdk 
And app is running ok upto licence successfully activate
after i click on toogle camera i get an error java.lang.SecurityException: Admin  does not have android.permission.sec.MDM_HW_CONTROL OR com.samsung.android.knox.permission.KNOX_HW_CONTROL
In the manifest file i added below pwermissions and still getting the error

<uses-permission android:name="com.samsung.android.knox.permission.KNOX_HW_CONTROL" />
<uses-permission android:name="android.permission.sec.MDM_HW_CONTROL" />

I'm using KPE Development Limited key
which don't have this permission

com.samsung.android.knox.permission.KNOX_HW_CONTROL

 

Mikayla N.Samsung SEAP Moderator
Jun 19, 2019
4:49 pm

Hi Aaba aabasoft,

You will be unable to use this sample app with a development limited key, since it is missing the permissions required. You will need to upgrade to a partner account in order to generate a full development key to be granted the correct permissions for toggling the camera on and off.

Best regards,

Mikayla