diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-11-28 13:55:01 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-11-28 13:55:01 -0800 |
commit | 1a5507e5f7f434e5a15ef91971cd40d90bdf75d5 (patch) | |
tree | d59a0e0c11632ed5db6f2624dd9c8fc50bfbe959 /generate-factory-images-common.sh | |
parent | 766a91e79652e2dac045ab1d05200ad36563f0db (diff) | |
parent | 3a182ec19f708859b672cbea69d9a749297244d8 (diff) | |
download | android_device_common-1a5507e5f7f434e5a15ef91971cd40d90bdf75d5.tar.gz android_device_common-1a5507e5f7f434e5a15ef91971cd40d90bdf75d5.tar.bz2 android_device_common-1a5507e5f7f434e5a15ef91971cd40d90bdf75d5.zip |
am 3a182ec1: Merge "Add the ability to unlock the bootloader before doing anything else"
* commit '3a182ec19f708859b672cbea69d9a749297244d8':
Add the ability to unlock the bootloader before doing anything else
Diffstat (limited to 'generate-factory-images-common.sh')
-rw-r--r-- | generate-factory-images-common.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh index 241ecd7..63ab260 100644 --- a/generate-factory-images-common.sh +++ b/generate-factory-images-common.sh @@ -102,6 +102,12 @@ cat > tmp/$PRODUCT-$VERSION/flash-all.sh << EOF # limitations under the License. EOF +if test "$UNLOCKBOOTLOADER" = "true" +then +cat >> tmp/$PRODUCT-$VERSION/flash-all.sh << EOF +fastboot oem unlock +EOF +fi if test "$ERASEALL" = "true" then cat >> tmp/$PRODUCT-$VERSION/flash-all.sh << EOF @@ -171,6 +177,12 @@ cat > tmp/$PRODUCT-$VERSION/flash-all.bat << EOF PATH=%PATH%;"%SYSTEMROOT%\System32" EOF +if test "$UNLOCKBOOTLOADER" = "true" +then +cat >> tmp/$PRODUCT-$VERSION/flash-all.bat << EOF +fastboot oem unlock +EOF +fi if test "$ERASEALL" = "true" then cat >> tmp/$PRODUCT-$VERSION/flash-all.bat << EOF |