summaryrefslogtreecommitdiff
path: root/scripts/payload_info.py
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-01-09 22:38:57 -0800
committerSen Jiang <senj@google.com>2018-05-11 17:19:30 -0700
commit20c96723e97755d7480ba09d6d93f63166bf8481 (patch)
tree2a5fd5dcc0c3a229cab253569b8dd44236919f5f /scripts/payload_info.py
parent5520b2dd7d7784683dfccad4dec7d9a689341cf6 (diff)
Add a binder function verifyPayloadApplicable().
This CL adds the following function to the Android binder service. boolean verifyPayloadApplicable(in String metadataFilename); It verifies whether a payload (delegated by the payload metadta) can be applied to the current device. A caller can download only the payload metadata (from the start of the payload, past the last byte that contains the metadata signature - the actual size is parsable from the header). The metadata should be saved to a local file, and passed to update_engine to query whether the payload can be applied. This is useful for a caller to determine if a delta payload can be applied to the device, by downloading minimal data (payload metadata usually takes a few hundred KiB or less). On verification failures, the caller can take better strategies (e.g. switching to a full payload). Bug: 65283633 Test: Build and flash on walleye. Trigger a call to the Java API, then verify the logcat output. Change-Id: I2e8d21d1073baa0da6faf1292497d61f60e6742f (cherry picked from commit 07fbb1b7dff86d8b26bf976b72f2722fde66b603)
Diffstat (limited to 'scripts/payload_info.py')
0 files changed, 0 insertions, 0 deletions