在起始页
//得到签名
PackageInfo packageInfo = null;
try {
packageInfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES);
Signature[] signs = packageInfo.signatures;
String signStr = md5(signs[0].toCharsString());
LogUtil.getInstance().e(signStr);
if(MyNdk.getInstance().getSecretF(signStr)==0){//从jni获取到签名对比
finish();
}
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}