diff options
| author | 2025-03-18 16:08:38 -0400 | |
|---|---|---|
| committer | 2025-03-19 18:33:37 -0400 | |
| commit | eb8f40616374b77c5e9a9344c09ee93f88989a75 (patch) | |
| tree | 268a03b0389c9c9cbb2228bfbff6b5acd6d54d19 /libs/androidfw/BigBufferStream.cpp | |
| parent | 8c37fec12f237d5fa743e7e649332084c6d4e17e (diff) | |
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
Diffstat (limited to 'libs/androidfw/BigBufferStream.cpp')
0 files changed, 0 insertions, 0 deletions