Track RulesManagerService frameworks/base changes
Required to support RulesManagerService changes in
frameworks/base.
Bug: 119293618
Bug: 113373927
Test: See related frameworks/base/ change.
Change-Id: I92174b839d3ee940bdc05296806575b2fae3cf86
diff --git a/src/main/com/android/timezone/updater/RulesCheckReceiver.java b/src/main/com/android/timezone/updater/RulesCheckReceiver.java
index 003b2e4..f40fb00 100644
--- a/src/main/com/android/timezone/updater/RulesCheckReceiver.java
+++ b/src/main/com/android/timezone/updater/RulesCheckReceiver.java
@@ -163,7 +163,7 @@
// is installed then the system will treat this as a no-op, and if something is installed
// this will stage an uninstall.
// We could install the distro from an app contained in the system image but we assume it's
- // going to contain the same time zone data as in /system and would be a no op.
+ // going to contain the same time zone data as the base version and would be a no op.
ApplicationInfo applicationInfo = providerInfo.applicationInfo;
// isPrivilegedApp() => initial install directory for app /system/priv-app (required)
@@ -216,8 +216,8 @@
// Decide whether to proceed with the install.
RulesState rulesState = mRulesManager.getRulesState();
if (!rulesState.isDistroFormatVersionSupported(distroFormatVersion)
- || rulesState.isSystemVersionNewerThan(distroRulesVersion)) {
- Log.d(TAG, "Candidate distro is not supported or is not better than system version.");
+ || rulesState.isBaseVersionNewerThan(distroRulesVersion)) {
+ Log.d(TAG, "Candidate distro is not supported or is not better than base version.");
// Nothing to do.
handleCheckComplete(checkToken, true /* success */);
return;