Get calling package name using a reliable API

getCallingPackage() is unreliable due to reasons listed here:
go/getcallingpackage-misuse. Replace it with getLaunchedFromPackage

Test: Manual. Install an APK and ensure app is installed
Bug: 364604008
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1ab193cb57c22605e6cffb52ba1b222d8a2637c5)
Merged-In: If94ea6566fa3f3b461efaeffff7b074693003c9a
Change-Id: If94ea6566fa3f3b461efaeffff7b074693003c9a
1 file changed