Fix shell command vulnerability in WindowManagerService

Gated entry to onShellCommand with ROOT and SHELL UID checks.
This prevents untrusted applications from executing any shell commands inside WindowManagerService.

Bug: 527036176
Test: atest DisplayAreaTest
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:41251a751e8ae1b368f035d4a02d8b200071a38f
TAG=agy
CONV=bc7f0b61-210d-4e33-aee5-6e0d2e8edb95
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:f5a1c95d0084b37c04bf1d53db8fa881403b94a1
Merged-In: Ic3fab3ddbb131aeb086fb05d4858ecb6f3173960
Change-Id: Ic3fab3ddbb131aeb086fb05d4858ecb6f3173960
2 files changed