-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathupdate.sh
39 lines (36 loc) · 963 Bytes
/
update.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
copy_library() {
if echo "$ABI" | grep 64; then
DES="`find /data/app -type d -name *$PKG*`/lib/*64"
if echo $DES | grep $PKG; then
for NAMES in $NAME; do
if [ -f /system/lib64/$NAMES ]; then
cp -f /system/lib64/$NAMES $DES
else
cp -f /system/apex/*/lib64/$NAMES $DES
cp -f /apex/*/lib64/$NAMES $DES
fi
done
chmod 0755 $DES/*
chown 1000.1000 $DES/*
fi
else
DES="`find /data/app -type d -name *$PKG*`/lib/*"
if echo $DES | grep $PKG; then
for NAMES in $NAME; do
if [ -f /system/lib/$NAMES ]; then
cp -f /system/lib/$NAMES $DES
else
cp -f /system/apex/*/lib/$NAMES $DES
cp -f /apex/*/lib/$NAMES $DES
fi
done
chmod 0755 $DES/*
chown 1000.1000 $DES/*
fi
fi
}
ABI=`getprop ro.product.cpu.abi`
PKG=com.miui.gallery
NAME="libnativehelper.so libmiuinative.so libmiuiblur.so
libimage_arcsoft_4plus.so libstlport_shared.so"
copy_library