Diff .art/.oat/.odex files now that they are deterministic
This also whitelists the ro.build.user property, which may change based
on host username.
Bug: 26687569
Change-Id: I8f3244c2325dd80a7961c474655f0c50670d1b46
diff --git a/tools/releasetools/target_files_diff.py b/tools/releasetools/target_files_diff.py
index 405c42b..acb7448 100755
--- a/tools/releasetools/target_files_diff.py
+++ b/tools/releasetools/target_files_diff.py
@@ -51,9 +51,6 @@
'RECOVERY/RAMDISK/selinux_version']:
return True
- # b/24201956 .art/.oat/.odex files are different with every build
- if name.endswith('.art') or name.endswith('.oat') or name.endswith('.odex'):
- return True
# b/25348136 libpac.so changes with every build
if name in ['SYSTEM/lib/libpac.so',
'SYSTEM/lib64/libpac.so']:
@@ -76,6 +73,7 @@
'ro.build.date=',
'ro.build.date.utc=',
'ro.build.host=',
+ 'ro.build.user=',
'ro.build.description=',
'ro.build.fingerprint=',
'ro.expect.recovery_id=',