summaryrefslogtreecommitdiff
path: root/cppreopts
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2019-10-03 14:16:38 +0100
committerAnton Hansson <hansson@google.com>2019-10-03 14:38:15 +0100
commitdafd85d7386dc2a56bc3840e508fcad87fb1ae54 (patch)
tree1e77d525aa7ed82d2d58f9c9d6292e2df7d6830d /cppreopts
parent0edad652cf4a011d30f47818d0d2c59f0929aaec (diff)
downloadextras-dafd85d7386dc2a56bc3840e508fcad87fb1ae54.tar.gz
Make cppreopts.sh deal with new layout
.odex and .vdex files on system_other are being moved to a subdir with the name of their source partition. Update cppreopts to recognize this and pass the right source path to preopt2cachename. Bug: 141707536 Test: manually verify name of dalvik-cache files post boot Test: dumpsys package [system-package]; verify reason=prebuilt Change-Id: Icb5b5307ad42b7c899e11212843ce4b96b015958
Diffstat (limited to 'cppreopts')
-rwxr-xr-xcppreopts/cppreopts.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppreopts/cppreopts.sh b/cppreopts/cppreopts.sh
index 3416e675..d409db8d 100755
--- a/cppreopts/cppreopts.sh
+++ b/cppreopts/cppreopts.sh
@@ -53,7 +53,7 @@ if [ $# -eq 1 ]; then
# 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" -o -type f -name "*.art"); do
- real_name=${file/${mountpoint}/\/system}
+ real_name=${file/${mountpoint}/}
dest_name=$(preopt2cachename ${real_name})
if ! test $? -eq 0 ; then
log -p i -t cppreopts "Unable to figure out destination for ${file}"