Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea0fc122 authored by Iavor-Valentin Iftime's avatar Iavor-Valentin Iftime Committed by Android Build Coastguard Worker
Browse files

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. Fallback to default notification sound if permission check fails.
 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
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:2660997099937521ce6fee92b012efd0e182d20e
Merged-In: I1fcd2b4bbe9aad146775af8963957307afb995c1
Change-Id: I1fcd2b4bbe9aad146775af8963957307afb995c1
parent 5475e757
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment