Skip to content

vegdragon/nfccsimulator

Repository files navigation

- How to add Nfc components into Android Emulator build
  build/target/product/core.mk:59:PRODUCT_PACKAGES += NfcNci libnfc-nci libnfc_nci

  PRODUCT_COPY_FILES += \
         packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt \
         frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
         frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
         frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
         frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml

- Disable NFC on startup
  NfcService.java
  case TASK_BOOT:
    ...
    // enableInternal();


- Alias
alias dk='./external/nfccsimulator/debug.sh | tee kernel_log.txt'
alias dm='external/nfccsimulator/dbgmw.sh'
alias dmc='adb shell NfcMiddlewareSimulator c /etc/nexus6p_arf04.2.0_nfcon_filtered.log | tee mw_log.txt'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published