blob: b94936e2770c65350d7b52fa0ce5fc12158da1d4 (
plain)
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
|
#!/sbin/sh
#
# Remove KINETO if TMUS or GOOGLE Radio firmware not preset.
#
c=`/system/bin/getprop ro.carrier`
p=/system/app/MS-HTCVISION-KNT20-02.apk
r=y
if [ "$c" = "TMUS" ];
then
r=n
fi
if [ "$c" = "GOOGLE" ];
then
r=n
fi
if [ "$c" = "ALL" ];
then
r=n
fi
if [ "$r" = "y" ];
then
if [ -f $p ];
then
rm -f /system/app/MS-HTCVISION-KNT20-02.apk
rm -f /system/lib/libkineto.so
rm -f /system/lib/libganril.so
rm -f /system/lib/librilswitch.so
sed 's/librilswitch.so/libhtc_ril.so/' /system/build.prop > /tmp/build.tmp
sed '/rilswitch/d' /tmp/build.tmp > /system/build.prop
chmod 644 /system/build.prop
rm /tmp/build*
fi
fi
exit 0
|