Class Overview
This class provides APIs to control KnoxZt service.
Starting and stopping KnoxZt service as well as (Un)registering listener and notifying factor
score change.
Summary
Nested Classes |
@interface |
ConfigurationManager.KnoxZtFeature |
Knox zero trust feature definition value. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
String
FEATURE_SECURE_LOG
Since: API level 38
Constant Value:
"secureLog"
public
static
final
int
RESULT_CODE_FAIL_FEATURE_UNAVAILABLE
Since: API level 38
Result code of Fail due to feature is not available (i.e feature is disabled state).
Constant Value:
4
(0x00000004)
public
static
final
int
RESULT_CODE_FAIL_PERMISSION_ERROR
Since: API level 38
Result code of Fail due to permission error.
Constant Value:
3
(0x00000003)
public
static
final
int
RESULT_CODE_FAIL_SERVICE_UNAVAILABLE
Since: API level 38
Result code of Fail due to service is not available.
Constant Value:
1
(0x00000001)
public
static
final
int
RESULT_CODE_FAIL_WRONG_ARGUMENT
Since: API level 38
Result code of Fail due to wrong argument.
Constant Value:
2
(0x00000002)
public
static
final
int
RESULT_CODE_SUCCESS
Since: API level 38
Constant Value:
0
(0x00000000)
Public Constructors
public
ConfigurationManager
()
Public Methods
public
String
configFeature
(String feature, String configs)
Parameters
feature
| Feature name |
configs
| Json formatted string that contains contents of configuration.
It consists of json form with SecureLogConfig as key value.
For example, {"enableSignal":["ACCESSIBILITY_EVENT","VIDEO_CAPTURE_PERMISSION"],"pushLevel":"low","configSignal":{"phishing":{"confidenceScore":"Standard"}}} |
Returns
- Json formatted string consisting of result code and unsupported signals.
For example, {"resultCode":0,"unsupportedSignals":[{"SignalName":"PREVENT_APP_REMOVAL_CAPABILITY","status":-99},{"SignalName":"ACCESS_CALL_LOG_PERMISSION","status":-4}]}
Unsupported signals error code defined in SecureLogConstants
Permission
The use of this API requires the caller to have the
"com.samsung.android.knox.permission.KNOX_ZT_SECURITY_LOG_INTERNAL" permission which has a protection level of signature. |
Usage
final String feature = ConfigurationManager.FEATURE_SECURE_LOG;
final String configs = "{\"enableSignal\":[\"ACCESSIBILITY_EVENT\",\"VIDEO_CAPTURE_PERMISSION\"],\"pushLevel\":\"low\",\"configSignal\":{\"phishing\":{\"confidenceScore\":\"Standard\"}}}"
final String result = ConfigurationManager.getInstance(getApplicationContext()).configFeature(feature, configs);
|
public
int
disableFeature
(String feature)
Permission
The use of this API requires the caller to have the
"com.samsung.android.knox.permission.KNOX_ZT_SECURITY_LOG_INTERNAL" permission which has a protection
level of signature. |
public
int
enableFeature
(String feature)
Permission
The use of this API requires the caller to have the
"com.samsung.android.knox.permission.KNOX_ZT_SECURITY_LOG_INTERNAL" permission which has a protection
level of signature. |
public
String
getConfiguration
(String feature)
Get configuration of feature
Returns
- Json formatted string consisting of result code and configurations
For example, {"resultCode":0,"pushLevel":"low","enableSignal":["ACCESSIBILITY_EVENT","ACCESS_CALL_LOG_PERMISSION"],"configSignal":{"phishing":{"confidenceScore":"Standard"}}}
Permission
The use of this API requires the caller to have the
"com.samsung.android.knox.permission.KNOX_ZT_SECURITY_LOG_INTERNAL" permission which has a protection level of signature. |