ROMResigner is an utility for signing whole Android firmwares and/or just individual apk/jar files.