summaryrefslogtreecommitdiff
path: root/META-INF/com
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2018-12-14 15:40:25 -0400
committerosm0sis <osm0sis@outlook.com>2018-12-14 15:43:25 -0400
commitda8c2d1e6cf5b5cdb250ec30e758c794fd48f54d (patch)
tree77e47dc9a95c856fcee5b362afa0c49e668bc0b0 /META-INF/com
parentfd881bd8d7397a28346c99a0875eee3493341166 (diff)
Backend: allow infinite device.name<num>= device check properties (#34)
Diffstat (limited to 'META-INF/com')
-rwxr-xr-xMETA-INF/com/google/android/update-binary3
1 files changed, 1 insertions, 2 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index d0ee4a8..9b450c9 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -94,8 +94,7 @@ if [ "$(file_getprop /tmp/anykernel/anykernel.sh do.devicecheck)" == 1 ]; then
ui_print "Checking device...";
device="$(getprop ro.product.device)";
product="$(getprop ro.build.product)";
- for i in 1 2 3 4 5; do
- testname="$(file_getprop /tmp/anykernel/anykernel.sh device.name$i)";
+ for testname in $($bb grep "^device.name.*=" /tmp/anykernel/anykernel.sh | $bb cut -d= -f2); do
test "$testname" || break;
if [ "$device" == "$testname" -o "$product" == "$testname" ]; then
ui_print "$testname";