question: public static boolean checkSHA ( final String shaHash , final File file ) { if ( TextUtils . isEmpty ( shaHash ) || file == null || ! FileUtils . isReadable ( file ) ) { Log . e ( "Given String is NULL or File is NULL or File is not readable" ) ; return false ; } final String hash = getSHA ( file ) ; if ( hash == null ) { Log . e ( "calculated hash is NULL" ) ; return false ; } return hash . equalsIgnoreCase ( shaHash ) ; }
target:  Checks if given hash is the same for given file - helps to detect file changes