Merge "Revert "[RFPM03] Check permission by uid."" am: 50bb631f03

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404654

Change-Id: I51b37f8e717123a2725ade859d5b9dcff19ef484