Merge "Support installing .sdm files through adb." into main am: d55d672d47

Original change: https://android-review.googlesource.com/c/platform/packages/modules/adb/+/3500683

Change-Id: I4066145d1354656b0e138226515e4e53b25a9a2e
Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/client/adb_install.cpp b/client/adb_install.cpp
index 451b96d..566bdb5 100644
--- a/client/adb_install.cpp
+++ b/client/adb_install.cpp
@@ -538,9 +538,12 @@
         }
 
         if (android::base::EndsWithIgnoreCase(file, ".apk") ||
-            android::base::EndsWithIgnoreCase(file, ".dm") ||
+            android::base::EndsWithIgnoreCase(
+                    file, ".dm") ||  // dex metadata, for cloud profile and cloud verification
+            android::base::EndsWithIgnoreCase(
+                    file, ".sdm") ||  // secure dex metadata, for cloud compilation
             android::base::EndsWithIgnoreCase(file, ".fsv_sig") ||
-            android::base::EndsWithIgnoreCase(file, ".idsig")) {  // v4 external signature.
+            android::base::EndsWithIgnoreCase(file, ".idsig")) {  // v4 external signature
             struct stat sb;
             if (stat(file, &sb) == -1) perror_exit("failed to stat \"%s\"", file);
             total_size += sb.st_size;