Commit 3a327410 by sikang

update

parent feb834a3
......@@ -87,22 +87,27 @@ class ActivityGarble:
directory = os.path.join(os.getcwd(), root)
for file in files:
if file.endswith(".java"):
elf.__process_file_content(os.path.join(directory, file),file)
self.__process_file_content(os.path.join(directory, file),file)
#四大组件混淆
def activity_garble(self,config):
#找到要混淆的java文件
print("find activity...")
self.__find_activities("%s/app/src/main"% config['root'])
self.__find_activities("%s/lib_base/src/main"% config['root'])
#开始混淆
print("start garble .java...")
self.__process_files("%s/app/src/main"% config['root'])
self.__process_files("%s/lib_base/src/main"% config['root'])
#混淆AndroidManifest.xml
print("start garble 混淆AndroidManifest.xml ...")
manifest_path = os.path.join("%s/app/src/main/"% config['root'], "AndroidManifest.xml")
self.__process_file_content(manifest_path,"AndroidManifest.xml")
lib_manifest_path = os.path.join("%s/lib_base/src/main/"% config['root'], "AndroidManifest.xml")
self.__process_file_content(lib_manifest_path,"AndroidManifest.xml")
\ No newline at end of file
self.__process_file_content(lib_manifest_path,"AndroidManifest.xml")
print("done")
\ No newline at end of file
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