- 18 Oct 2024
- 1 Minute à lire
- SombreLumière
Activity Guard
- Mis à jour le 18 Oct 2024
- 1 Minute à lire
- SombreLumière
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.