diff options
author | attn1 <attn1.repo@gmail.com> | 2011-01-31 18:59:47 -0500 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2011-01-31 23:29:01 -0500 |
commit | e00995c0d70133a2b6d00ce4fb1cc4f971e8b651 (patch) | |
tree | 76b945843298eafa046ba48bc9e678810c8ec648 /prebuilt | |
parent | 78d1ac1346c64b51933f80c17740f270447dc295 (diff) | |
download | vendor_replicant-e00995c0d70133a2b6d00ce4fb1cc4f971e8b651.zip vendor_replicant-e00995c0d70133a2b6d00ce4fb1cc4f971e8b651.tar.gz vendor_replicant-e00995c0d70133a2b6d00ce4fb1cc4f971e8b651.tar.bz2 |
Allow Kineto only on TMUS/Google
Change-Id: Iea318a277000e5b1dc299074ff5cf8a3a302073f
Diffstat (limited to 'prebuilt')
-rw-r--r-- | prebuilt/common/bin/chkkineto.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/prebuilt/common/bin/chkkineto.sh b/prebuilt/common/bin/chkkineto.sh new file mode 100644 index 0000000..41f4d96 --- /dev/null +++ b/prebuilt/common/bin/chkkineto.sh @@ -0,0 +1,35 @@ +#!/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 [ "$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 |