mozilla-b2g/gaia — pull request #9186 by mcirlanaru (2013-04-15 17:35:48+00:00)
Title: Bug 861152 - Don't prompt for SIM PIN entry if Settings app is opened

I'm not sure if this is the best approach to check if the app dispatching 'appwillopen' event is the Settings app, however, it seems quite unlikely that there will be any other app with 'telephony' or 'sms' permissions whose name is 'Settings' (in the manifest).