Migration Guide to Version 1.7.x
View product
develop
Malwarelytics for Android version 1.7.x introduces:
- a new API for observing identity value changes.
Summary of API Changes
| Affected APIs | API Change |
|---|---|
AppProtectionIdentityObserver |
Class addition |
AppProtection.setIdentityObserver(AppProtectionIdentityObserver, Boolean) |
Method addition |
AppProtection.clearIdentityObserver() |
Method addition |
Identity Observer
A new API allows observing changes to the identity values (avUserId, clientAppDeviceId, clientAppUserId) managed by AppProtection.
AppProtection.getInstance().setIdentityObserver(object : AppProtectionIdentityObserver {
override fun onIdentityChanged(avUserId: String?, clientAppDeviceId: String?, clientAppUserId: String?) {
// handle identity change
}
}, triggerOnSet = true)
// later, when no longer needed
AppProtection.getInstance().clearIdentityObserver()
Only one identity observer is supported at a time; registering a new observer via setIdentityObserver() replaces the previously registered one.
Read Next
Last updated on Aug 04, 2026 (11:25)
View product