com.widevine.tools.android.apksigtool
Class ApkSigTool

java.lang.Object
  extended by 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


Nested Class Summary
protected static class ApkSigTool.DebugLevel
           
protected static class ApkSigTool.HashType
           
 
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
 

Constructor Detail

ApkSigTool

public ApkSigTool(java.lang.String apkFileName,
                  java.lang.String keyFileName,
                  java.lang.String certFileName)
ApkSigTool constructor

Parameters:
apkFileName - - apk file name
keyFileName - - private file name
certFileName - - certificate file name
Method Detail

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)