I think it's not ideal to make SIM PIN dialog shows if current displaying app is irrelevant to telephony right?
So I suggest to check the permission here before showing.