This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
device_motorola_sanders-lin…/configs/check_features.sh
kubersharma001 e9d761d5e0 sanders: checkfeatures: Fixup DTV paths
Signed-off-by: ashwatthama <sai404142@gmail.com>
2020-10-10 15:57:05 +00:00

35 lines
1.1 KiB
Bash

#!/sbin/sh
sku=`getprop ro.boot.hardware.sku`
if [ "$sku" = "XT1806" ]; then
# XT1806 doesn't have NFC chip
rm /vendor/etc/permissions/android.hardware.nfc.xml
rm /vendor/etc/permissions/android.hardware.nfc.hce.xml
rm /vendor/etc/permissions/android.hardware.nfc.hcef.xml
rm /vendor/etc/permissions/com.android.nfc_extras.xml
rm -r /system/app/NfcNci
else
# Only XT1806 variant got a compass
rm /vendor/etc/permissions/android.hardware.sensor.compass.xml
fi
if ! [ "$sku" = "XT1802" ]; then
# Others variants doesn't have DTV support
rm /system/system/etc/permissions/com.motorola.hardware.dtv.xml
rm /system/system/etc/permissions/mot_dtv_permissions.xml
rm /vendor/lib/libdtvtuner.so
rm /vendor/lib64/libdtvtuner.so
rm /vendor/lib/libdtvhal.so
rm /vendor/lib64/libdtvhal.so
rm -r system/system/app/DTVPlayer
rm -r system/system/app/DTVService
fi
if [ "$sku" = "XT1804" ]; then
# XT1804 has additional thermal configs
mv /vendor/etc/thermal-engine-INDIA.conf /vendor/etc/thermal-engine.conf
else
rm /vendor/etc/thermal-engine-INDIA.conf
fi