summaryrefslogtreecommitdiff
path: root/META-INF/com
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-07-16 15:56:57 -0700
committerChris Renshaw <osm0sis@outlook.com>2018-07-16 21:28:54 -0300
commitdd914e3385d630d638d5e22d914a54522bc97fd6 (patch)
treec9df9347562a66cfff29ddfa23abb27eaa7b832e /META-INF/com
parentcea9c5a24780f29c62c8bbb8e7944b93539e8f5b (diff)
backend: Break out of device check loop if a blank value is found
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'META-INF/com')
-rwxr-xr-xMETA-INF/com/google/android/update-binary1
1 files changed, 1 insertions, 0 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index 405d72b..6b11890 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -104,6 +104,7 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.devicecheck)" == 1 ]; then
product="$(getprop ro.build.product)";
for i in 1 2 3 4 5; do
testname="$(file_getprop /tmp/anykernel/anykernel.sh device.name$i)";
+ test "$testname" || break;
if [ "$device" == "$testname" -o "$product" == "$testname" ]; then
ui_print "$testname";
match=1;