Samsung.Developer Qualys
Feb 12, 2019
2:26 pm

Getting SecurityException: Admin doesn't own container 12, while calling any Knox API for AFW device.



We have tried to enroll Samsung J7Pro(OSV8.1.0 and Knox v3.2) device with Android for work (Profile Owner).

we have followed tutorial (

steps we have followed.

1 created managed profile.

2 once managed profile created, we have activated KLM Standard license. 

3 after activating license, we have tried to install application sliently (ApplicationPolicy#installApplication(String apkFilePath, boolean installOnSDCard))

 but we are getting below exception.


SecurityException: Admin doesn't own container 12 ContextInfo.uid 1210204

    java.lang.SecurityException: Admin doesn't own container 12 ContextInfo.uid 1210204


    Admin doesn't own container 12 ContextInfo.uid 1210204








also we want to know what is minimum supported knox version and android os version for enrolling samsung device in AFW.

can you please look into the issue?



Mikayla N.Samsung SEAP Moderator
Feb 12, 2019
10:13 pm


The issue you are experiencing is due to missing permissions from your Android manifest file. Unfortunately, these permissions are missing from our tutorial. We are in the process of updating our tutorial and those changes should be made shortly. Please add the following lines to your manifest file. 

<uses-permission android:name="" />
<uses-permission android:name="" />

As well, you will be unable to use any Knox APIs from within an Android for Work Profile until your workspace has been upgraded to a Knox Container, which is the process this tutorial is guiding you through. You will need to activate a Premium license to upgrade your profile to a container. Please make these changes and confirm with me if this solves your issues.



Updated: Feb 12, 2019 at 10:16 pm