manifest_fixer: make --prefer-integrity an enabler

The last change should have changed this from taking a boolean to a
simple switch.

Test: build a package with LOCAL_PREFER_INTEGRITY=true
Bug: 112037137
Change-Id: I5ce3b1455404b5c8e781496d26c0431db52a170f
This commit is contained in:
Victor Hsieh
2018-11-16 15:12:03 -08:00
parent 6028c3bdf4
commit f9919c7d52

View File

@@ -61,7 +61,7 @@ def parse_args():
help='specify additional <uses-library> tag to add. android:requred is set to false')
parser.add_argument('--uses-non-sdk-api', dest='uses_non_sdk_api', action='store_true',
help='manifest is for a package built against the platform')
parser.add_argument('--prefer-integrity', type=bool, dest='prefer_integrity',
parser.add_argument('--prefer-integrity', dest='prefer_integrity', action='store_true',
help=('specify if the app prefers strict integrity. Should not be conflict if ' +
'already declared in the manifest.'))
parser.add_argument('input', help='input AndroidManifest.xml file')