[automerger skipped] Revert "Adds caller check to getAllPackages()" am: 8d900812b7 -s ours

am skip reason: skip tag Change-Id I77460ae19a4d41151577646441f11e2eddbb741a with SHA-1 f7efdb4222 is already in history. Skip tag was found from reverted change I77460ae19a4d41151577646441f11e2eddbb741a

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

Change-Id: I8336af14ef7a93f34f831f767004e05189869fb4