From cdf499330dbf0211fda9b2153327ca06f93072a0 Mon Sep 17 00:00:00 2001 From: lishutong Date: Mon, 26 Jul 2021 17:45:29 +0000 Subject: [PATCH] Add a demo page in OTA_analyzer. Please put an ota package and its target build as cf_x86_demo.zip and cf_x86_target_file_demo into this directory: /public/files/ This OTA package and target build do not have to be complete - only the manifest part in OTA package and .map files in target build are necessary. The previous one can be generated using: https://source.corp.google.com/android/vendor/google_tradefederation/contrib/src/com/google/android/tradefed/ota/util/PayloadUtil.java;l=196;bpv=1;bpt=1?q=PayloadUtil&sq=package:android The following one can be generated by unzip and keep the .map files only, zip again. Add a demo page, now the user can view the complete function of OTA_analyzer without uploading their own ota packages / android build. Test: Mannual tested. Change-Id: I7552e0222fc40e9a4b1aff9750f74cd3ed3f4feb --- tools/ota_analysis/.gitignore | 1 + tools/ota_analysis/src/App.vue | 2 +- .../src/components/PayloadComposition.vue | 19 +++++ tools/ota_analysis/src/router/index.js | 6 ++ tools/ota_analysis/src/views/Demo.vue | 74 +++++++++++++++++++ 5 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 tools/ota_analysis/src/views/Demo.vue diff --git a/tools/ota_analysis/.gitignore b/tools/ota_analysis/.gitignore index b81e39b9a..7cf69a02f 100644 --- a/tools/ota_analysis/.gitignore +++ b/tools/ota_analysis/.gitignore @@ -3,6 +3,7 @@ node_modules /dist /target /output +/public stderr* stdout* diff --git a/tools/ota_analysis/src/App.vue b/tools/ota_analysis/src/App.vue index c0a6f7772..da111555b 100644 --- a/tools/ota_analysis/src/App.vue +++ b/tools/ota_analysis/src/App.vue @@ -28,7 +28,7 @@ export default { data() { return { - links: ['Analysis', 'About'], + links: ['Analysis', 'Demo', 'About'], } }, } diff --git a/tools/ota_analysis/src/components/PayloadComposition.vue b/tools/ota_analysis/src/components/PayloadComposition.vue index 6f8797301..587442b5d 100644 --- a/tools/ota_analysis/src/components/PayloadComposition.vue +++ b/tools/ota_analysis/src/components/PayloadComposition.vue @@ -66,6 +66,7 @@ md="6" > @@ -74,6 +75,7 @@