Add --ignore_signing_key option in compare tool

Even though some apps has identical contents(code, resource), they looks
different from each other if signing keys are different.

So, for efficiency, add --ignore_signing_key option in compare tool.
If it is set, sha1sum logic is changed.
As-is: sha1sum apk_file
To-be: add every sha1sum of files that are in apk_file except META-INF,
and then get sha1sum from sha1sums

Bug: 135503972
Test: compare two apk of which code and resource is same but signing key
is diffent.

Change-Id: I2176fdfce5f0fc2181073a1a1183c51dfbfaee49
1 file changed