diff options
| author | 2019-01-25 04:07:07 +0000 | |
|---|---|---|
| committer | 2019-01-25 04:07:07 +0000 | |
| commit | eeb75cd2bb8dcc4d7adc8db905ec87e0b937a9bf (patch) | |
| tree | 6a71048d4d0c714535bf2128187694f6cf7019db | |
| parent | 47904eeaad4a892b52418d2c4c8ed7e7470df568 (diff) | |
| parent | 8366c71ce80cce34fd3839e679371b1c9560a5c9 (diff) | |
Merge "rework BinaryPushStateChanged atom"
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 8fb01b4a17c7..d6b4737f5bbd 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -2492,24 +2492,32 @@ message PhenotypeFlagStateChanged { /* * Logs when a binary push state changes. - * Logged in Play store + * Logged by the installer via public api. */ message BinaryPushStateChanged { - // Binary package name. - optional string binary_name = 1; - // Version code. - optional int64 version = 2; - // State + // Name of the train. + optional string train_name = 1; + // Version code for a "train" of packages that need to be installed atomically + optional int64 train_version_code = 2; + // After installation of this package, device requires a restart. + optional bool requires_staging = 3; + // Rollback should be enabled for this install. + optional bool rollback_enabled = 4; + // Requires low latency monitoring if possible. + optional bool requires_low_latency_monitor = 5; + enum State { - STATE_UNKNOWN = 0; - DOWNLOAD_START = 1; - DOWNLOAD_DONE = 2; - INSTALL_START = 3; - INSTALL_DONE = 4; - REBOOT_START = 5; - REBOOT_DONE = 6; + UNKNOWN = 0; + INSTALL_REQUESTED = 1; + INSTALL_STARTED = 2; + INSTALL_STAGED_NOT_READY = 3; + INSTALL_STAGED_READY = 4; + INSTALL_SUCCESS = 5; + INSTALL_FAILURE = 6; + INSTALL_CANCELLED = 7; + INSTALLER_ROLLBACK_REQUESTED = 8; } - optional State state = 3; + optional State state = 6; } /** Represents USB port overheat event. */ |