Replace getCallingActivity() with getLaunchedFromPackage() getLaunchedFromPackage() reports who launched this Activity or built PendingIntent used to launch it, whereas getCallingActivity() reports who will get result of Activity. Bug: 316891059 Test: robotest, manual (cherry picked from commit 901880a1d2e632179eb4ac708fc4bc18d9d50791) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ddc11bc03ab48e885f652b89df5f92ff283bcd4a) Merged-In: If97018c2741caef622f0596bbfeaa42ef1788b78 Change-Id: If97018c2741caef622f0596bbfeaa42ef1788b78