diff options
author | Dario Freni <dariofreni@google.com> | 2018-11-20 18:07:44 +0000 |
---|---|---|
committer | Dario Freni <dariofreni@google.com> | 2018-11-24 16:24:34 +0000 |
commit | 0a2126459672cd6d1441376082525a048da48210 (patch) | |
tree | c3110c6b7ae92acc0e61593700ca1e379d1c1679 /apexer/apexer.py | |
parent | 0e69652a13eed5fde06ea7f6feaa98648334603d (diff) |
Rename manifest and image files.
manifest.json -> apex_manifest.json
image.img -> apex_payload.img
Bug: 119672727
Test: m, installed on device, boots. tests succeed.
Change-Id: I3d03647f76f146b582d2335a26eeac9a5c278f29
Diffstat (limited to 'apexer/apexer.py')
-rw-r--r-- | apexer/apexer.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apexer/apexer.py b/apexer/apexer.py index fc7e40a..df7fa35 100644 --- a/apexer/apexer.py +++ b/apexer/apexer.py @@ -52,7 +52,7 @@ def ParseArgs(argv): help='force overwriting output') parser.add_argument('-v', '--verbose', action='store_true', help='verbose execution') - parser.add_argument('--manifest', default='manifest.json', + parser.add_argument('--manifest', default='apex_manifest.json', help='path to the APEX manifest file') parser.add_argument('--file_contexts', required=True, help='selinux file contexts file') @@ -174,7 +174,7 @@ def CreateApex(args, work_dir): content_dir = os.path.join(work_dir, 'content') os.mkdir(content_dir) - img_file = os.path.join(content_dir, 'image.img') + img_file = os.path.join(content_dir, 'apex_payload.img') cmd = ['mke2fs'] cmd.extend(['-O', '^has_journal']) # because image is read-only @@ -207,7 +207,7 @@ def CreateApex(args, work_dir): # within the zip container). manifests_dir = os.path.join(work_dir, 'manifests') os.mkdir(manifests_dir) - manifest_file = os.path.join(manifests_dir, 'manifest.json') + manifest_file = os.path.join(manifests_dir, 'apex_manifest.json') if args.verbose: print('Copying ' + args.manifest + ' to ' + manifest_file) shutil.copyfile(args.manifest, manifest_file) @@ -261,7 +261,7 @@ def CreateApex(args, work_dir): # copy manifest to the content dir so that it is also accessible # without mounting the image - shutil.copyfile(args.manifest, os.path.join(content_dir, 'manifest.json')) + shutil.copyfile(args.manifest, os.path.join(content_dir, 'apex_manifest.json')) apk_file = os.path.join(work_dir, 'apex.apk') cmd = ['aapt2'] |