Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call NameLoad Str keyword Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword ListLoad AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A logging N/A os N/A subprocess pants.base.exceptions TaskError pants.base.workunit WorkUnitLabel pants.java.distribution.distribution DistributionLocator pants.task.task Task pants.util.dirutil safe_mkdir pants.contrib.android.android_config_util AndroidConfigUtil pants.contrib.android.keystore.keystore_resolver KeystoreResolver pants.contrib.android.targets.android_binary AndroidBinary N/A logger N/A N/A logging getLogger __name__ SignApkTask N/A Task N/A N/A Sign Android packages with keystores using the jarsigner tool. N/A _DEFAULT_KEYSTORE_CONFIG android/keystore/default_config.ini register_options N/A N/A cls register N/A N/A N/A N/A N/A N/A super SignApkTask cls register_options register N/A N/A register --keystore-config-location help Location of the .ini file containing keystore definitions. N/A classmethod prepare N/A N/A cls options round_manager N/A N/A N/A N/A N/A N/A super SignApkTask cls prepare options round_manager N/A N/A N/A round_manager require_data apk N/A classmethod is_signtarget N/A N/A cls target N/A N/A N/A N/A isinstance target AndroidBinary N/A classmethod product_types N/A N/A cls N/A N/A N/A N/A release_apk N/A classmethod setup_default_config N/A N/A cls path N/A N/A N/A Create the default keystore config file for Android targets.

    :param string path: Full path for the created default config file.
     N/A N/A N/A N/A N/A AndroidConfigUtil setup_keystore_config path N/A N/A N/A N/A AndroidConfigUtil AndroidConfigError N/A e N/A N/A N/A TaskError N/A N/A Failed to setup default keystore config: {0} format e N/A classmethod signed_package_name N/A N/A cls target build_type N/A N/A N/A Get package name with 'build_type', a string KeyResolver mandates is in (debug, release). N/A N/A N/A {0}.{1}.signed.apk format N/A N/A target manifest package_name build_type N/A classmethod __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super SignApkTask self __init__ args kwargs N/A N/A self _config_file N/A N/A N/A self get_options keystore_config_location N/A N/A self _distdir N/A N/A N/A self get_options pants_distdir N/A N/A self _configdir N/A N/A N/A self get_options pants_configdir N/A N/A self _dist None N/A config_file N/A N/A self N/A N/A N/A N/A N/A self _config_file N/A N/A N/A TaskError The --keystore_config_location option must be set. N/A N/A N/A N/A os path expanduser N/A self _config_file N/A property default_config_location N/A N/A self N/A N/A N/A Return the path where pants creates the default keystore config file.

    This location will hold the well-known definition of the debug keystore installed with the SDK.
     N/A N/A N/A N/A os path join N/A self _configdir N/A self _DEFAULT_KEYSTORE_CONFIG N/A property distribution N/A N/A self N/A N/A N/A N/A N/A self _dist None N/A N/A N/A self _dist N/A N/A DistributionLocator cached minimum_version 1.6.0_00 maximum_version 1.7.0_99 jdk True N/A N/A self _dist N/A property _render_args N/A N/A self target key unsigned_apk outdir N/A N/A N/A Create arg list for the jarsigner process.

    :param AndroidBinary target: Target to be signed.
    :param string unsigned_apk: Location of the apk product from the AaptBuilder task.
    :param Keystore key: Keystore instance with which to sign the android target.
    :param string outdir: output directory for the signed apk.
     N/A args N/A N/A N/A N/A self distribution binary jarsigner N/A N/A N/A args extend N/A -sigalg SHA1withRSA N/A N/A N/A args extend N/A -digestalg SHA1 N/A N/A N/A args extend N/A -keystore N/A key keystore_location N/A N/A N/A args extend N/A -storepass N/A key keystore_password N/A N/A N/A args extend N/A -keypass N/A key key_password N/A N/A N/A args extend N/A -signedjar N/A N/A N/A os path join outdir N/A N/A self signed_package_name target N/A key build_type N/A N/A N/A args append unsigned_apk N/A N/A N/A args append N/A key keystore_alias N/A N/A N/A logger debug N/A N/A Executing: {0} format N/A N/A join args N/A args N/A execute N/A N/A self N/A N/A N/A N/A N/A N/A N/A os path isfile N/A self default_config_location N/A N/A N/A N/A self setup_default_config N/A self default_config_location N/A targets N/A N/A N/A self context targets N/A self is_signtarget N/A N/A N/A self invalidated targets invalidation_check N/A N/A invalid_targets N/A N/A vt N/A invalidation_check invalid_vts N/A N/A N/A N/A invalid_targets extend N/A vt targets N/A target invalid_targets N/A get_products_path N/A N/A target N/A N/A N/A Get path of target's unsigned apks as created by AaptBuilder. N/A unsigned_apks N/A N/A N/A N/A self context products get apk N/A packages N/A N/A unsigned_apks get target N/A packages N/A N/A N/A tgts products N/A N/A packages items N/A N/A prod products N/A N/A N/A N/A N/A N/A os path join tgts prod N/A N/A packages N/A list N/A get_products_path target N/A unsigned_apk packages N/A N/A keystores N/A N/A KeystoreResolver resolve N/A self config_file N/A key keystores N/A N/A outdir N/A N/A self sign_apk_out target N/A N/A keystores N/A key build_type N/A N/A safe_mkdir outdir N/A args N/A N/A self _render_args target N/A keystores N/A key unsigned_apk outdir N/A N/A N/A N/A self context new_workunit name sign_apk labels N/A N/A WorkUnitLabel MULTITOOL workunit N/A N/A returncode N/A N/A subprocess call args stdout N/A N/A workunit output stdout stderr N/A N/A workunit output stderr N/A returncode N/A N/A N/A TaskError N/A N/A The SignApk jarsigner process exited non-zero: {0} format returncode N/A target targets N/A N/A release_path N/A N/A self sign_apk_out target release N/A release_apk N/A N/A self signed_package_name target release N/A N/A N/A N/A os path isfile N/A N/A N/A os path join release_path release_apk N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self context products get release_apk add target release_path append release_apk N/A sign_apk_out N/A N/A self target build_type N/A N/A N/A Compute the outdir for a target. N/A N/A build_type release N/A N/A N/A N/A N/A os path join N/A self workdir N/A target name build_type N/A N/A N/A build_type debug N/A N/A N/A N/A N/A os path join N/A self _distdir N/A target name N/A N/A