try { PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES); Signature[] signs = packageInfo.signatures; Signature sign = signs[0]; int hashcode = sign.hashCode();
System.out.printf("hashCode。。。。",hashcode); System.out.printf("hashCode getPackageName()。。。。。。。。",getPackageName());
// android.util.Log.e("test", "hashCode : " + hashcode); } catch (Exception e) { e.printStackTrace(); }