Exemplo n.º 1
0
 def execute(self, apk: APK, input_filename: str,  output_directory: str):
     self.logger.info("Generating JSON report file...")
     report_filename = GetApkInfoInJson.__REPORT_FILENAME_PREFIX + input_filename + ".json"
     self.logger.info("Creating %s/%s...", output_directory, report_filename)
     with open(os.path.join(output_directory, report_filename), "w") as fp:
         apk_info = json.dumps(apk.dump(), sort_keys=True, ensure_ascii=False, indent=4)
         fp.write(apk_info)
Exemplo n.º 2
0
def dumps_apk_info(apk: APK):
    apk_info = json.dumps(apk.dump(),
                          sort_keys=True,
                          ensure_ascii=False,
                          indent=4)
    print(apk_info)
Exemplo n.º 3
0
def dumps_apk_info(apk: APK):
    apk_info = json.dumps(apk.dump(), sort_keys=True, ensure_ascii=False, indent=4)
    print(apk_info)