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

Commit de63603e authored by Song Chun Fan's avatar Song Chun Fan Committed by Android (Google) Code Review
Browse files

Merge "[pm] use actual scanning time as firstInstallTime for preload apps" into main

parents eb4de313 cbd2f357
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -153,3 +153,11 @@ flag {
    bug: "291135724"
    is_fixed_read_only: true
}

flag {
    name: "fix_system_apps_first_install_time"
    namespace: "package_manager_service"
    description: "Feature flag to fix the first-install timestamps for system apps."
    bug: "321258605"
    is_fixed_read_only: true
}
+3 −1
Original line number Diff line number Diff line
@@ -4217,8 +4217,10 @@ final class InstallPackageHelper {
            }
        }

        final long firstInstallTime = Flags.fixSystemAppsFirstInstallTime()
                ? System.currentTimeMillis() : 0;
        final ScanResult scanResult = scanPackageNewLI(parsedPackage, parseFlags,
                scanFlags | SCAN_UPDATE_SIGNATURE, 0 /* currentTime */, user, null);
                scanFlags | SCAN_UPDATE_SIGNATURE, firstInstallTime, user, null);
        return new Pair<>(scanResult, shouldHideSystemApp);
    }