Enforce caller provided package names to service

Service accepts package names from the manager side, but these package
names need to be validated to belong to the calling UID.

Audit IProfilingService for any other potential instances of processes
supplying incorrect information.

Bug: 425360742
Test: run profiling cts/mcts
Flag: EXEMPT: bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:87f9c22235634653a9eec65712c2e2c8d79c7470)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:aef103928d0380e0a4bb24e13768a844e9698413
Merged-In: I8a9a663776c7d4ea8bbb6ca789d805256625674c
Change-Id: I8a9a663776c7d4ea8bbb6ca789d805256625674c
1 file changed