What is the 'Notification Listener Service' in Android, and what is the PRIMARY security risk of granting this permission to a third-party app?
- A.BIND_NOTIFICATION_LISTENER_SERVICE allows the holder to read, dismiss, and interact with all notifications system-wide; a malicious app with this permission can intercept 2FA OTP codes sent via notification from banking and authenticator apps
- B.A Notification Listener Service receives notifications only from apps sharing the listener's signing certificate; the platform filters every other posting app out of the callback stream at bind time, and an OTP posted by an unrelated banking app never reaches a third-party listener
- C.Notification listener services read the title, the subtext, and the posting package of each notification, never the body text where an OTP code appears; the extras bundle is stripped by NotificationManagerService before the callback fires, and the primary risk is metadata leakage