Commit 8f00d3e
Verify URI permissions for EXTRA_REMOTE_INPUT_HISTORY_ITEMS.
Also added a step to serialize & deserialize the notification in the
test, to prevent exceptions about not being able to cast e.g.
Parcelable[] to RemoteInputHistoryItem[].
Test: atest NotificationManagerServiceTest & tested with POC from bug
Bug: 276729064
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4e19431a60300c6ea6c7f7dd64299916e4eb09bc)
Merged-In: I7053ca59f9c7f1df5226418594109cfb8b609b1e
Change-Id: I7053ca59f9c7f1df5226418594109cfb8b609b1e1 parent 69f018b commit 8f00d3e
2 files changed
Lines changed: 30 additions & 0 deletions
File tree
- core/java/android/app
- services/tests/uiservicestests/src/com/android/server/notification
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2861 | 2861 | | |
2862 | 2862 | | |
2863 | 2863 | | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
2864 | 2876 | | |
2865 | 2877 | | |
2866 | 2878 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
5415 | 5416 | | |
5416 | 5417 | | |
5417 | 5418 | | |
| 5419 | + | |
| 5420 | + | |
| 5421 | + | |
| 5422 | + | |
| 5423 | + | |
| 5424 | + | |
5418 | 5425 | | |
5419 | 5426 | | |
5420 | 5427 | | |
5421 | 5428 | | |
5422 | 5429 | | |
5423 | 5430 | | |
5424 | 5431 | | |
| 5432 | + | |
| 5433 | + | |
5425 | 5434 | | |
5426 | 5435 | | |
5427 | 5436 | | |
| |||
5430 | 5439 | | |
5431 | 5440 | | |
5432 | 5441 | | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
5433 | 5449 | | |
5434 | 5450 | | |
5435 | 5451 | | |
| |||
5439 | 5455 | | |
5440 | 5456 | | |
5441 | 5457 | | |
| 5458 | + | |
| 5459 | + | |
5442 | 5460 | | |
5443 | 5461 | | |
5444 | 5462 | | |
| |||
0 commit comments