Activity Guard
  • 18 Oct 2024
  • 1 Minute to read
  • Dark
    Light

Activity Guard

  • Dark
    Light

Article summary

App Shielding offers the option to protect applications from task hijacking. To enable this, you need to add the ShieldSDK-activity-guard.aar library as a dependency of the app.

This dependency, in combination with shielding the application through the OneSpan Customer Portal or OneSpan Mobile Portal, will inject a launcher activity into the app, replacing all existing activities. The injected activity is constructed so that it will always launch and cannot be hijacked. It then evaluates the state of all tasks belonging to the app, and restores or destroys them as appropriate.

Callbacks provide more information about the offending app when task hijacking is attempted. For more details, see Callbacks on Android.

For applications to use this option, android.permission.REORDER_TASKS must be declared in the AndroidManifest.xml file.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, our interactive help assistant