sanders: update post-install script

* Permissions moved to vendor
* Fix deep sleep issue on variants without NFC

Change-Id: Ie5a24a3debe638a3f491d12aa62bf1775b955972
This commit is contained in:
Vachounet
2018-01-16 17:30:20 +01:00
committed by therootlord
parent 7041fc5533
commit f494fbc72d

View File

@@ -4,11 +4,11 @@ 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
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
else
# Only XT1687 variant got a compass
rm /system/etc/permissions/android.hardware.sensor.compass.xml
rm /system/vendor/etc/permissions/android.hardware.sensor.compass.xml
fi