androidversionsamsung-knox

Get Samsung KNOX api version on old devices like Jelly Bean


I have a Samsung Galaxy Camera 2 with Android 4.3 Jelly Bean (it's about the same age as the Samsung Galaxy S3).

Their docs tells me, on Jelly Bean I can find KNOX Api level 5 - 10.

So, how do I find out which KNOX Api level I actually have?


Solution

  • Preferred method: Get API Level as int

    The documentation on EnterpriseDeviceManager.getAPILevel(); is wrong about the API level "Since: Knox API Level 24"!

    EnterpriseDeviceManager.getAPILevel(); does actually work on old devices like the Samsung Galaxy Camera NX with Android 4.2.2 (returns 7) and Samsung Galaxy Camera 2 (returns 9) when using the backward compatibility library of KNOX (Knox SDK Support Library for Old Namespace Translation)!

    Alternative method: Testing for methods

    That's how we ended up testing for the KNOX Api level on old devices.

    We looked for methods and classes in their documentation that only exist in certain API levels:

    enter image description here