Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad24e316 authored by Sumedh Sen's avatar Sumedh Sen
Browse files

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
Change-Id: If94ea6566fa3f3b461efaeffff7b074693003c9a
parent 722bcec9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ public class InstallStart extends Activity {
        mPackageManager = getPackageManager();
        mUserManager = getSystemService(UserManager.class);
        Intent intent = getIntent();
        String callingPackage = getCallingPackage();
        String callingPackage = getLaunchedFromPackage();
        String callingAttributionTag = null;

        final boolean isSessionInstall =