I am trying to remove everything from my phone that I don't use via an edify updater-script.
I tried to remove NFC like this but when I rebooted I got a constant error popup saying "The NFC Service Has Stopped" and I had to re-flash to fix it.
Is there a safe way to completely remove NFC (not just turning it off in the settings)?
I tried to remove NFC like this but when I rebooted I got a constant error popup saying "The NFC Service Has Stopped" and I had to re-flash to fix it.
Code:
ui_print("Removing NFC");
delete("/system/etc/nfcee_access.xml");
delete("/system/etc/permissions/android.hardware.nfc.xml");
delete("/system/etc/permissions/com.cyanogenmod.nfc.enhanced.xml");
delete("/system/lib/hw/nfc.tuna.so");
delete("/system/lib/libnfc.so");
delete("/system/lib/libnfc_jni.so");
delete("/system/lib/libnfc_ndef.so");
delete_recursive("/system/app/nfc");
Aucun commentaire:
Enregistrer un commentaire