移除Res hash操作,res存在问题

This commit is contained in:
范大德 2023-10-24 20:34:06 +08:00
parent a7e28a5a67
commit b2675cc8f0
2 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,7 @@
<hook type="before_run" src="scripts/save_assets_hashes.js" />
<hook type="before_run" src="scripts/save_res_hashes.js" />
<hook type="before_build" src="scripts/save_assets_hashes.js" />
<hook type="before_build" src="scripts/save_res_hashes.js" />
<!-- <hook type="before_build" src="scripts/save_res_hashes.js" /> -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
@ -43,7 +43,7 @@
<source-file src="src/android/com/cescit/integrity/BaseIntegrity.java" target-dir="src/com/cescit/integrity" />
<source-file src="src/android/com/cescit/integrity/CescitIntegrity.java" target-dir="src/com/cescit/integrity" />
<source-file src="src/android/com/cescit/integrity/AssetsIntegrity.java" target-dir="src/com/cescit/integrity" />
<source-file src="src/android/com/cescit/integrity/ResIntegrity.java" target-dir="src/com/cescit/integrity" />
<!-- <source-file src="src/android/com/cescit/integrity/ResIntegrity.java" target-dir="src/com/cescit/integrity" /> -->
<source-file src="src/android/com/cescit/integrity/ApkIntegrity.java" target-dir="src/com/cescit/integrity" />
<source-file src="src/android/com/cescit/integrity/DebugDetection.java" target-dir="src/com/cescit/integrity" />
<source-file src="src/android/com/cescit/integrity/TamperingException.java" target-dir="src/com/cescit/integrity" />

View File

@ -86,7 +86,6 @@ class BaseIntegrity {
Signature[] signatures = packageInfo.signatures;
Signature sign = signatures[0];
byte[] signByte = sign.toByteArray();
System.err.println("sing hash: "+ getHash(signByte));
nowHashList.put("apk", getHash(signByte));
} catch (PackageManager.NameNotFoundException | IOException | NoSuchAlgorithmException e) {
}