Here you can find the source of checkVersion(long newVersion, String product)
public static boolean checkVersion(long newVersion, String product)
//package com.java2s; import android.os.Build; public class Main { public static boolean checkVersion(long newVersion, String product) { return (Build.TIME <= newVersion * 1000 && (Build.DEVICE .equals(product) || Build.PRODUCT.equals(product))); }/*from w ww . j a va 2 s . co m*/ }