OSDN Git Service

Add a workaround for a platform JAR parsing bug.
authorFicus Kirkpatrick <ficus@android.com>
Fri, 24 Sep 2010 05:57:05 +0000 (22:57 -0700)
committerFicus Kirkpatrick <ficus@android.com>
Fri, 24 Sep 2010 17:24:53 +0000 (10:24 -0700)
commit7978d50edb9c4da0b8f4076412f092418da6e372
tree2a9b0ba8249c4b9ea13816fdd3757b7369cb1cdf
parent817a8ac99392228f894d18ea40b0fb4c1b6ca8fe
Add a workaround for a platform JAR parsing bug.

The java.util.jar implementation through Android 1.6 has a
bug where if the signature file in META-INF is a multiple
of 1024 bytes, it will throw an IOException attempting to
read it.

If signapk would produce a CERT.SF in a multiple of 1024
bytes, add an extra CRLF to the end of the file.

Bug: 3019677
Change-Id: I23d4a36e12e224be600d3ac39379b5b5a022a628
tools/signapk/SignApk.java