public Response evaluateCompatibility(){
  if (!(info.getSdkVersion() >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) && info.isRooted()) {
    return Response.INCOMPATIBLE;
  }
 else   if (info.getSdkVersion() < android.os.Build.VERSION_CODES.JELLY_BEAN) {
    return Response.INCOMPATIBLE_OS;
  }
 else   if (info.isRooted()) {
    return Response.INCOMPATIBLE_ROOT;
  }
  return Response.COMPATIBLE;
}

public Response evaluateCompatibility ( ) { if ( ! ( info . getSdkVersion ( ) >= android . os . Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) && info . isRooted ( ) ) { return Response . INCOMPATIBLE ; } else if ( info . getSdkVersion ( ) < android . os . Build . VERSION_CODES . JELLY_BEAN ) { return Response . INCOMPATIBLE_OS ; } else if ( info . isRooted ( ) ) { return Response . INCOMPATIBLE_ROOT ; } return Response . COMPATIBLE ; }
returns true if the device is compatible to run the agent .
