Mikayla Neufeld
Jul 29, 2019
4:30 pm

Hi Apu,

Could you please give me some additional information about your situation?

  • What type of license are you using? Are you able to successfully activate the license?
  • What device are you using?
  • What OS and Knox version is your device running?
  • Have you declared the correct permissions in your manifest file? The method powerOff() requires the permission KNOX_CUSTOM_SYSTEM, for example.
  • Are you receiving any kind of exceptions or error messages?

Best regards,


Apu Pavithran
Jul 29, 2019
4:47 pm

Here's what you've asked for:

1. KPE, and yes, we've activated the license.

2. Samsung Galaxy J7 (SM-J701F).

3. Android 9, Knox 3.3 (API Level 28).

4. Yes, we have declared the permissions in the manifest file.

5. See the exception below:

java.lang.SecurityException: Admin  does not have com.samsung.android.knox.permission.KNOX_CUSTOM_SYSTEM OR com.sec.enterprise.knox.permission.CUSTOM_SYSTEM
        at android.os.Parcel.createException(Parcel.java:1966)
        at android.os.Parcel.readException(Parcel.java:1934)
        at android.os.Parcel.readException(Parcel.java:1884)
        at com.samsung.android.knox.custom.IKnoxCustomManager$Stub$Proxy.powerOff(IKnoxCustomManager.java:7010)
        at com.samsung.android.knox.custom.SystemManager.powerOff(SystemManager.java:3001)

A similar issue was reported before, but there's no response so far.