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

Commit 70d5dd43 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Adding install reason when installing an apk

Since the installation involves a user visible UI, set the
appropriate reason. This ensures that the app icon is added
on the homescreen.

Test: Installed an apk using the files app
Bug: 65473379
Change-Id: I5032e31fc7615a63c2630687bc81e663f2286d59
parent c95add6d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ public class InstallInstalling extends AlertActivity {
                        UID_UNKNOWN);
                params.installerPackageName =
                        getIntent().getStringExtra(Intent.EXTRA_INSTALLER_PACKAGE_NAME);
                params.installReason = PackageManager.INSTALL_REASON_USER;

                File file = new File(mPackageURI.getPath());
                try {