OSDN Git Service

Disable su binary version checking
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 19 May 2014 16:41:15 +0000 (00:41 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 4 Aug 2014 14:08:23 +0000 (22:08 +0800)
The checking seems doesn't work in KitKat.

Superuser/src/com/koushikdutta/superuser/util/SuHelper.java

index 8829d99..75ebcd4 100644 (file)
@@ -6,6 +6,7 @@ import android.util.Log;
 public class SuHelper {
     public static String CURRENT_VERSION = "16";
     public static void checkSu(Context context) throws Exception {
+/*
         Process p = Runtime.getRuntime().exec("su -v");
         String result = Settings.readToEnd(p.getInputStream());
         Log.i("Superuser", "Result: " + result);
@@ -19,5 +20,6 @@ public class SuHelper {
         String[] parts = result.split(" ");
         if (!CURRENT_VERSION.equals(parts[0]))
             throw new Exception("binary is old");
+*/
     }
 }