summaryrefslogtreecommitdiff
path: root/META-INF/com/google/android
diff options
context:
space:
mode:
Diffstat (limited to 'META-INF/com/google/android')
-rwxr-xr-xMETA-INF/com/google/android/update-binary6
1 files changed, 3 insertions, 3 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index f848ca4..7d859a1 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -173,7 +173,7 @@ if [ ! "$(getprop 2>/dev/null)" ]; then
done;
test "$propval" && echo "$propval" || echo "";
}
-elif [ ! "$(getprop ro.product.device 2>/dev/null)" -a ! "$(getprop ro.build.product 2>/dev/null)" -a ! "$(getprop ro.vendor.product.device 2>/dev/null)" -a ! "$(getprop ro.vendor.build.product 2>/dev/null)" ]; then
+elif [ ! "$(getprop ro.build.type 2>/dev/null)" ]; then
getprop() {
($(which getprop) | $bb grep "$1" | $bb cut -d[ -f3 | $bb cut -d] -f1) 2>/dev/null;
}
@@ -183,8 +183,8 @@ if [ "$(file_getprop anykernel.sh do.devicecheck)" == 1 ]; then
ui_print "Checking device...";
device=$(getprop ro.product.device 2>/dev/null);
product=$(getprop ro.build.product 2>/dev/null);
- vendordevice=$(getprop ro.vendor.product.device 2>/dev/null);
- vendorproduct=$(getprop ro.vendor.build.product 2>/dev/null);
+ vendordevice=$(getprop ro.product.vendor.device 2>/dev/null);
+ vendorproduct=$(getprop ro.vendor.product.device 2>/dev/null);
for testname in $(file_getprop anykernel.sh 'device.name.*'); do
for devicename in $device $product $vendordevice $vendorproduct; do
if [ "$devicename" == "$testname" ]; then