UberApkSigner

class apkinjector.uber_apk_signer.UberApkSigner

Execute uber-apk-signer commands

static install(path: str = None, progress_callback: Callable = None) → None

Install uber-apk-signer.

Parameters
  • path (str, optional) – Path to existing uber-apk-signer.jar. If not found, will use the system installed one or download it. Defaults to None.

  • progress_callback (callable, optional) – Callback to be called when install progress changes, defaults to None.

static sign(apks: List[str], allow_resign: Optional[bool] = False, debug: Optional[bool] = False, dry_run: Optional[bool] = False, ks: Optional[str] = None, ks_alias: Optional[str] = None, ks_debug: Optional[str] = None, ks_key_pass: Optional[str] = None, ks_pass: Optional[str] = None, lineage: Optional[str] = None, out: Optional[str] = None, overwrite: Optional[bool] = False, skip_zip_align: Optional[bool] = False, only_verify: Optional[bool] = False, zip_align_path: Optional[str] = None, verify_sha256: Optional[str] = None) → str

Sign an APK or a set of APKs.

Returns

The stdout from the command execution.

Return type

str

static version()

Obtain the version of uber-apk-signer.

Returns

The stdout from the command execution.

Return type

str