Introduction
Welcome to Mobile Application Shielding for Android 9.0.1! This release of Mobile Application Shielding includes a major update to OneSpan Code Obfuscation that addresses an important security vulnerability while adding other OneSpan Code Obfuscation feature improvements and configuration changes. Version 9.0.1 also improves core App Shielding features like emulated input and trusted keyboard detection.
It also contains a compatibility release (App Shielding for Android 9.0.1-SDKcompat) to support compatibility with third party SDKs (e.g., payment SDKs). Except for the compatibility feature, there are no differences between App Shielding for Android 9.0.1-SDKcompat and App Shielding for Android 9.0.1. Thus, no separate set of documents has been provided for the compat release.
For more information about new features and fixed defects, refer to the respective sections in this article. For information about configuring and using Mobile Application Shielding, see the Mobile Application Shielding Integration Guide.
Upgrade Strategy
Version 9.0.1 contains some breaking changes in OneSpan Code Obfuscation (see also Changes in Code Obfuscation) and important security fixes. When you upgrade to this version, we recommend to not changing back again to versions 9.0.0 and below or version 9.1.1 to maintain predictable stability.
Changing from version 9.1.1 to version 9.0.1 will lead to a rollback of any features introduced in version 9.1.1.
Supported versions
App Shielding
Over the next months, support for a number of Mobile Application Shielding versions will expire on the OneSpan Mobile Portal. For more information, see Unsupported versions of Mobile Application Shielding Online.
Android
App Shielding version 9.0.1 was successfully tested with Android 17.
Android 5.0 (API level 21) – Android 17 (API level 37).
Shielding Tool:
Windows 10: 64-bit Java 17
Mac OSX (10.9+)
Ubuntu Linux 22.04 LTS or 24.04 LTS
Android platform updates
The Android minimum supported version is 5.0 (API level 21). This version of App Shielding supports Android 17.
If you want your protected app to run on Android 15 or later, you must upgrade to App Shielding 6.6.0 or later.
Beginning with Android 15, Android supports devices that are configured to use a page size of 16 KB (i.e., 16 KB devices). App Shielding has been updated to work on these 16 KB devices. However, if your app uses any native libraries, you must ensure that these libraries are ready for 16 KB page sizes. For more information, refer to the Android Developer documentation.
Changes and Deprecations
[Applicable to Premium Features only] Changes in OneSpan Code Obfuscation
For OneSpan Code Obfuscation, the following changes apply:
The
strippingconfig object is now calleddebugStripping.The
sectionHeadersandsectionRulesoptions are removed from Debug Stripping and are now part of their own configuration object calledsectionHeaderStripping.The top-level
checksumconfiguration, which was deprecated in an earlier version of OneSpan Code Obfuscation, is removed completely.checksummust now be specified as a child object undercontrolFlow.The top-level
excludeandruntime_logsoptions are removed.The Section Encryption config options
minimumRangeandexcludeRangesare removed.The Section Encryption
sectionRulesoption is now optional and can be omitted from configurations.The
eventoption for Integrity Checking has changed from a string to an array of strings/rules. For example,"event": "_integrity_checked"is now"event": [ "_integrity_checked" ].
Potentially breaking changes
As part of the changes for OneSpan Code Obfuscation, the syntax for configuration filter rules is now better defined.
This introduces the following possible breaking changes:
Inclusion rules must be specified first and exclusion rules specified last. For example:
[ "debug_*", "!*Test" ]. Specifying these out of order (e.g.,[ "!*Test", "debug_*" ]) is no longer valid.To specify none, or no matches, use an empty array (i.e.,
[]). The previous syntax,[ "!*" ], is no longer valid.
New features and other updates
[Applicable to Premium Features only] Jigsaw engine upgrade
For OneSpan Code Obfuscation, the Jigsaw engine has been upgraded to version 2.1.1, which adds protection against memory dump attacks when both Section Encryption and Control Flow Abstraction are enabled.
Fixes and other changes
SHAND-5569: Improved emulated input detection
Description: The emulated input detection and blocking to account for React Native modals has been improved.
SHAND-5817: Rooting method detection
Description: An issue with rooting detection codes (used in callbacks and Exit on Rooting URL) caused the rooting method to be incorrectly reported as none.
Status: This issue has been fixed.
SHAND-5927: Incorrect Kotlin dependency
Description: An incorrect Kotlin dependency in the ShieldSDK-activity-guard Maven dependency resulted in a Module being compiled with an incompatible version of Kotlin error.
Status: This issue has been fixed.
SHAND-6072: Improved trusted keyboard check
Description: Improved trusted keyboard checking to continue trusting a system installed keyboard after it has been updated.
INT-591: Unexpected termination with push-binding
Description: When the Shielding Tool generated push-binding fields with incorrect modifiers, the app terminated unexpectedly. This affected apps with a targetSdk of 37.
Status: This issue has been fixed.
[Applicable to Premium Features only] For OneSpan Code Obfuscation, the Jigsaw engine has been upgraded to version 2.1.1. This includes the following improvements:
Improved the obfuscation of the decryption logic for Section Encryption.
Improved the security of Control Flow Abstraction for ARM by making it harder to exfiltrate its data.
Removed internal temporary file paths from the Shielding Tool log output.
Failure to generate a protection report no longer halts the protection process.
Fixed an issue with Section Encryption not preserving utilized registers.
Fixed a potential runtime issue that could occur with Section Encryption executing stale instructions on arm64 binaries.
Fixed a protection settings failure when
integrityCheckwas specified without arulesarray.Fixed an overlapping blocks disassembly failure for arm32 and x86_64 Flutter binaries.
Fixed a non-string panic payload error that could appear when an internal failure occurred during protection.
Other Notices
Virtual space apps restricted
Some virtual space apps use techniques similar to malware (e.g., native code hooking), which can trigger App Shielding security protections. As the App Shielding detection capabilities improve, additional virtual space apps might be restricted.
Known limitations
The limitations described here have not yet been solved for the current Mobile Application Shielding version. Possible workarounds are described where available.
Unsupported Android 17 feature
App Shielding supports Android 17 but not its new post-quantum cryptography features, including ML-DSA keystore keys and v3.2 APK signature schemes. Using these features will result in a repackaging detection. Use classical keys and existing signature schemes for now. Support for these features will be added in a future release of a future release of App Shielding for Android.
Exit on emulator URL not triggered reliably
For some configuration options, App Shielding can launch a web page that displays an explanation if a given condition is met and the application is shut down. To launch such a web page, the URL is added to the configuration. For the Exit on emulator URL option, i.e. to launch a web page when the application is shut down because the app is run in an emulator, the URL is not being reliably triggered. There is no guarantee that the web page is launched even though the application may be running in an emulator. We therefore recommended to not using this option.
For general information about launching a web page with an explanation, see Exit URL launching on Android.
Build failures for Java/Kotlin sample
To resolve build failures of the Java/Kotlin sample app, edit the CMakeLists.txt file located in the cpp folder. Replace target_compile_features(native-lib PRIVATE cxx_std_17) with the following two lines:
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)With this change, the sample should build successfully.
Methods to block screenshots also block screen mirroring tools
Description: The methods used to block screenshots also block some screen mirroring tools. However, the scrcpy tool is only blocked on Android 12 and later. On Android 15, this option also blocks partial screen sharing.
Bypassing App Shielding protection in Cordova-based applications
Description: Because of the nature of pure Javascript frameworks such as Cordova, the effectiveness of the push and pull bindings of App Shielding is affected. As a result, it might be possible to extract all Javascript files from a shielded application and build a new Cordova-based application with the extracted Javascript files. That new application will behave identical to the original one but has two major differences:
It is no longer protected with App Shielding.
It is signed with a different developer certificate.
Because this new application is signed with a different developer certificate, it is recognized by the stores or every device as a completely different and new application in comparison to the original shielded application. It cannot be avoided that a new application like this is built that looks and behaves similar to the original application.
OneSpan risk assessment: Threat actors will need to make heavy use of targeted phishing attacks to convince users of the original application to install the rogue version. For attackers, however, it is much easier to use existing malware frameworks that mimic hundreds of login screens in one single piece of malware. In addition, the existence of any rogue versions of the application does not affect the security features of the original shielded application. Everyone who is using the genuine, shielded application is protected with all the features of App Shielding, including all security measures of the original application. Therefore, we consider this issue to be of low risk.
NFC payment failure in shielded apps with Thales Gemalto SDK
Description: When using the shielded version of the app, NFC payments fail. This is caused by a compatibility issue with the Thales Gemalto TSH Pay SDK which also provides debugger detection. The SDK incorrectly flags the App Shielding debugger detection as a native debugger.
Solution: Allowlisting. For implementations integrating both the Thales Gemalto SDK and App Shielding, debuggers coming from the SDK's own debugging processes and sub-processes should be added to an allowlist within the Thales Gemalto SDK.
It is essential to not only add the processes to the allowlist but also their sub-processes. Otherwise, the SDK will still handle App Shielding as a native debugger!
Magisk and root hider tools on new Android versions
Root hider tools such as Magisk Hide are designed to hide the fact that the device is compromised (rooted). Android has been increasingly restricted in what can be inspected and observed of the system from inside an app. This means that a rooted system with a root hider tool can be hard to detect due to missing privileges.
On Android 8+, App Shielding may not able to reliably detect a rooted device with Magisk Hide depending on the version of these tools.