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

Commit f5a96036 authored by maxwen's avatar maxwen Committed by Han Wang
Browse files

base: Use ro.build.date to clear cache dirs on update

instead of using ro.build.fingerprint we explictly need to use ro.build.date

Change-Id: Ib3e80e58eb8c9a21c108e9f5cd2dbdb7ada8e3a4
parent e7c1409f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3690,7 +3690,7 @@ public class PackageManagerService extends IPackageManager.Stub
        // identify cached items. In particular, changing the value of certain
        // identify cached items. In particular, changing the value of certain
        // feature flags should cause us to invalidate any caches.
        // feature flags should cause us to invalidate any caches.
        final String cacheName = SystemProperties.digestOf(
        final String cacheName = SystemProperties.digestOf(
                "ro.build.fingerprint",
                "ro.build.date",
                StorageManager.PROP_ISOLATED_STORAGE,
                StorageManager.PROP_ISOLATED_STORAGE,
                StorageManager.PROP_ISOLATED_STORAGE_SNAPSHOT);
                StorageManager.PROP_ISOLATED_STORAGE_SNAPSHOT);