Activity Guard
  • 26 Nov 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Activity Guard

  • Dark
    Light
  • PDF

Article summary

App Shielding provides protection against task hijacking by adding the ShieldSDK activity guard.aar library as a dependency. This, combined with shielding through OneSpan portals, injects a launcher activity into the app to prevent hijacking. The injected activity manages app tasks, restoring or destroying them as needed. Callbacks offer details on any attempted hijacking. To implement this, android.permission.REORDER_TASKS must be declared in the AndroidManifest.xml file.

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