- 09 Jan 2025
- 6 Minutes à lire
- SombreLumière
- PDF
Version 7.0.3 (January 2025)
- Mis à jour le 09 Jan 2025
- 6 Minutes à lire
- SombreLumière
- PDF
Introduction
Welcome to Mobile Application Shielding for Android 7.0.3!
The OneSpan Customer Portal only accepts connections via TLS 1.2 or later. Earlier versions are no longer supported because all versions of the TLS protocol prior to 1.2 have been deprecated.
This is a release of Mobile Application Shielding with issue fixes. For information about configuring and using Mobile Application Shielding, see Mobile Application Shielding Integration Guide.
To maintain protection against the latest mobile threats, ensure to update Mobile Application Shielding to the latest version!
Supported platform versions
App Shielding version 7.0.3 was successfully tested with Android 15.
Android 5.0 (API level 21) – Android 15 (API level 35).
Shielding Tool:
Windows 10: 64-bit Java 17
Mac OSX (10.9+)
Ubuntu Linux 20.04 LTS or 22.04 LTS
The App Shielding Gradle plugin version 2.0 and later is supported.
The App Shielding Gradle plugin 2.0 supports Android App Bundles and newer Android build versions.
The plugin and documentation can be downloaded from:
Android platform updates
The Android minimum supported version is 5.0 (API level 21). This version of App Shielding supports Android 15.
If you want your protected app to run on Android 15, 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.
As of March 1, 2024, App Shielding for Android version 4.3.11.78273 and earlier are no longer supported. For more information, refer to the OneSpan Mobile Portal or the OneSpan Customer Portal.
Deprecations
Platform minimum supported versions
Android 4.4 (API levels 19 and 20) are no longer supported by App Shielding. The new minimum supported version is Android Lollipop 5.0 (API level 21).
Android Native Development Kit (NDK)
Google has announced that Android Native Development Kit (NDK) (r26) will no longer support KitKat (API levels 19 and 20). The minimum version supported by the NDK for r26 will be Lollipop (API level 21).
App Shielding switches to NDK r26 after its release as LTS version.
Deprecated API: ShieldSDK-secure-edit-text
The ShieldSDK-secure-edit-text API has been marked as deprecated. It is no longer maintained and is considered obsolete. It will be removed in an upcoming release.
Fixes and other changes
SHAND-4533: Improved unblocking screen readers on slow devices
Some devices are rather slow on enabling accessibility services (e.g., Talkback). If a trusted screen reader is enabled while a protected application is running, and enabling that screen reader takes a long time, App Shielding failed to see the enabled trusted screen reader and thus did not unblock the application for screen reader access.
Status: The initial fix for this, introduced in App Shielding version 7.0.1, has been refined to address rare edge cases.
SHAND-4659: Improved emulated input detection
We enhanced the detection of emulated input with improved scoring algorithms for specific Huawei, Oppo, and Realme devices.
SHAND-4682: Fixed Shielding Tool parsing byte code
Newer Java/Kotlin compilers now compile some Java code into byte code instructions like invoke-XX/range {} with an empty register range, instead of using invoke-XX. This caused the Shielding Tool to exit with an error message like the following:
ERROR: Error: java.lang.RuntimeException: Unable to parse line 154 from classes.dex/com.example.Test: invoke-static/range {}, Lcom/invoke/TestCase;->aMethod()I
java.lang.Error: java.lang.RuntimeException: java.lang.RuntimeException: Unable to parse line 154 from classes.dex/com.example.Test: invoke-static/range {}, Lcom/invoke/TestCase;->aMethod()I
at ...
Status: This issue has been fixed.
Fixed ANR (Android Not Responding) issues and unexpected terminations
SHAND-4614: ANR observed with LeakCanary
LeakCanary is a memory leak detection library for Android. An issue in the LeakCanary tool triggers an ANR in the Application-Lifecycle-Listener's onPause method.
Status: This issue has been fixed. App Shielding was modified to move resource allocation to some other time, which both improves runtime performance and avoids the ANR with LeakCanary.
Fixed possible deadlock on calling JNIEnv functions
In some cases, a protected application observed a deadlock. The corresponding adb log showed that the deadlock happened while some JNIEnv functions were trying to acquire a lock. Two possible cases were identified and fixed:
(SHAND-4669): Fixed signal handling while calling JNIEnv::NewLocalRef() or JNIEnv::FindClass(). Calling FindClass() in particular might result in more complex Java byte code execution. That is, initializing the class if it was not yet initialized.
(SHAND-4707): Removed @FastNative from some of the native Java methods of App Shielding. The annotation might help to make the application faster, though its documentation has the following "deadlock warning":
> Deadlock Warning: As a rule of thumb, any native locks acquired in a
> @FastNative call ([...]) must be released before returning to managed
> code. Say some code does: fast_jni_call_to_grab_a_lock();
> `does_some_java_work();` fast_jni_call_to_release_a_lock(); This code
> can lead to deadlocks.
To avoid the risk of a deadlock, the @FastNative annotation was removed from some internal native Java methods of App Shielding.
Known limitations
The limitations described here have not yet been solved for the current Mobile Application Shielding version. Possible workarounds are described where available.
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 not 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 theThales 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.
Android App Bundles
The OneSpan Customer Portal support for Android App Bundles does not yet include instant-enabled app bundles.