Snap for 9673171 from 54d6a5069eab1ebfc3974f54313ac492a338c391 to tm-qpr3-release

Change-Id: I806a41cba303984e02ab81516bb5771dec5372c0
diff --git a/tools/cts-root-tradefed/etc/cts-root-tradefed b/tools/cts-root-tradefed/etc/cts-root-tradefed
index 31dde39..5c11f2c 100755
--- a/tools/cts-root-tradefed/etc/cts-root-tradefed
+++ b/tools/cts-root-tradefed/etc/cts-root-tradefed
@@ -35,9 +35,9 @@
 checkPath java
 
 # check java version
-JAVA_VERSION=$(java -version 2>&1 | head -n 1 | grep 'version [ "]\(1\.8\|9\|11\).*[ "]')
+JAVA_VERSION=$(java -version 2>&1 | head -n 1 | grep 'version [ "]\(1\.8\|9\|11\|17\).*[ "]')
 if [ "${JAVA_VERSION}" == "" ]; then
-    echo "Wrong java version. 1.8, 9, or 11 is required."
+    echo "Wrong java version. 1.8, 9, 11, or 17 is required."
     exit
 fi