summaryrefslogtreecommitdiff
path: root/apexer/apexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'apexer/apexer.py')
-rw-r--r--apexer/apexer.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/apexer/apexer.py b/apexer/apexer.py
index 4f2cb35..1b27c97 100644
--- a/apexer/apexer.py
+++ b/apexer/apexer.py
@@ -85,6 +85,12 @@ def ParseArgs(argv):
help='package name of the APK container. Default is the apex name in --manifest.'
)
parser.add_argument(
+ '--no_hashtree',
+ required=False,
+ action='store_true',
+ help='hashtree is omitted from "image".'
+ )
+ parser.add_argument(
'--android_jar_path',
required=False,
default='prebuilts/sdk/current/public/android.jar',
@@ -338,6 +344,8 @@ def CreateApex(args, work_dir):
salt = hashlib.sha256(manifest_raw).hexdigest()
cmd.extend(['--salt', salt])
cmd.extend(['--image', img_file])
+ if args.no_hashtree:
+ cmd.append('--no_hashtree')
RunCommand(cmd, args.verbose)
# Get the minimum size of the partition required.