summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2017-10-30 09:21:28 -0700
committerXin Li <delphij@google.com>2017-10-31 05:59:52 +0000
commitbaf936a37343b115898a5fdb8ca88c4ef6fabd3f (patch)
tree6183c13a4203205f5521a7504ea3be5c338d9049
parentbce5227e03a692d905d53af7b6232b17f9c34984 (diff)
downloaddevice_common-baf936a37343b115898a5fdb8ca88c4ef6fabd3f.tar.gz
device_common-baf936a37343b115898a5fdb8ca88c4ef6fabd3f.tar.bz2
device_common-baf936a37343b115898a5fdb8ca88c4ef6fabd3f.zip
Refuse to flash if fastboot have no knowledge about dtbo.
Test: AOSP generate_factory_images Bug: 68330804 Change-Id: Ib9b83109a124ec944c6698cca95b359ed02c84ce
-rw-r--r--generate-factory-images-common.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh
index dc1bfcd..a2d81ca 100644
--- a/generate-factory-images-common.sh
+++ b/generate-factory-images-common.sh
@@ -101,6 +101,10 @@ 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"
+ exit 1
+fi
EOF
if test "$UNLOCKBOOTLOADER" = "true"
then
@@ -254,6 +258,10 @@ 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"
+ exit 1
+fi
EOF
if test "$XLOADER" != ""
then