diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-11-19 08:30:28 -0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-11-19 08:35:14 -0800 |
commit | a705531dac87b3afb7c1fefe32244d58113f1571 (patch) | |
tree | 311f966508b1d38f543ad71ddc92cb8fcfb2c316 /generate-factory-images-common.sh | |
parent | c761eeaa8a2a6d872c54d7674d6f3be1504be4bb (diff) | |
download | android_device_common-a705531dac87b3afb7c1fefe32244d58113f1571.tar.gz android_device_common-a705531dac87b3afb7c1fefe32244d58113f1571.tar.bz2 android_device_common-a705531dac87b3afb7c1fefe32244d58113f1571.zip |
Add the ability to unlock the bootloader before doing anything else
Change-Id: I9fbd5237fc40216de5b1141219d3ab169eef0637
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 3e07e3e..b7c959f 100644 --- a/generate-factory-images-common.sh +++ b/generate-factory-images-common.sh @@ -97,6 +97,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 @@ -166,6 +172,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 |