fw/b: Use ro.build.version.incremental to signal OTA upgrades
Squash of:
Author: dhacker29 <dhackerdvm@gmail.com>
Date: Tue Nov 24 01:53:47 2015 -0500
Core: Use ro.build.date to signal mIsUpgrade
M: We use a static fingerprint that is only changed when a new OEM build is released, so
every flash shows Android is starting instead of upgrading. This will fix that.
N: even though we dont have the dexopt sceen on N, this is still needed to delete the
correct caches, and grant/deny specific runtime permissions like a true oem update
would do.
Updated for Nougat By: BeansTown106
Change-Id: I0e3ed5c8f0351e48944432ae6a0c5194ddeff1fa
Author: Sam Mortimer <sam@mortimer.me.uk>
Date: Fri Sep 28 13:45:00 2018 -0700
fw/b UserManagerService: Use ro.build.date to signal upgrades
*) We changed PackageManagerService to use Build.DATE instead of
Build.FINGERPRINT to detect upgrade. Do the same for
UserManagerService.
*) Affects generation of preboot intent and app data migration.
Change-Id: I56887b7ca842afdcf3cf84b27b4c04667cf43307
Author: Wang Han <416810799@qq.com>
Date: Sat Dec 29 23:33:20 2018 +0800
ShortcutService: Use ro.build.date to signal package scanning
* Affects system apps scanning.
Change-Id: I5f6d6647929f5b5ae7e820b18e95bf5ed2ec8d1c
Author: maxwen <max.weninger@gmail.com>
Date: Tue Nov 19 01:02:01 2019 +0100
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
Author: maxwen <max.weninger@gmail.com>
Date: Wed Oct 28 07:07:10 2020 -0400
One more Build.FINGERPRINT to Build.DATE change
Change-Id: I13dbf3d7f6587d3fcd6591cc0f861b34b6d5561c
Author: maxwen <max.weninger@gmail.com>
Date: Thu Sep 1 16:55:03 2022 +0200
base: fix pm cache directory invalidate on new builds
This was before in PackageManagerService.jave like
final String cacheName = FORCE_PACKAGE_PARSED_CACHE_ENABLED ? "debug"
: SystemProperties.digestOf(ro.build.version.incremental);
Now they switched to PackagePartitions.FINGERPRINT which broke
the invalidate of the cache for new builds
also add a missed usage of changed fingerprint in StorageEventHelper.java
Change-Id: I6cca07659a8e7a4f99ed58761dc727e0e5e20ef8
Change-Id: If0eb969ba509981f9209ffa37a949d9042ef4c2a
Loading
-
💬 @RokeJulianLockhartCan anyone explain, for a layman, why
VERSION.INCREMENTALis superior toFINGERPRINT? I see this atreview.calyxos.org/c/CalyxOS/platform_frameworks_base/+/42908, too. I ask perforum.fairphone.com/128742.Edited by Mr. Beedell, Roke Julian Lockhart (RJLB)
Please register or sign in to comment