Ignore resources.arsc in apkdiff.py

Due to a bug described in:

https://issuetracker.google.com/issues/110237303

Ordering of resources can be non-deterministic.

A comment on the issue indicates that this may be resolved in
Android Gradle Plugin 3.4. We should revisit when we update.
This commit is contained in:
Greyson Parrelli 2019-05-11 10:46:19 -07:00
parent b6dc25a368
commit 3211dd2a8f

View File

@ -4,8 +4,9 @@ import sys
from zipfile import ZipFile from zipfile import ZipFile
class ApkDiff: class ApkDiff:
# resources.arsc is ignored due to https://issuetracker.google.com/issues/110237303
IGNORE_FILES = ["META-INF/MANIFEST.MF", "META-INF/SIGNAL_S.RSA", "META-INF/SIGNAL_S.SF"] # May be fixed in Android Gradle Plugin 3.4
IGNORE_FILES = ["META-INF/MANIFEST.MF", "META-INF/SIGNAL_S.RSA", "META-INF/SIGNAL_S.SF", "resources.arsc"]
def compare(self, sourceApk, destinationApk): def compare(self, sourceApk, destinationApk):
sourceZip = ZipFile(sourceApk, 'r') sourceZip = ZipFile(sourceApk, 'r')