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

Commit eb8f4061 authored by Yuri Lin's avatar Yuri Lin
Browse files

Return copies of notification channels and groups instead of the cached entities.

This fixes an issue where callers could in theory modify the returned object from getNotificationChannel or getNotificationChannelGroup and as a result modify the cache.

Also modifies NotificationChannelGroup.clone() to actually return a deep copy by also copying the list of channels and its contents.

Flag: android.app.nm_binder_perf_cache_channels
Bug: 381131846
Test: NotificationManagerTest, NotificationManagerServiceTest
Change-Id: I950695c8ff89924a998a0b79bfdbacfd27fbe4f0
parent 8c37fec1
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