Skip to content

Commit 04f02c5

Browse files
committed
4.3 detection fix
Change-Id: Ib5e3df51fa7a383f3699968e899e06d579480564
1 parent a2aac83 commit 04f02c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

su/install-su.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ ln -sf /system/xbin/su /system/bin/su
77
# let's try to install it using install-recovery.sh
88
BUILD_RELEASE_VERSION=$(cat /system/build.prop | grep ro\\.build\\.version\\.release)
99
IS_43=$(echo $BUILD_RELEASE_VERSION | grep 4\\.3)
10-
if [ -z "$IS_43" -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ]
10+
if [ ! -z "$IS_43" ]
1111
then
12+
if [ -o "$IS_43" \> "4.3" -o "$IS_43" == "4.3" ]
13+
then
1214
# check for rom su daemon before clobbering install-recovery.sh
1315
if [ ! -f "/system/etc/.has_su_daemon" ]
1416
then
@@ -19,4 +21,5 @@ then
1921
# the install-recovery.sh execute bit.
2022
touch /system/etc/.installed_su_daemon
2123
fi
24+
fi
2225
fi

0 commit comments

Comments
 (0)