• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[TOOL][APP][SIGN][APK/ZIP] Package Signer (Windows/Linux/Mac/Android)

Status
Not open for further replies.
Nov 10, 2016
35
43
0
Package Signer

This tool automatically sign an APK or an OTA update package with the Android test certificate. Comes with an Android application and a Java program for PC.


Features

Android
  • No root permission needed.
  • Currently supports Android testkeys only.
  • Simple file browser for choosing packages.
  • Automatically generates the output name based on the package name (if no output specified).

PC
  • Works as a single executable JAR (v3.0/3.1)
  • Easy dragging & dropping of packages (v2.1/2.2)
  • Multiple package signing function (v2.2)
  • Able to cancel the signing process (v2.0-2.2)

Both PC and Android version uses the same SignApk by The Android Open Source Project, modified differently according to the platform. But both versions does the same exact signature writing process and generates the same certificates.


Requirement

  • JDK at least version 7 (PC version)
  • Android 4.1 and up (Android version)


How to use?

  1. Specify the Package you want to sign.
  2. Choose an Output folder where to save it.
  3. Hit the Sign button to start signing it.


Changelog

Android Version

Version 1.1
  • Rewritten the whole application
  • Fixed the Layouts and components
  • Minor changes
Version 1.0
  • Initial

PC Version

Version 3.1
  • Minor changes
Version 3.0
  • All files & keys are bundled (No more external files included)
  • Removed Drag & Drop function (Removed FileDrop library)
  • Removed Multiple signing function
  • Removed Cancel signing function
Version 2.2
  • Supports multiple package signing
  • Minor changes
Version 2.1
  • Added Drag & Drop function (Using FileDrop library)
  • Minor changes
Version 2.0
  • Redesigned User Interface
  • Added Cancel signing function
  • Added Clear log function
  • Added Action shortcut keys
Version 1.1
  • Updated dialog messages
  • Minor changes
Version 1.0
  • Initial


Download

Download the latest versions of Package Signer.



Archived

Previous versions of Package Signer (see it here).


Source code

All the program's source code is available here.


References

  • Sun Jarsign Support, source code form the ZipSigner application by sir @kellinwood
  • SignApk by The Android Open Source Project used by Appium. Modified to be able to work on this program.
  • Commons IO library by Apache used to automatically generate the output package name.
  • Android File Browser library by Roger Keays used to support browsing of packages.
  • FileDrop library by iHarder used to support dragging and dropping of packages (on versions 2.1 & 2.2).

XDA:DevDB Information
[TOOL][APP][SIGN][APK/ZIP] Package Signer (Windows/Linux/Mac/Android) , ROM for the Android General

Contributors
Humble Potato II
ROM OS Version: 2.3.x Gingerbread

Version Information
Status: Testing

Created 2017-01-24
Last Updated 2017-01-24
 

Attachments

Last edited:
Nov 10, 2016
35
43
0
Haha. Well maybe you can ask for help to those who know. :D
Bro I've look on to the source code of kellinwood's ZipSigner, he uses the same com.android.signapk.SignApk.java and modify a lot of things to able to work on Android. The Apk Sign by Appium is also a modified copy of SignApk.java but works only through command line, and some Java classes are needed for their modified SignApk.java, like sun.misc.BASE64Encoder, and a lot more (which is not a native classes of Android)... So it is not that easy to make an Android app with a pure 100% Java. But the thing is, it is possible and will be a less coding than the ZipSigner by kellinwood if the aim of the app is to sign an APK or ZIP (OTA update) only with the testkey certificate.
 
  • Like
Reactions: HemanthJabalpuri
Status
Not open for further replies.