From 02ef4bb190fecc366445e31145b6a32f4cb37baa Mon Sep 17 00:00:00 2001 From: Victor Hsieh Date: Mon, 29 Oct 2018 16:54:23 -0700 Subject: [PATCH] adb install-multiple to also accept .fsv_sig .fsv_sig will be fs-verity signature in PKCS#7 format. Test: adb install-multiple foo.apk foo.apk.fsv_sig Bug: 112037636 Change-Id: I4a9b2203334d4974602c7f138222ade1aa319ccb --- adb/client/adb_install.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adb/client/adb_install.cpp b/adb/client/adb_install.cpp index cf22efa8e..0008f7205 100644 --- a/adb/client/adb_install.cpp +++ b/adb/client/adb_install.cpp @@ -392,7 +392,8 @@ int install_multiple_app(int argc, const char** argv) { } if (android::base::EndsWithIgnoreCase(file, ".apk") || - android::base::EndsWithIgnoreCase(file, ".dm")) { + android::base::EndsWithIgnoreCase(file, ".dm") || + android::base::EndsWithIgnoreCase(file, ".fsv_sig")) { struct stat sb; if (stat(file, &sb) != -1) total_size += sb.st_size; first_apk = i;