diff options
author | HÃ¥kan Kvist <hakan.kvist@sony.com> | 2021-01-29 14:09:49 +0100 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2021-02-17 08:30:08 +0000 |
commit | b00089bc16462298d655382b445f9590c89d2da0 (patch) | |
tree | 3117b47d91c65b87bf702b19ad377fc0ba9f55bf /scripts/update_device.py | |
parent | 0618835556f95af038b7f19777b5aa2f96c79b52 (diff) |
Detect if update is already running when updating with file descriptor
If update_engine is triggered with file descriptor when an update is
already running, the running update will be aborted.
Update will be aborted due that existing file descriptor is reset.
Check if update_engine is already running before resetting/closing file
descriptor.
Test: manual, make multiple calls rapidly to java api
UpdateEngine.applyPayload with package in file descriptor
Bug: 178895193
Change-Id: I9c575870b435d2221787eb29d95279328e20fdbe
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions