FileUtils类中封装了用于获取文件32位校验码的方法:
//frameworks/base/core/java/android/os/FileUtils.java
public static long checksumCrc32(File file) throws FileNotFoundException, IOException {
CRC32 checkSummer = new CRC32();
CheckedInputStream cis = null;
try {
cis = new CheckedInputStream( new FileInputStream(file), checkSummer);
byte[] buf = new byte[128];