forked from pwelyn/Android-Kitchen
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdo_debug_framework
More file actions
executable file
·67 lines (50 loc) · 1.31 KB
/
Copy pathdo_debug_framework
File metadata and controls
executable file
·67 lines (50 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
############################################################################
#
# Copyright (c) 2014 - by 越狱 (http://weibo.com/206021119)
#
# Android 厨房是100%免费。此脚本文件仅供个人或学习使用
#
############################################################################
base_dir=`pwd`
api_level=`scripts/get_api_level`
cd WORKING_*
num_jar_fr=`find system/framework | grep -c "\.jar$"`
cd ..
version=`scripts/get_smali_version`
cd WORKING_*
count=0
found_error=0
path=system/framework
echo
echo
echo "跳转到 $path ..."
echo
cd $path
grep_cmd=`find . | grep "\.jar$" | sed 's/.\///g' | sort -f`
if [ "$grep_cmd" == "" ]
then
echo "在 $path 中未发现任何东西!"
else
cp -f ../../../tools/deodex_files/baksmali-$version.jar baksmali.jar
cp -f ../../../tools/deodex_files/smali-$version.jar smali.jar
for debug_file in $grep_cmd
do
count=$(($count+1))
echo
echo "一共$num_jar_fr文件在$path: 正在操作第$count $debug_file"
while [ -e $debug_file ]
do
../../../scripts/do_debug_file $api_level $debug_file
if [ -e $odex_file ]
then
break
fi
done
done
rm -f baksmali.jar
rm -f smali.jar
echo
echo "完成 $path"
fi
cd ../..
cd $base_dir