summaryrefslogtreecommitdiff
path: root/cppreopts
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2017-05-05 10:56:11 -0700
committerMathieu Chartier <mathieuc@google.com>2017-05-05 13:19:28 -0700
commit496f0213f35f681f90d503f8d45e5f29a3139b4f (patch)
treedd0daa8cae72be448bb00c9b72da83f03ec054ec /cppreopts
parent13143d67af0ea867f1b4ecc6019474090e04bb5b (diff)
downloadextras-496f0213f35f681f90d503f8d45e5f29a3139b4f.tar.gz
Add art files support to cppreopt copy
Preopted art files are now copied to classes.dex. Test: adb shell rm /data/system/packages.xml Test: adb shell rm -rf /data/dalvik-cache Test: adb reboot Test: adb shell ls -l /data/dalvik-cache/*/* | grep Calc Bug: 38033055 Change-Id: Ib7d1c65ff47cdb4ebb1829f6a87a885381aded15
Diffstat (limited to 'cppreopts')
-rw-r--r--cppreopts/cppreopts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppreopts/cppreopts.sh b/cppreopts/cppreopts.sh
index 9f21ac78..76f25d1b 100644
--- a/cppreopts/cppreopts.sh
+++ b/cppreopts/cppreopts.sh
@@ -50,7 +50,7 @@ if [ $# -eq 1 ]; then
# For each odex and vdex file do the copy task
# NOTE: this implementation will break in any path with spaces to favor
# background copy tasks
- for file in $(find ${mountpoint} -type f -name "*.odex" -o -type f -name "*.vdex"); do
+ for file in $(find ${mountpoint} -type f -name "*.odex" -o -type f -name "*.vdex" -o -type f -name "*.art"); do
real_name=${file/${mountpoint}/\/system}
dest_name=$(preopt2cachename ${real_name})
if ! test $? -eq 0 ; then