diff --git a/tools/dexpreopt/dexpreopt.py b/tools/dexpreopt/dexpreopt.py index 376f1359d..b5c9ce194 100755 --- a/tools/dexpreopt/dexpreopt.py +++ b/tools/dexpreopt/dexpreopt.py @@ -431,7 +431,12 @@ def ReadFileList(ep, dir_list, timeout=0): if not output: Trace('Could not ls ' + d) return None - ret += ['%s/%s' % (d, f) for f in output.splitlines()] + # This is a work-around for the ARMv7 emulation bug. + # XXX: Switch back to the commented-out line once the bug is fixed!! + for f in output.splitlines(): + if not (f == 'Maps.apk' or f == 'SholesQuickOffice.apk'): + ret += ['%s/%s' % (d, f)] + # ret += ['%s/%s' % (d, f) for f in output.splitlines()] return ret @@ -679,7 +684,10 @@ def InstallCacheFiles(cache_system_dir, out_system_dir): if not os.path.exists(odex_file): if root.endswith('/system/app') or root.endswith('/system/framework'): Trace('jar/apk %s has no .odex file %s' % (jar_file, odex_file)) - return False + # This is a work-around for the ARMv7 emulation bug. + # XXX: Switch back to the commented-out line once the bug is fixed!! + continue + # return False else: continue