diff options
author | Xin Li <delphij@google.com> | 2018-03-29 15:33:27 -0700 |
---|---|---|
committer | Bill Yi <byi@google.com> | 2018-07-10 16:41:55 +0000 |
commit | 20e35d3569a0646dceb105ccc66524d969887759 (patch) | |
tree | 530797e4823d92c6bd3b947309d8cb2eadbf56ac | |
parent | 728bc331813e0931ed1c1394229fad9ded00e76f (diff) | |
download | device_common-20e35d3569a0646dceb105ccc66524d969887759.tar.gz device_common-20e35d3569a0646dceb105ccc66524d969887759.tar.bz2 device_common-20e35d3569a0646dceb105ccc66524d969887759.zip |
Refuse to flash if fastboot have no knowledge about partition-exists.android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16pie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-dev
Bug: 77290928
Change-Id: Ib4811e75b5a798a10a4b107f7643a964c268d8f1
-rw-r--r-- | generate-factory-images-common.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh index a2d81ca..fdcb442 100644 --- a/generate-factory-images-common.sh +++ b/generate-factory-images-common.sh @@ -101,8 +101,8 @@ 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 dtbo.sig \$(which fastboot); then - echo "fastboot too old" +if ! grep -q partition-exists \$(which fastboot); then + echo "fastboot too old; please download the latest version at https://developer.android.com/studio/releases/platform-tools.html" exit 1 fi EOF @@ -258,8 +258,8 @@ 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 dtbo.sig \$(which fastboot); then - echo "fastboot too old" +if ! grep -q partition-exists \$(which fastboot); then + echo "fastboot too old; please download the latest version at https://developer.android.com/studio/releases/platform-tools.html" exit 1 fi EOF |