Allow Kineto only on TMUS/Google
Change-Id: Iea318a277000e5b1dc299074ff5cf8a3a302073f
This commit is contained in:
parent
78d1ac1346
commit
e00995c0d7
35
prebuilt/common/bin/chkkineto.sh
Normal file
35
prebuilt/common/bin/chkkineto.sh
Normal file
@ -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
|
@ -58,6 +58,7 @@ include vendor/cyanogen/products/themes_common.mk
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/cyanogen/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
|
||||
vendor/cyanogen/prebuilt/common/bin/chkkineto.sh:system/bin/chkkineto.sh \
|
||||
vendor/cyanogen/prebuilt/common/bin/verify_cache_partition_size.sh:system/bin/verify_cache_partition_size.sh \
|
||||
vendor/cyanogen/prebuilt/common/etc/resolv.conf:system/etc/resolv.conf \
|
||||
vendor/cyanogen/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf \
|
||||
|
Loading…
Reference in New Issue
Block a user