summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Yi <byi@google.com>2019-02-26 10:43:22 -0800
committerBill Yi <byi@google.com>2019-02-26 13:43:21 -0800
commit9d2a0d0c3aab8b698669bad9810bc52ac7f76dfb (patch)
tree34148ce460eda4492363e25195a6d51f32560f6f
parent3a59bfc967fd7545126c5bf40c32f7d151796814 (diff)
downloadcommon-android10-dev.tar.gz
Refuse to flash if fastboot has no knowledge about dynamic partitionandroid10-dev
TEST: compared with the fastboot --version 28.0.1 and 28.0.2 BUG:120105455 Change-Id: I4a7b2741b9733181842a411b536e5e3e0a82fa4c
-rw-r--r--generate-factory-images-common.sh4
1 files changed, 2 insertions, 2 deletions
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 @@ cat > tmp/$PRODUCT-$VERSION/flash-all.sh << EOF
# 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 @@ cat > tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
# 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