Before you start

Save and export a clean, unsigned copy of your .APK. Important note: Upon saving the .APK file, a message is displayed informing you that the unsigned package is stored at the location you specified in the previous step. The message also reminds you to sign the application and to run the ZipAlign utility on your signed app package. The Symantec Sealed Wrap Kit takes care of these tasks for you. You may close the message and proceed with the following steps.

In your Symantec Sealed Program Partner Portal, with your app selected in the middle pane, in the right pane, click the download icon for the Symantec Sealed Libraries. The WrapSDK file downloads to your default download location and the Download a Test Assertion panel appears.

Apply the Symantec Sealed Library and the Test Assertion to your Android app

Open a terminal session and change the terminal context to the directory containing the
WrapSDK.ZIP
and
entitlement.assertion
files. For the purposes of illustration, we'll assume the files are in a directory named
Downloads
.

Note: On Windows 7 and Windows 8, you must run CMD.EXE as Administrator or the sealing process will fail.

Create a new directory- we'll call it
AppWrap
for this walk through- and change your terminal context to the new directory:
Downloads: mkdr
AppWrap
Downloads: cd
AppWrap

Copy the files,
WrapSDK.ZIP, entitlement.assertion
, and your app's .APK file to the new directory

Extract the contents of the WrapSDK archive to the directory you created in Step1.

Run the
Wrap.SDK
.jar file with the following options and parameters (assuming the same directory name as above):

AppWrap: java –jar WrapSDK.jar <app name>.apk entitlement.assertion

For instance, if the original app name is TestApp.apk, the command is:

AppWrap: java –jar WrapSDK.jar TestApp.apk entitlement.assertion

The wrap utility completes and places the wrapped Android app into the target directory with the file name, output.apk.

You can also use the following command options:

-o <output file name>
to specify a name for the outputted .APK file.

To specify a java keystore (which allows your sealed app to be upgraded at a later date):

-k <keystore name>.jks
Note: Only .JKS format is supported.

-p <keystore password>

-a <keystore alias>

In your portal, in the right pane, click Done!.

Upload the test version of your wrapped Android app to your portal

The final phase in the Android app sealing workflow is to add the Symantec Sealed version of your app to your Symantec Sealed Project Partner Portal.

In your Symantec Sealed Program Partner Portal, in the left pane, click Apps and in the center pane, highlight your app. In the right pane click Browse… .