• Home
  • Raw
  • Download

Lines Matching refs:os

27 import os
74 apexer_path_in_environ = "APEXER_TOOL_PATH" in os.environ
76 … default=os.environ['APEXER_TOOL_PATH'].split(":") if apexer_path_in_environ else None,
87 binary_path = os.path.join(path, binary)
88 if os.path.exists(binary_path):
94 env.update(os.environ.copy())
113 for dirpath, _, filenames in os.walk(dir_name):
114 size += RoundUp(os.path.getsize(dirpath), BLOCK_SIZE)
116 size += RoundUp(os.path.getsize(os.path.join(dirpath, f)), BLOCK_SIZE)
121 for root, dirs, files in os.walk(dir_name):
149 if not os.path.exists(args.manifest):
153 if not os.path.isfile(args.manifest):
158 if not os.path.exists(args.android_manifest):
162 if not os.path.isfile(args.android_manifest):
166 if not os.path.exists(args.input_dir):
170 if not os.path.isdir(args.input_dir):
174 if not args.force and os.path.exists(args.output):
216 content_dir = os.path.join(work_dir, 'content')
217 os.mkdir(content_dir)
222 manifests_dir = os.path.join(work_dir, 'manifests')
223 os.mkdir(manifests_dir)
224 manifest_file = os.path.join(manifests_dir, 'apex_manifest.json')
230 key_name = os.path.basename(os.path.splitext(args.key)[0])
235 img_file = os.path.join(content_dir, 'apex_payload.img')
260 compiled_file_contexts = os.path.join(work_dir, 'file_contexts.bin')
322 img_file = os.path.join(content_dir, 'apex_payload.zip')
333 android_manifest_file = os.path.join(work_dir, 'AndroidManifest.xml')
346 shutil.copyfile(args.manifest, os.path.join(content_dir, 'apex_manifest.json'))
350 shutil.copyfile(args.pubkey, os.path.join(content_dir, "apex_pubkey"))
352 apk_file = os.path.join(work_dir, 'apex.apk')
373 zip_file = os.path.join(work_dir, 'apex.zip')
378 for file_ in os.listdir(content_dir):
379 if os.path.isfile(os.path.join(content_dir, file_)):
384 unaligned_apex_file = os.path.join(work_dir, 'unaligned.apex')