DRAFT: Add RECEIVE_SENSITIVE_NOTIFICATIONS permission
Summary
Add the (undocumented) RECEIVE_SENSITIVE_NOTIFICATIONS permission, to allow Android 15+ to show us sensitive notifications, such as those which contain one-time login codes.
This permission is only allowed for signature|role, meaning a manufacturer-signed system app, or one with the appropriate role. We would fit the COMPANION_DEVICE_COMPUTER role[1], except that role is defined to require to be installed in the system partition[2]
[1] https://source.android.com/docs/core/permissions/android-roles
Draft because my local build is currently not working. I will race CI vs. my machine to see who gets me an APK first.
Test Plan
Before:
Notifications which would contain sensitive information, are instead replaced as "Sensitive notification content hidden".
After:
Sensitive notifications are forwarded correctly, as before Android 15.