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

Commit 8366c71c authored by Chenjie Yu's avatar Chenjie Yu
Browse files

rework BinaryPushStateChanged atom

Bug: 119685453
Test: will add gts
Change-Id: I60e83b2e0fcf63bab1ec695db90ed9f7a2846571
parent 697fc4ca
Loading
Loading
Loading
Loading
+22 −14
Original line number Diff line number Diff line
@@ -2486,24 +2486,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. */