[automerger skipped] Merge "Add back enforceReadPermission for getmetadata" into pi-dev am: 63369efdc7 -s ours am: a2165815e3 -s ours am: 0dfd3dd08e -s ours

am skip reason: Change-Id I4f04f08f76d039196c2c67bac80d4a46ebec87f2 with SHA-1 c94646177c is in history

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

Change-Id: Ib08e845cb5e58f5ba36e93dfaee869a4ca659356