For information how to integrate the SDK, see the Malware Detection SDK Integration Guide.
Deprecations
Android
As of this version, the following methods are marked as deprecated:
MalwareDetection.getInstance(Context, Uri, Uri)malwareDetection.scan()malwareDetection.getAppChanges()
MalwareDetection.getInstance(Context, Uri, Uri) has been deprecated in favor of sealed class initializations.
MalwareDetection.getInstance(
context = context,
appKeys = AppKeys.FromAssets("asset_name") // Or FromFile,
malwareList = MalwareList.FromAssets("malware_list") // Or FromFile, FromUrl
)malwareDetection.scan()(a throwing method) is deprecated in favor of a non-throwing method.
when (val result = malwareDetection.scanForMalware()) {
is ScanResult.Success -> result.data
is ScanResult.Failure -> result.error, result.exception
}malwareDetection.getAppChanges() (a throwing method) is deprecated in favor of a non-throwing method.
when (val result = malwareDetection.getInstalledAppChanges()) {
is AppChangesResult.Success -> result.data
is AppChangesResult.Failure -> result.error, result.exception
}New features and enhancements
All platforms
Malware list retrieval via remote URL
The malware detection list can now be retrieved via a remote web server with support for SSL pinning and proxy configurations.
MalwareDetection.getInstance(
...
malwareList = MalwareList.FromUrl("https://list.example.com", okHttpClient)
)Android
Improved analysis control
It is now possible to cancel app analysis without blocking future malware scans.
Local Maven repository
The SDK is now built and published as a local Maven repository, in addition to the single aar file used until now. With this, the product package now contains the technical documentation jar file and supports transitive dependencies in Android Studio.
Kotlin and Dokka updated
As of this version, the SDK now supports Kotlin version 2.2.21 and Dokka version 2.1.0.
Target API level increased to Android 16 (API 36)
The target version of the SDK has been increased to Android 16 with API level 36.
iOS
Minimum supported version increased to iOS 16
The minimum supported version of the SDK has been increased to iOS 16.
Supported platforms
The Malware Detection SDK can be used on a variety of devices and supports the following:
Android
Minimum Android 7 (API level 24)
Target Android 16 (API level 36) or later
Support for 16 KB page sizes
Beginning with Android 15, Android supports devices that are configured to use a page size of 16 KB (i.e., 16 KB devices). The SDK 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.
iOS
iOS 16 or later
Swift 5 or later
Xcode 16 or later
API reference documentation and sample applications
To learn more about the public APIs and their functions, exceptions, and error codes, refer to the technical documentation that is included in the product package for each SDK and each platform. In the product package, you can also find the sample applications provided for each platform to see examples of how the SDKs can be used.
These sample apps are intended only to demonstrate basic scenarios and SDK usage. They are not designed to be copied directly into production projects!