移除Res hash操作,res存在问题
This commit is contained in:
parent
a7e28a5a67
commit
b2675cc8f0
@ -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" />
|
||||
|
@ -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) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user