- ANDROID_MANIFEST_ZIP_ENTRY_NAME - Static variable in class com.android.apksig.apk.ApkUtils
-
Name of the Android manifest ZIP entry in APKs.
- ApkFormatException - Exception in com.android.apksig.apk
-
Indicates that an APK is not well-formed.
- ApkFormatException(String) - Constructor for exception com.android.apksig.apk.ApkFormatException
-
- ApkFormatException(String, Throwable) - Constructor for exception com.android.apksig.apk.ApkFormatException
-
- ApkSigner - Class in com.android.apksig
-
APK signer.
- ApkSigner.Builder - Class in com.android.apksig
-
- ApkSigner.SignerConfig - Class in com.android.apksig
-
Configuration of a signer.
- ApkSigner.SignerConfig.Builder - Class in com.android.apksig
-
- ApkSignerEngine - Interface in com.android.apksig
-
APK signing logic which is independent of how input and output APKs are stored, parsed, and
generated.
- ApkSignerEngine.InputJarEntryInstructions - Class in com.android.apksig
-
Instructions about how to handle an input APK's JAR entry.
- ApkSignerEngine.InputJarEntryInstructions.OutputPolicy - Enum in com.android.apksig
-
Output policy for an input APK's JAR entry.
- ApkSignerEngine.InspectJarEntryRequest - Interface in com.android.apksig
-
Request to inspect the specified JAR entry.
- ApkSignerEngine.OutputApkSigningBlockRequest - Interface in com.android.apksig
-
- ApkSignerEngine.OutputApkSigningBlockRequest2 - Interface in com.android.apksig
-
Request to add the specified APK Signing Block to the output APK.
- ApkSignerEngine.OutputJarSignatureRequest - Interface in com.android.apksig
-
Request to add JAR signature (aka v1 signature) to the output APK.
- ApkSignerEngine.OutputJarSignatureRequest.JarEntry - Class in com.android.apksig
-
JAR entry.
- ApkSigningBlock(long, DataSource) - Constructor for class com.android.apksig.apk.ApkUtils.ApkSigningBlock
-
Constructs a new ApkSigningBlock.
- ApkSigningBlockNotFoundException - Exception in com.android.apksig.apk
-
Indicates that no APK Signing Block was found in an APK.
- ApkSigningBlockNotFoundException(String) - Constructor for exception com.android.apksig.apk.ApkSigningBlockNotFoundException
-
- ApkSigningBlockNotFoundException(String, Throwable) - Constructor for exception com.android.apksig.apk.ApkSigningBlockNotFoundException
-
- ApkUtils - Class in com.android.apksig.apk
-
APK utilities.
- ApkUtils.ApkSigningBlock - Class in com.android.apksig.apk
-
Information about the location of the APK Signing Block inside an APK.
- ApkUtils.ZipSections - Class in com.android.apksig.apk
-
Information about the ZIP sections of an APK.
- ApkVerifier - Class in com.android.apksig
-
APK signature verifier which mimics the behavior of the Android platform.
- ApkVerifier.Builder - Class in com.android.apksig
-
- ApkVerifier.Issue - Enum in com.android.apksig
-
Error or warning encountered while verifying an APK's signatures.
- ApkVerifier.IssueWithParams - Class in com.android.apksig
-
- ApkVerifier.Result - Class in com.android.apksig
-
Result of verifying an APKs signatures.
- ApkVerifier.Result.V1SchemeSignerInfo - Class in com.android.apksig
-
Information about a JAR signer associated with the APK's signature.
- ApkVerifier.Result.V2SchemeSignerInfo - Class in com.android.apksig
-
Information about an APK Signature Scheme v2 signer associated with the APK's signature.
- asDataSink(OutputStream) - Static method in class com.android.apksig.util.DataSinks
-
Returns a
DataSink which outputs received data into the provided
OutputStream.
- asDataSink(RandomAccessFile) - Static method in class com.android.apksig.util.DataSinks
-
Returns a
DataSink which outputs received data into the provided file, sequentially,
starting at the beginning of the file.
- asDataSink(MessageDigest...) - Static method in class com.android.apksig.util.DataSinks
-
Returns a
DataSink which forwards data into the provided
MessageDigest
instances via their
update method.
- asDataSource(ByteBuffer) - Static method in class com.android.apksig.util.DataSources
-
Returns a
DataSource backed by the provided
ByteBuffer.
- asDataSource(RandomAccessFile) - Static method in class com.android.apksig.util.DataSources
-
Returns a
DataSource backed by the provided
RandomAccessFile.
- asDataSource(RandomAccessFile, long, long) - Static method in class com.android.apksig.util.DataSources
-
Returns a
DataSource backed by the provided region of the
RandomAccessFile.
- getAdditionalJarEntries() - Method in interface com.android.apksig.ApkSignerEngine.OutputJarSignatureRequest
-
Returns JAR entries that must be added to the output APK.
- getAndroidManifest(DataSource) - Static method in class com.android.apksig.apk.ApkUtils
-
Returns the contents of the APK's AndroidManifest.xml.
- getApkSigningBlock() - Method in interface com.android.apksig.ApkSignerEngine.OutputApkSigningBlockRequest
-
Deprecated.
Returns the APK Signing Block.
- getApkSigningBlock() - Method in interface com.android.apksig.ApkSignerEngine.OutputApkSigningBlockRequest2
-
Returns the APK Signing Block.
- getByteBuffer(long, int) - Method in interface com.android.apksig.util.DataSource
-
Returns a buffer holding the contents of the specified chunk of data from this data source.
- getCertificate() - Method in class com.android.apksig.ApkVerifier.Result.V1SchemeSignerInfo
-
Returns this signer's signing certificate or null if not available.
- getCertificate() - Method in class com.android.apksig.ApkVerifier.Result.V2SchemeSignerInfo
-
Returns this signer's signing certificate or null if not available.
- getCertificateChain() - Method in class com.android.apksig.ApkVerifier.Result.V1SchemeSignerInfo
-
Returns the certificate chain for the signer's public key.
- getCertificates() - Method in class com.android.apksig.ApkSigner.SignerConfig
-
Returns the certificate(s) of this signer.
- getCertificates() - Method in class com.android.apksig.ApkVerifier.Result.V2SchemeSignerInfo
-
Returns this signer's certificates.
- getCertificates() - Method in class com.android.apksig.DefaultApkSignerEngine.SignerConfig
-
Returns the certificate(s) of this signer.
- getCodename() - Method in exception com.android.apksig.apk.CodenameMinSdkVersionException
-
Returns the codename.
- getContents() - Method in class com.android.apksig.apk.ApkUtils.ApkSigningBlock
-
Returns the data source which provides the full contents of the APK Signing Block,
including its footer.
- getData() - Method in class com.android.apksig.ApkSignerEngine.OutputJarSignatureRequest.JarEntry
-
Returns the uncompressed data of this JAR entry.
- getDataSink() - Method in interface com.android.apksig.ApkSignerEngine.InspectJarEntryRequest
-
Returns the data sink into which the entry's uncompressed data should be sent.
- getDebuggableFromBinaryAndroidManifest(ByteBuffer) - Static method in class com.android.apksig.apk.ApkUtils
-
Returns true if the APK is debuggable according to its AndroidManifest.xml.
- getEntryName() - Method in interface com.android.apksig.ApkSignerEngine.InspectJarEntryRequest
-
Returns the name of the JAR entry.
- getErrors() - Method in class com.android.apksig.ApkVerifier.Result
-
Returns errors encountered while verifying the APK's signatures.
- getErrors() - Method in class com.android.apksig.ApkVerifier.Result.V1SchemeSignerInfo
-
Returns errors encountered while verifying this signer's JAR signature.
- getErrors() - Method in class com.android.apksig.ApkVerifier.Result.V2SchemeSignerInfo
-
- getIndex() - Method in class com.android.apksig.ApkVerifier.Result.V2SchemeSignerInfo
-
Returns this signer's 0-based index in the list of signers contained in the
APK's APK Signature Scheme v2 signature.
- getInspectJarEntryRequest() - Method in class com.android.apksig.ApkSignerEngine.InputJarEntryInstructions
-
Returns the request to inspect the JAR entry or null if there is no need to
inspect the entry.
- getIssue() - Method in class com.android.apksig.ApkVerifier.IssueWithParams
-
Returns the type of this issue.
- getMinSdkVersionFromBinaryAndroidManifest(ByteBuffer) - Static method in class com.android.apksig.apk.ApkUtils
-
Returns the lowest Android platform version (API Level) supported by an APK with the
provided AndroidManifest.xml.
- getName() - Method in class com.android.apksig.ApkSigner.SignerConfig
-
Returns the name of this signer.
- getName() - Method in class com.android.apksig.ApkSignerEngine.OutputJarSignatureRequest.JarEntry
-
Returns the name of this ZIP entry.
- getName() - Method in class com.android.apksig.ApkVerifier.Result.V1SchemeSignerInfo
-
Returns a user-friendly name of the signer.
- getName() - Method in class com.android.apksig.DefaultApkSignerEngine.SignerConfig
-
Returns the name of this signer.
- getOutputPolicy() - Method in class com.android.apksig.ApkSignerEngine.InputJarEntryInstructions
-
Returns the output policy for this entry.
- getPackageNameFromBinaryAndroidManifest(ByteBuffer) - Static method in class com.android.apksig.apk.ApkUtils
-
Returns the package name of the APK according to its AndroidManifest.xml or
null if package name is not declared.
- getPaddingSizeBeforeApkSigningBlock() - Method in interface com.android.apksig.ApkSignerEngine.OutputApkSigningBlockRequest2
-
Returns the number of 0x00 bytes the caller must place immediately before APK Signing
Block.
- getParams() - Method in class com.android.apksig.ApkVerifier.IssueWithParams
-
Returns the parameters of this issue.
- getPrivateKey() - Method in class com.android.apksig.ApkSigner.SignerConfig
-
Returns the signing key of this signer.
- getPrivateKey() - Method in class com.android.apksig.DefaultApkSignerEngine.SignerConfig
-
Returns the signing key of this signer.
- getSignatureBlockFileName() - Method in class com.android.apksig.ApkVerifier.Result.V1SchemeSignerInfo
-
Returns the name of the JAR entry containing this signer's JAR signature block file.
- getSignatureFileName() - Method in class com.android.apksig.ApkVerifier.Result.V1SchemeSignerInfo
-
Returns the name of the JAR entry containing this signer's JAR signature file.
- getSignerCertificates() - Method in class com.android.apksig.ApkVerifier.Result
-
Returns the verified signers' certificates, one per signer.
- getStartOffset() - Method in class com.android.apksig.apk.ApkUtils.ApkSigningBlock
-
Returns the start offset (in bytes, relative to start of file) of the APK Signing Block.
- getV1SchemeIgnoredSigners() - Method in class com.android.apksig.ApkVerifier.Result
-
Returns information about JAR signers ignored by the APK's signature verification
process.
- getV1SchemeSigners() - Method in class com.android.apksig.ApkVerifier.Result
-
Returns information about JAR signers associated with the APK's signature.
- getV2SchemeSigners() - Method in class com.android.apksig.ApkVerifier.Result
-
Returns information about APK Signature Scheme v2 signers associated with the APK's
signature.
- getWarnings() - Method in class com.android.apksig.ApkVerifier.Result
-
Returns warnings encountered while verifying the APK's signatures.
- getWarnings() - Method in class com.android.apksig.ApkVerifier.Result.V1SchemeSignerInfo
-
Returns warnings encountered while verifying this signer's JAR signature.
- getWarnings() - Method in class com.android.apksig.ApkVerifier.Result.V2SchemeSignerInfo
-
- getZipCentralDirectoryOffset() - Method in class com.android.apksig.apk.ApkUtils.ZipSections
-
Returns the start offset of the ZIP Central Directory.
- getZipCentralDirectoryRecordCount() - Method in class com.android.apksig.apk.ApkUtils.ZipSections
-
Returns the number of records in the ZIP Central Directory.
- getZipCentralDirectorySizeBytes() - Method in class com.android.apksig.apk.ApkUtils.ZipSections
-
Returns the size (in bytes) of the ZIP Central Directory.
- getZipEndOfCentralDirectory() - Method in class com.android.apksig.apk.ApkUtils.ZipSections
-
Returns the contents of the ZIP End of Central Directory.
- getZipEndOfCentralDirectoryOffset() - Method in class com.android.apksig.apk.ApkUtils.ZipSections
-
Returns the start offset of the ZIP End of Central Directory record.
- setCreatedBy(String) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets the value of the Created-By field in JAR signature files.
- setCreatedBy(String) - Method in class com.android.apksig.DefaultApkSignerEngine.Builder
-
Sets the value of the Created-By field in JAR signature files.
- setDebuggableApkPermitted(boolean) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets whether the APK should be signed even if it is marked as debuggable
(android:debuggable="true" in its AndroidManifest.xml).
- setDebuggableApkPermitted(boolean) - Method in class com.android.apksig.DefaultApkSignerEngine.Builder
-
Sets whether the APK should be signed even if it is marked as debuggable
(android:debuggable="true" in its AndroidManifest.xml).
- setInputApk(File) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets the APK to be signed.
- setInputApk(DataSource) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets the APK to be signed.
- setMaxCheckedPlatformVersion(int) - Method in class com.android.apksig.ApkVerifier.Builder
-
Sets the newest Android platform version for which the APK is verified.
- setMinCheckedPlatformVersion(int) - Method in class com.android.apksig.ApkVerifier.Builder
-
Sets the oldest Android platform version for which the APK is verified.
- setMinSdkVersion(int) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets the minimum Android platform version (API Level) on which APK signatures produced
by the signer being built must verify.
- setOtherSignersSignaturesPreserved(boolean) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets whether signatures produced by signers other than the ones configured in this engine
should be copied from the input APK to the output APK.
- setOtherSignersSignaturesPreserved(boolean) - Method in class com.android.apksig.DefaultApkSignerEngine.Builder
-
Sets whether signatures produced by signers other than the ones configured in this engine
should be copied from the input APK to the output APK.
- setOutputApk(File) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets the location of the output (signed) APK.
- setOutputApk(ReadableDataSink) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets the readable data sink which will receive the output (signed) APK.
- setOutputApk(DataSink, DataSource) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets the sink which will receive the output (signed) APK.
- setV1SigningEnabled(boolean) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets whether the APK should be signed using JAR signing (aka v1 signature scheme).
- setV1SigningEnabled(boolean) - Method in class com.android.apksig.DefaultApkSignerEngine.Builder
-
Sets whether the APK should be signed using JAR signing (aka v1 signature scheme).
- setV2SigningEnabled(boolean) - Method in class com.android.apksig.ApkSigner.Builder
-
Sets whether the APK should be signed using APK Signature Scheme v2 (aka v2 signature
scheme).
- setV2SigningEnabled(boolean) - Method in class com.android.apksig.DefaultApkSignerEngine.Builder
-
Sets whether the APK should be signed using APK Signature Scheme v2 (aka v2 signature
scheme).
- setZipEocdCentralDirectoryOffset(ByteBuffer, long) - Static method in class com.android.apksig.apk.ApkUtils
-
Sets the offset of the start of the ZIP Central Directory in the APK's ZIP End of Central
Directory record.
- sign() - Method in class com.android.apksig.ApkSigner
-
Signs the input APK and outputs the resulting signed APK.
- size() - Method in interface com.android.apksig.util.DataSource
-
Returns the amount of data (in bytes) contained in this data source.
- slice(long, long) - Method in interface com.android.apksig.util.DataSource
-
Returns a data source representing the specified region of data of this data source.