com.widevine.tools.android.apksigtool
Class ApkSigTool
java.lang.Object
com.widevine.tools.android.apksigtool.ApkSigTool
public class ApkSigTool
- extends java.lang.Object
Apk signing tool
Takes an apk, computes a hash over the dex file contained within the
apk, signs it, stores the signature and certificate in a resources
file and inserts this in the apk.
Syntax:
java ApkSigTool
The private key file needs to be in DER format.
The certificate needs to an X.509 certificate in PEM format.
version 1.0
Constructor Summary |
ApkSigTool(java.lang.String apkFileName,
java.lang.String keyFileName,
java.lang.String certFileName)
ApkSigTool constructor |
Method Summary |
static void |
main(java.lang.String[] args)
Takes an apk, computes a hash over the dex file contained within the
apk, signs it, stores the signature and certificate in a resources
file and inserts this in the apk. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApkSigTool
public ApkSigTool(java.lang.String apkFileName,
java.lang.String keyFileName,
java.lang.String certFileName)
- ApkSigTool constructor
- Parameters:
apkFileName
- - apk file namekeyFileName
- - private file namecertFileName
- - certificate file name
main
public static void main(java.lang.String[] args)
- Takes an apk, computes a hash over the dex file contained within the
apk, signs it, stores the signature and certificate in a resources
file and inserts this in the apk.
- Parameters:
args
- - Takes in three arguments, apk file, private key file
(DER format), certificate file (X.509)