Snap for 5351881 from 9d2a0d0c3aab8b698669bad9810bc52ac7f76dfb to qt-release

Change-Id: I89013502a0632093009bee82a931609273edbe94
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh
index 6bcee8a..55fa170 100644
--- a/generate-factory-images-common.sh
+++ b/generate-factory-images-common.sh
@@ -101,7 +101,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-if ! grep -q create-logical-partition \$(which fastboot); then
+if ! [ \$(\$(which fastboot) --version | grep "version" | cut -c18-23 | sed 's/\.//g' ) -ge 2802 ]; then
   echo "fastboot too old; please download the latest version at https://developer.android.com/studio/releases/platform-tools.html"
   exit 1
 fi
@@ -258,7 +258,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-if ! grep -q create-logical-partition \$(which fastboot); then
+if ! [ \$(\$(which fastboot) --version | grep "version" | cut -c18-23 | sed 's/\.//g' ) -ge 2802 ]; then
   echo "fastboot too old; please download the latest version at https://developer.android.com/studio/releases/platform-tools.html"
   exit 1
 fi