From 395d66ef9e0919905bd1f0633f566a23e04db091 Mon Sep 17 00:00:00 2001 From: cfig Date: Thu, 16 Jun 2016 17:24:15 +0800 Subject: [PATCH] fix an error in 'flash' task --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 074819b..84bcd5c 100644 --- a/build.gradle +++ b/build.gradle @@ -284,7 +284,7 @@ void RunFunc(String inCmd, String inWorkdir = null) { RunFunc(Arrays.asList(inCmd.split()), inWorkdir); } -void updateBootImage() { +void updateBootImage(String activeImg) { String flashTarget = null; switch (activeImg) { case "boot.img": @@ -303,7 +303,7 @@ void updateBootImage() { } task flash << { - updateBootImage() + updateBootImage(activeImg) } void rebootRecovery() {