public static boolean isSuInstalled(){
  File subin=new File("/system/bin/su"), suxbin=new File("/system/xbin/su"), susbin=new File("/sbin/su");
  return subin.exists() || suxbin.exists() || susbin.exists();
}

public static boolean isSuInstalled ( ) { File subin = new File ( "/system/bin/su" ) , suxbin = new File ( "/system/xbin/su" ) , susbin = new File ( "/sbin/su" ) ; return subin . exists ( ) || suxbin . exists ( ) || susbin . exists ( ) ; }
check if su binary exists
