James Shelburne
Feb 28, 2018
1:03 pm

CustomDeviceManager.getInstance() is returning null

Hi ,

In my andorid application, I have updated the legacy SDK's with the new KNOX SDK. Migration was successful and I was able to create a build.

But in some devices, CustomDeviceManager.getInstance() is returning null and in some devices, its working fine. So want to check if there is anything I can do to work in all devices?

Below is the error I am getting,

Caused by: java.lang.RuntimeException: Stub!
at com.samsung.android.knox.EnterpriseDeviceManager.getAPILevel(EnterpriseDeviceManager.java:31)

Thanks!

Samuel Goldwax
Feb 28, 2018
6:01 pm

Hi James,

Could you provide the devices that are returning null for this method (model, OS, and Knox version)?

Thanks,

Sam

Comments

It's Samsung TAB-E. Android version is 6.0 and its Knox version is 2.6

James ShelburneMar 01, 2018 at 7:11 am
Samuel Goldwax
Mar 01, 2018
6:15 pm

Hi James,

Is this the only method you've tried that's returning a stub? Are other methods using Customization permissions affected? Also are you successfully activating an SKL license before calling these methods?

Thanks,

Sam