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
Nick 7d6d8c11dc sanders: Fix path of check_features.sh (#17)
*Also correct the path of the nfc, compass & DTV files
2018-07-19 03:02:49 -03:00

15 lines
432 B
Bash

#!/sbin/sh
sku=`getprop ro.boot.hardware.sku`
if [ "$sku" = "XT1687" ]; then
# XT1687 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/com.android.nfc_extras.xml
rm -r /system/app/NfcNci
else
# Only XT1687 variant got a compass
rm /vendor/etc/permissions/android.hardware.sensor.compass.xml
fi