public static boolean isSignEqual(Context ctx,String apkFile){
  String packageSign=getInstallPackageSignature(ctx,ctx.getPackageName());
  String apkFileSign=getApkSignature(apkFile);
  return TextUtils.equals(packageSign,apkFileSign);
}

public static boolean isSignEqual ( Context ctx , String apkFile ) { String packageSign = getInstallPackageSignature ( ctx , ctx . getPackageName ( ) ) ; String apkFileSign = getApkSignature ( apkFile ) ; return TextUtils . equals ( packageSign , apkFileSign ) ; }
compare the patch apk to the apk which package name is ctx . getpackagename ( )
