Back to top

Activate your ISV License

Your app activates your Knox license to authenticate API access. For more, see Knox licenses.

Use a key-value pair to define your license

With Knox 3.8, Independent Software Vendors (ISVs) no longer need to activate a Knox license on company-owned devices. License activation is needed only on BYOD deployments.

To activate a Knox license in Knox 3.8, use Android content providers as follows:

Item Description
Uri content://com.samsung.android.knox.sdk/license
ContentValues Stores values that ContentResolver can process.
put Adds a key-value pair to a data set.
key key
value (your Knox license)

Use the URI to identify the Knox license setting, define the key-value pair, and use the put method to invoke the license:

Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/license");
ContentValues contentValues = new ContentValues();
contentValues.put("key", "YOUR_KNOX_LICENSE");
String selection = "key=?";
String[] selectionArgs = new String[] {""};
mContext.getContentResolver().update(uri, contentValues, selection, selectionArgs);

For more examples, see the Knox API class KnoxContract.License.

Is this page helpful?