-
Notifications
You must be signed in to change notification settings - Fork 8
/
findsymbol.sh
executable file
·50 lines (43 loc) · 1.75 KB
/
findsymbol.sh
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
#this is a crummy utilty you can use to find which libs are needed from the factory images
for filename in ~/Downloads/PH1-Images-PPR1.180610.091/s/system/lib64/*.so; do
#echo "$filename"
#nm -D $filename | grep $1 | grep "T"
var=$(nm -D $filename | grep $1 | grep "T")
[[ ! -z "$var" ]] && echo "$filename"
done
for filename in ~/Downloads/PH1-Images-PPR1.180610.091/s/system/lib64/hw/*.so; do
#echo "$filename"
#nm -D $filename | grep $1 | grep "T"
var=$(nm -D $filename | grep $1 | grep "T")
[[ ! -z "$var" ]] && echo "$filename"
done
for filename in ~/Downloads/PH1-Images-PPR1.180610.091/s/system/lib64/egl/*.so; do
#echo "$filename"
#nm -D $filename | grep $1 | grep "T"
var=$(nm -D $filename | grep $1 | grep "T")
[[ ! -z "$var" ]] && echo "$filename"
done
for filename in ~/Downloads/PH1-Images-PPR1.180610.091/v/lib64/*.so; do
#echo "$filename"
#nm -D $filename | grep $1 | grep "T"
var=$(nm -D $filename | grep $1 | grep "T")
[[ ! -z "$var" ]] && echo "$filename"
done
for filename in ~/Downloads/PH1-Images-PPR1.180610.091/s/system/lib64/vndk-28/*.so; do
#echo "$filename"
#nm -D $filename | grep $1 | grep "T"
var=$(nm -D $filename | grep $1 | grep "T")
[[ ! -z "$var" ]] && echo "$filename"
done
for filename in ~/Downloads/PH1-Images-PPR1.180610.091/s/system/lib64/vndk-sp-28/*.so; do
#echo "$filename"
#nm -D $filename | grep $1 | grep "T"
var=$(nm -D $filename | grep $1 | grep "T")
[[ ! -z "$var" ]] && echo "$filename"
done
for filename in ~/Downloads/PH1-Images-PPR1.180610.091/s/system/lib64/vndk-sp-28/hw/*.so; do
#echo "$filename"
#nm -D $filename | grep $1 | grep "T"
var=$(nm -D $filename | grep $1 | grep "T")
[[ ! -z "$var" ]] && echo "$filename"
done