根据我在Java的经验,jarsigner用于为JAVA ( JAR )文件生成签名,并验证签名JAR文件的签名。
令我惊讶的是,Android还使用jarsigner到签署Android应用程序包(APK),这与JAR格式不同。
jarsigner不需要将二进制文件打包到JAR中吗?它是如何在引擎盖下工作的?
发布于 2016-02-29 18:27:40
APK文件只是具有不同内容的压缩文件。
来自http://docs.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html
The JAR feature enables the packaging of class files, images, sounds, and
other digital data in a single file for faster and easier distribution. A tool
named jar enables developers to produce JAR files.
(Technically, any zip file can also be considered a JAR file, although when
created by the jar command or processed by the jarsigner command, JAR files
also contain a META-INF/MANIFEST.MF file.)https://stackoverflow.com/questions/35706687
复制相似问题