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
Vachounet 1c6db0a43f potter: manage advertised features for XT1687
* Drop unneeded features after flash using releasetools
2017-05-23 10:21:34 +02:00

14 lines
403 B
Bash

#!/sbin/sh
sku=`getprop ro.boot.hardware.sku`
if [ "$sku" = "XT1687" ]; then
# XT1687 doesn't have NFC chip
rm /system/etc/permissions/android.hardware.nfc.xml
rm /system/etc/permissions/android.hardware.nfc.hce.xml
rm /system/etc/permissions/com.android.nfc_extras.xml
else
# Only XT1687 variant got a compass
rm /system/etc/permissions/android.hardware.sensor.compass.xml
fi