31 lines
876 B
Bash
31 lines
876 B
Bash
#!/sbin/sh
|
|
|
|
# 1802 - Brazil
|
|
# 1803 - Europe
|
|
# 1804 - India
|
|
# 1805 - Europe
|
|
# 1806 - USA
|
|
|
|
sku=`getprop ro.boot.hardware.sku`
|
|
|
|
if [ "$sku" = "XT1806" ]; then
|
|
# XT1806 doesn't have NFC chip
|
|
rm /system/vendor/etc/permissions/android.hardware.nfc.xml
|
|
rm /system/vendor/etc/permissions/android.hardware.nfc.hce.xml
|
|
rm /system/vendor/etc/permissions/com.android.nfc_extras.xml
|
|
rm -r /system/app/NfcNci
|
|
fi
|
|
|
|
if ! [ "$sku" = "XT1802" ]; then
|
|
# Others variants doesn't have DTV support
|
|
rm /system/vendor/etc/permissions/com.motorola.hardware.dtv.xml
|
|
rm /system/vendor/etc/permissions/mot_dtv_permissions.xml
|
|
rm /system/vendor/lib/libdtvtuner.so
|
|
rm /system/vendor/lib64/libdtvtuner.so
|
|
rm /system/vendor/lib/libdtvhal.so
|
|
rm /system/vendor/lib64/libdtvhal.so
|
|
rm -r /system/vendor/app/DTVPlayer
|
|
rm -r /system/vendor/app/DTVService
|
|
fi
|
|
|