Commit a6553535 by sikang

bug fix

parent 7696ec28
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
"//string_encryption": "字符串加密方式,为false时,只做插入不做加密,未集成Philology填false", "//string_encryption": "字符串加密方式,为false时,只做插入不做加密,未集成Philology填false",
"string_encryption" : "true", "string_encryption" : "true",
"//image_garble":"是否混淆图片,修改图片MD5时可能会导致图片变色,出现这种情况先设为false",
"image_garble":"true",
"//activities":"需要混淆的类名,匹配方式 endswith() ,如 加入Activity.java 则所有Activity结尾的类加入混淆", "//activities":"需要混淆的类名,匹配方式 endswith() ,如 加入Activity.java 则所有Activity结尾的类加入混淆",
"activities" : [ "activities" : [
"Activity.java", "Activity.java",
......
...@@ -40,7 +40,7 @@ if command == 0: ...@@ -40,7 +40,7 @@ if command == 0:
#布局文件混淆 必须放前面 #布局文件混淆 必须放前面
LayoutGarble().layout_garble(config) LayoutGarble().layout_garble(config)
#四大组件类名混淆 #四大组件类名混淆
ActivityGarble().activity_garble(config)ß ActivityGarble().activity_garble(config)
#Api混淆 #Api混淆
ApiGarble().api_garble(config) ApiGarble().api_garble(config)
#包路径混淆 #包路径混淆
......
...@@ -35,7 +35,7 @@ class ImageGarble: ...@@ -35,7 +35,7 @@ class ImageGarble:
for main_dir in config["lib_main"]: for main_dir in config["lib_main"]:
for root, dirs, files in os.walk("%s/%s/res/" % (config['root'], main_dir)): for root, dirs, files in os.walk("%s/%s/res/" % (config['root'], main_dir)):
#改变现有图片MD5 #改变现有图片MD5
for file in files: for file in files and config['image_garble'] in "true":
if file.endswith(".png") or file.endswith(".webp"): if file.endswith(".png") or file.endswith(".webp"):
path = os.path.join(root,file) path = os.path.join(root,file)
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment