public class SystemComponentLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
SystemComponentLoader() |
Modifier and Type | Method and Description |
---|---|
static void |
disableEncryptionProvider(android.app.Activity activity)
Unregister the registered encryption provider and replace it with the generic unencrypted
ATAKFileIOProvider.
|
static AbstractSystemComponent[] |
getComponents()
Returns the list of abstract components in order of importance.
|
static java.lang.String |
getCrashLogInfo()
Get crash log information for better trouble shooting as an entry in a larger json file.
|
static java.lang.String |
getEncryptionComponentName()
Returns true if a custom encryption module is installed.
|
static EncryptionProvider |
getEncryptionProvider()
Deprecated.
|
static java.lang.String |
getFlavorAPI(android.content.Context context)
Obtain the flavor API.
|
static FlavorProvider |
getFlavorProvider()
Obtain a flavor provider if it is installed.
|
static void |
initializeEncryption(android.app.Activity activity)
Attempt to load an encryption system component.
|
static void |
initializeFlavor(android.content.Context context)
Attempt to load a flavor system component
|
static void |
initializeRaptorApi(android.content.Context context)
Attempt to load the RaptorApi system component.
|
static void |
notify(AbstractSystemComponent.SystemState state)
Allow for system level plugins to be notified of changes in the state of the application
PAUSE, RESUME and when it is being shut down (DESTROYED).
|
static void |
securityCheck()
Throws a Security Exception if the method is called with a stacktrace that does not include
|
public static final java.lang.String TAG
public static void initializeFlavor(android.content.Context context)
context
- the system context used to load the flavor componentpublic static void initializeEncryption(android.app.Activity activity)
activity
- the activity used to load the encryption component.public static void initializeRaptorApi(android.content.Context context)
context
- The context used to load the system componentpublic static void notify(AbstractSystemComponent.SystemState state)
public static void securityCheck()
public static FlavorProvider getFlavorProvider()
@Deprecated public static EncryptionProvider getEncryptionProvider()
public static AbstractSystemComponent[] getComponents()
public static void disableEncryptionProvider(android.app.Activity activity)
activity
- the ATAKApplication to call notifyEncryption changed on.public static java.lang.String getFlavorAPI(android.content.Context context)
public static java.lang.String getEncryptionComponentName()
public static java.lang.String getCrashLogInfo()