Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android .SF file

I want to know what are the differences between a MANIFEST.MF file and a .SF file in the Android context.

As I can see, MANIFEST.MF file has the sha1 digest of each source file of an Android .apk.

However .SF also lists all sources and computes a SHA1 digest. On what is this digest value computed??

Any ideas?

Also how to view a .RSA(Signature block file)?

Thanks in advance

like image 561
user489152 Avatar asked Nov 22 '10 12:11

user489152


People also ask

What is the META INF folder Android?

Jar files are used by all types of java applications, they have a specific structure - the META-INF folder contains the manifest information and other metadata about the java package carried by the jar file.

What is CERT SF in Android?

MF contains sha1-digest encoded in base64 for all the files in apk, CERT. SF contains sha1-digest of file MANIFEST. MF and all items in it, and CERT. RSA contains signature for file CERT.


1 Answers

The digests in the .SF file are computed by hashing the 3 lines of the corresponding entry in the .MF file. The .RSA (or .DSA) file contains a signature of the .SF file created from the signing private key, along with the public certificate chain of the signing key. The .RSA (or .DSA) file is in a binary (i.e. non-human readable) format that can be programmatically parsed with effort. More information can be found at http://download.oracle.com/javase/1.3/docs/tooldocs/win32/jarsigner.html

like image 54
user320962 Avatar answered Sep 21 '22 13:09

user320962