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

Commit 17cd3fea authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Merge branch '6061-main-install_reason' into 'main'

App Lounge set correct reason for installing app

See merge request !205
parents 4b3e0580 0acf376c
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -179,6 +179,9 @@ class PkgManagerModule @Inject constructor(
        val params = SessionParams(mode).apply {
            setAppPackageName(packageName)
            setOriginatingUid(android.os.Process.myUid())
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
                setInstallReason(PackageManager.INSTALL_REASON_USER)
            }
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
                setRequireUserAction(SessionParams.USER_ACTION_NOT_REQUIRED)
            }