Check sound Uri permission when creating a notification channel

 Verify that the calling app has the right permissions to read/grant the sound Uri
 for a channel it creates.
 Previously, Uri permissions would only be checked by NotificationRecord when a notification was posted.

Flag: EXEMPT security fix

Test: atest PreferencesHelperTest
Test: atest NotificationManagerServiceTest
Bug: 337775777
(cherry picked from commit 94fc92cf20b897f016c3a9718edf40818de4a11b)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4a5ab5249a74a49ef6e76c3c88e9766ccec01713)
Merged-In: If5a6c80e3bd665a9e67655a230e43d704422082b
Change-Id: If5a6c80e3bd665a9e67655a230e43d704422082b
7 files changed