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

Merged-In: Ib363110fd2bdcf4d9974fde5f78df926940785bf
Change-Id: I7053ca59f9c7f1df5226418594109cfb8b609b1e
2 files changed