SIM PIN remaining attempt count may be wrong

To fix this on the Patchmanager side: is there a way to detect from an application that the SIM PIN dialog is active currently??