external/koush/Superuser
Revision | d5def0826e8f824cbd676f40fcfb5a8dfc03f7d3 (tree) |
---|---|
Time | 2013-11-16 16:58:29 |
Author | Koushik Dutta <koush@kous...> |
Commiter | Koushik Dutta |
Merge pull request #198 from cernekee/version-v1
Trivial fix for v4.3+ version check logic
@@ -26,7 +26,7 @@ You'll need the "Widgets" dependency. | ||
26 | 26 | These repositories do not keep the actual projects in the top level directory. |
27 | 27 | This is because they contain tests, libs, and samples. |
28 | 28 | |
29 | -Make sure the SDK Platform for API 17 is installed, through the Android SDK Manager. Install NDK Revision 8e from [here](http://developer.android.com/tools/sdk/ndk/index.html). | |
29 | +Make sure the SDK Platform for API 19 is installed, through the Android SDK Manager. Install NDK Revision 9b from [here](http://developer.android.com/tools/sdk/ndk/index.html). | |
30 | 30 | |
31 | 31 | ## Eclipse |
32 | 32 |
@@ -62,8 +62,10 @@ MAJ=${VERSION%%.*} | ||
62 | 62 | MIN=${VERSION#*.} |
63 | 63 | MIN=${MIN//.*} |
64 | 64 | |
65 | -if [ "$MAJ" -ge 4 -a "$MIN" -ge 3 ] | |
65 | +if [ "${MAJ}${MIN}" -ge 43 ] | |
66 | 66 | then |
67 | + # on 4.3+, the daemon need not be setuid. | |
68 | + chmod 0755 /system/xbin/su | |
67 | 69 | # check for rom su daemon before clobbering install-recovery.sh |
68 | 70 | if [ ! -f "/system/etc/.has_su_daemon" ] |
69 | 71 | then |