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
This commit is contained in:
Victor Hsieh 2018-10-29 16:54:23 -07:00
parent b7d9b6a995
commit 02ef4bb190
1 changed files with 2 additions and 1 deletions

View File

@ -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;