sanders: Fix path of check_features.sh (#17)
*Also correct the path of the nfc, compass & DTV files
This commit is contained in:
@@ -4,11 +4,11 @@ sku=`getprop ro.boot.hardware.sku`
|
|||||||
|
|
||||||
if [ "$sku" = "XT1687" ]; then
|
if [ "$sku" = "XT1687" ]; then
|
||||||
# XT1687 doesn't have NFC chip
|
# XT1687 doesn't have NFC chip
|
||||||
rm /system/vendor/etc/permissions/android.hardware.nfc.xml
|
rm /vendor/etc/permissions/android.hardware.nfc.xml
|
||||||
rm /system/vendor/etc/permissions/android.hardware.nfc.hce.xml
|
rm /vendor/etc/permissions/android.hardware.nfc.hce.xml
|
||||||
rm /system/vendor/etc/permissions/com.android.nfc_extras.xml
|
rm /vendor/etc/permissions/com.android.nfc_extras.xml
|
||||||
rm -r /system/app/NfcNci
|
rm -r /system/app/NfcNci
|
||||||
else
|
else
|
||||||
# Only XT1687 variant got a compass
|
# Only XT1687 variant got a compass
|
||||||
rm /system/vendor/etc/permissions/android.hardware.sensor.compass.xml
|
rm /vendor/etc/permissions/android.hardware.sensor.compass.xml
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ def FullOTA_InstallEnd(info):
|
|||||||
ReplaceDeviceConfig(info)
|
ReplaceDeviceConfig(info)
|
||||||
|
|
||||||
def ReplaceDeviceConfig(info):
|
def ReplaceDeviceConfig(info):
|
||||||
info.script.Mount("/system")
|
info.script.Mount("/vendor")
|
||||||
info.script.AppendExtra('ui_print("Checking NFC and compass support");')
|
info.script.AppendExtra('ui_print("Checking NFC and compass support");')
|
||||||
info.script.AppendExtra('run_program("/sbin/sh", "/system/vendor/bin/check_features.sh");')
|
info.script.AppendExtra('run_program("/sbin/sh", "/vendor/bin/check_features.sh");')
|
||||||
info.script.Unmount("/system")
|
info.script.Unmount("/vendor")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user