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
Dybios 69639cfa67 sanders: add XT1804 thermal configs from stock OPSS28.65-36-6
Indian variant has additional thermal configs for a few stuff.
Also added check so that those configs don't appear in other models.

Signed-off-by: ronaxdevil <pratabidya.007@gmail.com>
2019-06-29 15:49:05 +02: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 /vendor/etc/permissions/com.motorola.hardware.dtv.xml
rm /vendor/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 /vendor/app/DTVPlayer
rm -r /vendor/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