Clear NEEDS_REBOOT preference on reboot

UpdateEngine doesn't send an initial notification to bound client
if the last status is not known, so clear the preference when we
detect that the device has been rebooted.

Change-Id: Ib15dff5fa8ac9ec07a68018a83683cc561fd3e85
This commit is contained in:
Gabriele M
2018-03-24 16:17:19 +01:00
parent fa5f24ac3f
commit c34c266513
4 changed files with 16 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ public final class Constants {
public static final String PREF_AUTO_UPDATES_CHECK = "auto_updates_check";
public static final String PREF_AUTO_DELETE_UPDATES = "auto_delete_updates";
public static final String PREF_MOBILE_DATA_WARNING = "pref_mobile_data_warning";
public static final String PREF_NEEDS_REBOOT = "needs_reboot";
public static final String UNCRYPT_FILE_EXT = ".uncrypt";