From 04f02c55ed014ef91c0e201bf058a19eeea7db99 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 29 Jul 2013 21:45:15 -0700 Subject: [PATCH] 4.3 detection fix Change-Id: Ib5e3df51fa7a383f3699968e899e06d579480564 --- su/install-su.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/su/install-su.sh b/su/install-su.sh index 1ea42882f..878b53fb0 100644 --- a/su/install-su.sh +++ b/su/install-su.sh @@ -7,8 +7,10 @@ ln -sf /system/xbin/su /system/bin/su # let's try to install it using install-recovery.sh BUILD_RELEASE_VERSION=$(cat /system/build.prop | grep ro\\.build\\.version\\.release) IS_43=$(echo $BUILD_RELEASE_VERSION | grep 4\\.3) -if [ -z "$IS_43" -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ] +if [ ! -z "$IS_43" ] then + if [ -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ] + then # check for rom su daemon before clobbering install-recovery.sh if [ ! -f "/system/etc/.has_su_daemon" ] then @@ -19,4 +21,5 @@ then # the install-recovery.sh execute bit. touch /system/etc/.installed_su_daemon fi + fi fi