From 5bf9ad0eedd42119a54da93500cd03705013b7a7 Mon Sep 17 00:00:00 2001 From: lishutong Date: Sat, 31 Jul 2021 04:41:03 +0000 Subject: [PATCH] Add support for non-A/B OTA package in OTA_analysis. The non-A/B OTA package has a very different file system compared with an OTA package. However, our OTA_analysis tool is based on the update_metadata.proto. What we do here is try to convert the non-A/B OTA package information, into a standard update_metadata.proto formated manifest. The format and how the conversion works can be found in this document: https://docs.google.com/document/d/e/2PACX-1vRwMRodq4TCvTPEmlU6KL9vPSeFmEJjVXzq4PHhrB8tGy6oHFDJGCk3bIDA5Uv-4UEP0stLarBlhl2c/pub In this CL, most of the information is successfully parsed, except installation ops like stash, free, bsdiff, imgdiff, move. (anything related to stash is not yet implemented) Test: test by selecting a non-A/B OTA package. Change-Id: I298f238395478422daece47cedbaa52a976d9f4c --- .../ota_analysis/src/components/BasicInfo.vue | 9 +- .../src/components/OperationDetail.vue | 5 +- .../src/components/PartitionDetail.vue | 5 +- .../src/components/PayloadComposition.vue | 1 + .../src/components/PayloadDetail.vue | 4 +- tools/ota_analysis/src/services/payload.js | 34 +++- .../src/services/payload_composition.js | 6 +- .../src/services/payload_nonab.js | 145 ++++++++++++++++++ 8 files changed, 191 insertions(+), 18 deletions(-) create mode 100644 tools/ota_analysis/src/services/payload_nonab.js diff --git a/tools/ota_analysis/src/components/BasicInfo.vue b/tools/ota_analysis/src/components/BasicInfo.vue index 6c1e36816..bd751d218 100644 --- a/tools/ota_analysis/src/components/BasicInfo.vue +++ b/tools/ota_analysis/src/components/BasicInfo.vue @@ -34,7 +34,7 @@
  • Incremental - + @@ -44,6 +44,13 @@
  • +
  • + A/B update + + ✅ + + +
  • VAB diff --git a/tools/ota_analysis/src/components/OperationDetail.vue b/tools/ota_analysis/src/components/OperationDetail.vue index 9ce9cf0bf..a40c2159c 100644 --- a/tools/ota_analysis/src/components/OperationDetail.vue +++ b/tools/ota_analysis/src/components/OperationDetail.vue @@ -1,6 +1,6 @@