Anti Mod protection in app Sketchware project

 Anti Mod protection Project

All necessary apps & codes





CLICK HERE DOWNLOAD APK SIGNER app



CLICK HERE TO DOWNLOAD MIXPLORER APP


CLICK HERE TO DOWNLOAD APK EDITOR app


First code

validateAppSignature(getApplicationContext(), "dc24d3c7d04063afebbb7b3afa5abd277afbb6b7");


Second code

 


} android.content.pm.PackageInfo packageInfo; public boolean validateAppSignature(android.content.Context context, String _signature){ try{ packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), android.content.pm.PackageManager.GET_SIGNATURES); }catch(Exception e){ } if(packageInfo != null){ for (android.content.pm.Signature signature : packageInfo.signatures) { String sha1 = getSHA1(signature.toByteArray()); return (_signature.equals(sha1.toLowerCase())); } } if(packageInfo != null){ return false; }else{ return true; } } public static String getSHA1(byte[] sig) { try{ java.security.MessageDigest digest = java.security.MessageDigest.getInstance("SHA1"); digest.update(sig); byte[] hashtext = digest.digest(); return bytesToHex(hashtext); } catch(java.security.NoSuchAlgorithmException e){ return "61ed377e85d386a8dfee6b864bd85b0bfaa5af81"; } } public static String bytesToHex(byte[] bytes) { final char[] hexArray = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; char[] hexChars = new char[bytes.length * 2]; int v; for (int j = 0; j < bytes.length; j++) { v = bytes[j] & 0xFF; hexChars[j * 2] = hexArray[v >>> 4]; hexChars[j * 2 + 1] = hexArray[v & 0x0F]; } return new String(hexChars); } {


Official Telegram for Any help

Comments

Post a Comment

Popular posts from this blog