summaryrefslogtreecommitdiff
path: root/apexer/apexer.py
diff options
context:
space:
mode:
authorNikita Ioffe <ioffe@google.com>2019-02-18 22:39:27 +0000
committerNikita Ioffe <ioffe@google.com>2019-02-22 11:22:45 +0000
commit9ae986a08ffe74e1ea470fe3552f6e127cecd4dd (patch)
tree6feda383744b1c2b92a07b9a711ebaa35b7a4daa /apexer/apexer.py
parentb352705f576f13e47850c3e6d6e04ee919a426cf (diff)
apexd: implement session rollback
So far only session in SessionState::ACTIVATED can be rolled back. As apexd-level rollbacks only cover scenarios when RollbackManager is not yet present to issue a rollback request. Rollback can happen in the following situations: - Watchdog-initiated rollback (ro.init.updatable_crashing is true); - abortActiveSession() is called when session is in the "ACTIVATED" state; Rollback itself is as simple as: 1. cache permissions of /data/apex/active; 2. delete content of /data/apex/active; 3. rename /data/apex/backup to /data/apex/active; 4. restore permissions; Bug: 123622800 Test: apexservice_test Change-Id: I333698687f5ab06bca2d24e8f9a6fb043aea705e
Diffstat (limited to 'apexer/apexer.py')
0 files changed, 0 insertions, 0 deletions