DO NOT MERGE: Decode the input of both setStream and setResource calls first
The size of the input of both setStream and setResource may very big
that system server got oom while handling it, so we try to decode it
first before copying it to the wallpaper path, if the decoding fails, we
treat the input as an invalid input.
Test: Manually set wallpaper, no PDoS observed.
(cherry picked from commit 51b874f628dc45d99d10ce84694277e33a736894)
1 file changed