blob: a4f7399b57a5fa565d4377a17432f9dd78bf1610 [file] [log] [blame]
Andy McFadden0198b142009-04-02 14:48:56 -07001#!/bin/bash
2#
3# This requires read permission on /data/dalvik-cache. On an eng build this
4# works, on userdebug you will need to "adb root", or "su" followed by
5# "chmod 777 /data/dalvik-cache".
6
7# Get the list of files. Use "sed" to drop the trailing carriage return.
8files=`adb shell "cd /data/dalvik-cache; echo *" | sed -e s/.$//`
9
10# Check each file in turn. This is much faster with "dexdump -c", but that
11# was added post-cupcake.
12for file in $files; do
13 echo $file
14 errout=`adb shell "dexdump /data/dalvik-cache/$file > dev/null"`
15 echo $errout | grep ERROR > /dev/null
16 if [ $? -eq 0 ]; then
17 echo " Failure in $file: $errout"
18 fi
19done
20
21exit 0
22