James Row
Sep 09, 2019
5:06 pm

How do you detect at run time if the S9 is a Tactical Edition?

Any tips or advice on how to detect if an S9 is a Tactical Edition?

Prior code that used to work well, seems to cause issues now.

public static boolean isStealthModeEnabled(Context context) {

    boolean retVal=false;
    DebugLog("Checking SAMSUNG S9 TE STEALTH MODE ");
    com.samsung.android.knox.EnterpriseDeviceManager edm = com.samsung.android.knox.EnterpriseDeviceManager.getInstance(context);
    com.samsung.android.knox.restriction.RestrictionPolicy restrictionPolicy = edm.getRestrictionPolicy();

    try {
        retVal = restrictionPolicy.isTacticalDeviceModeEnabled();
        DebugLog("STEALTH MODE Enabled = "+String.valueOf(retVal));
    } catch(SecurityException e) {
        DebugLog("SecurityException:" + e);
    } catch (Exception e) {
        DebugLog("Exception:" + e);
    }

    return retVal;
}

 

Updated: Sep 09, 2019 5:07 pm

Similar topics

No similar topics found.
Raunak B.Samsung SEAP Moderator
Sep 16, 2019
8:23 pm

Hi James,

 

I could not find the method that you mentioned above, isTacticalDeviceModeEnabled(), in the Knox SDK Documentation for any API Level.

What API level were you using when the code was working properly?

 

Thanks.

Comments

The isTacticalDeviceModeEnabled() is included in the S9 Tactical Edition SDK (which is a replacement of the KNOX SDK) for Federal Samsung S9 Tatical Edition Phones..   

...You may have to reach into your Federal Team at Samsung for assistance....

James RowSep 16, 2019 at 8:44 pm
James Row
Sep 16, 2019
8:43 pm

The isTacticalDeviceModeEnabled() is included in the S9 Tactical Edition SDK (which is a replacement of the KNOX SDK) for Federal Samsung S9 Tatical Edition Phones..   

...You may have to reach into your Federal Team at Samsung for assistance....