• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/koush/Superuser


Commit MetaInfo

Revisiond5def0826e8f824cbd676f40fcfb5a8dfc03f7d3 (tree)
Time2013-11-16 16:58:29
AuthorKoushik Dutta <koush@kous...>
CommiterKoushik Dutta

Log Message

Merge pull request #198 from cernekee/version-v1

Trivial fix for v4.3+ version check logic

Change Summary

Incremental Difference

--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ You'll need the "Widgets" dependency.
2626 These repositories do not keep the actual projects in the top level directory.
2727 This is because they contain tests, libs, and samples.
2828
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).
3030
3131 ## Eclipse
3232
--- a/Superuser/assets/update-binary
+++ b/Superuser/assets/update-binary
@@ -62,8 +62,10 @@ MAJ=${VERSION%%.*}
6262 MIN=${VERSION#*.}
6363 MIN=${MIN//.*}
6464
65-if [ "$MAJ" -ge 4 -a "$MIN" -ge 3 ]
65+if [ "${MAJ}${MIN}" -ge 43 ]
6666 then
67+ # on 4.3+, the daemon need not be setuid.
68+ chmod 0755 /system/xbin/su
6769 # check for rom su daemon before clobbering install-recovery.sh
6870 if [ ! -f "/system/etc/.has_su_daemon" ]
6971 then