- 26 Nov 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Activity Guard
- Updated on 26 Nov 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
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.