Lines Matching refs:os
30 import os
66 SIGN_TOOL_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'zipalign.jar')
75 if not os.path.isdir(arg):
102 if arg != "ON_SERVER" and not os.path.isfile(arg):
116 if arg != "ON_SERVER" and not os.path.isfile(arg):
131 if os.path.exists(arg):
132 if os.path.isfile(arg):
142 os.makedirs(arg)
229 remain_len = os.path.getsize(package_path) - ZIP_ECOD_LENGTH
302 package_fd = os.open(signed_package, os.O_RDWR | os.O_CREAT, 0o755)
303 f_signed = os.fdopen(package_fd, 'wb')
305 remain_len = os.path.getsize(unsigned_package) - 2
329 digest_fd = os.open("digest", os.O_RDWR | os.O_CREAT, 0o755)
330 digest_file = os.fdopen(digest_fd, 'wb')
334 signatute_fd = os.open("signature", os.O_RDWR | os.O_CREAT, 0o755)
335 signatute_file = os.fdopen(signatute_fd, 'wb')
390 unsigned_package = os.path.join(
395 img_file_path = os.path.join(target_package, 'module.img')
396 if os.path.exists(img_file_path):
399 module_file_path = os.path.join(target_package, 'config.json')
402 pub_key_file_path = os.path.join(target_package, 'pub_key.pem')
403 if os.path.exists(pub_key_file_path):
408 align_package = os.path.join(
412 if not os.path.exists(align_package):
417 signed_package = os.path.join(
419 if os.path.exists(signed_package):
420 os.remove(signed_package)
431 if os.path.exists(align_package):
432 os.remove(align_package)
433 if os.path.exists(unsigned_package):
434 os.remove(unsigned_package)