attn1 | e00995c | 2011-01-31 18:59:47 -0500 | [diff] [blame] | 1 | #!/sbin/sh |
| 2 | # |
| 3 | # Remove KINETO if TMUS or GOOGLE Radio firmware not preset. |
| 4 | # |
| 5 | |
| 6 | c=`/system/bin/getprop ro.carrier` |
| 7 | p=/system/app/MS-HTCVISION-KNT20-02.apk |
| 8 | r=y |
| 9 | |
| 10 | if [ "$c" = "TMUS" ]; |
| 11 | then |
| 12 | r=n |
| 13 | fi |
| 14 | |
| 15 | if [ "$c" = "GOOGLE" ]; |
| 16 | then |
| 17 | r=n |
| 18 | fi |
| 19 | |
Christopher Lais | 493719d | 2011-02-12 15:00:06 -0600 | [diff] [blame] | 20 | if [ "$c" = "ALL" ]; |
| 21 | then |
| 22 | r=n |
| 23 | fi |
| 24 | |
attn1 | e00995c | 2011-01-31 18:59:47 -0500 | [diff] [blame] | 25 | if [ "$r" = "y" ]; |
| 26 | then |
| 27 | if [ -f $p ]; |
| 28 | then |
| 29 | rm -f /system/app/MS-HTCVISION-KNT20-02.apk |
| 30 | rm -f /system/lib/libkineto.so |
| 31 | rm -f /system/lib/libganril.so |
| 32 | rm -f /system/lib/librilswitch.so |
| 33 | sed 's/librilswitch.so/libhtc_ril.so/' /system/build.prop > /tmp/build.tmp |
| 34 | sed '/rilswitch/d' /tmp/build.tmp > /system/build.prop |
| 35 | chmod 644 /system/build.prop |
| 36 | rm /tmp/build* |
| 37 | fi |
| 38 | fi |
| 39 | |
| 40 | exit 0 |