API
Variables
TalsecConfig
TalsecConfig
Specifies configuration for your app. See the table below for a detailed description of the attributes.
field | type | description | sample value |
---|---|---|---|
expectedPackageName | String | Package name of the app. |
|
expectedSigningCertificateHashBase64 | Array<String> | Certificate hashes of your app. You must get your expected signing certificate hashes in Base64 form. You can go through this manual to learn how to sign your app in more detail, including manual signing and using Google's Play app signing. |
|
watcherMail | String? | The value is automatically used as the target address for your security reports. Mail has a strict form |
|
supportedAlternativeStores | Array<String> | Package names of the alternative stores on which you are publishing the application. The Google Play Store and Huawei AppGallery, are included internally. (You can assign just |
|
isProd | Boolean? | Defaults to
|
|
Classes
public class ThreatListener
public class ThreatListener
Constructor
public ThreatListener(@NonNull ThreatDetected threatsCallback, @Nullable DeviceState deviceStateCallback)
Listener for the threats detected by freeRASP
Methods
public void registerListener(Context context)
Registers your reactions to detected threats with freeRASP.
public void unregisterListener(Context context)
Unregisters the reactions to detected threats.
public final class Talsec
Methods
public static void start(Context context, TalsecConfig config)
The method used to start freeRASP's functionality.
Interfaces
public interface ThreatDetected
public interface ThreatDetected
Methods:
void onRootDetected()
void onDebuggerDetected()
void onEmulatorDetected()
void onTamperDetected()
void onUntrustedInstallationSourceDetected()
void onHookDetected()
void onDeviceBindingDetected()
void onObfuscationIssuesDetected()
public interface DeviceState
public interface DeviceState
Methods:
void onUnlockedDeviceDetected()
void onHardwareBackedKeystoreNotAvailableDetected()
void onDeveloperModeDetected()
void onSystemVPNDetected()
Last updated