We are using VIPAndroid-3.0.6.jar in our android application and can see frequent crashes in the application.
LOCATION com.symc.mvip.deviceHygiene.DeviceHygieneManagerImpl.e
EXCEPTION com.symc.mvip.MVIPException
MESSAGE Device Hygiene Error
APP VERSION 6.4.0
Call stack-
com.symc.mvip.MVIPException: Device Hygiene Errorcom.symc.mvip.MVIPException: Device Hygiene Error at com.symc.mvip.deviceHygiene.DeviceHygieneManagerImpl.e()(undefined:49) at com.symc.mvip.deviceHygiene.DeviceHygieneManagerImpl.a()(undefined:93) at c.b.i.f.d.i()(SymantecDeviceHygiene.kt:5) at c.b.i.f.d.h()(SymantecDeviceHygiene.kt:7) at c.b.i.f.d.g()(SymantecDeviceHygiene.kt:7) at c.b.i.f.d.j()(SymantecDeviceHygiene.kt:5) at c.b.i.f.d.f()(SymantecDeviceHygiene.kt:5) at c.b.i.f.d.d()(SymantecDeviceHygiene.kt:1) at c.b.i.f.d$a.b()(SymantecDeviceHygiene.kt:9) at com.symc.mvip.deviceHygiene.j$1.run()(undefined:65) at java.lang.Thread.run()(Thread.java:919)
Release :VIPAndroid-3.0.6.jar
The exception can be because of the following reason.
DeviceHygieneManager manager = new DeviceHygieneManagerImpl(appContext,AccountID,deviceID);
manager.getDeviceHygiene(scan_type, listener);
If in implementation it is calling the getDeviceHygiene() API multiple times the first listener/callback will wait for the response, but the remaining listeners will throw exceptions as the previous scan is still running.
MVIPException is thrown only when multiple requests are done so solution is to catch this exception and that will address the issue.