nfc

Android - Listening to NFC Adapter State Changed

有些话、适合烂在心里 提交于 2019-12-19 21:23:08
问题 I am trying to build an application which uses NFC. The goal is to display a DialogFragment containing a button link to go the settings and change it manually and when the feature is enabled, disable the DialogFragment. Problem: If the user enables/disables NFC using the icon in the pull down notifications tray , then the onPause/onResume doesn't get called and misses the condition entirely. I am sure there is a receiver that I can register to instead and respond appropriately in real time.

How to obtain NFCEE_ADMIN permission on rooted phone?

一个人想着一个人 提交于 2019-12-19 11:33:14
问题 The NFCEE_ADMIN permission is signature level. However, is it possible to "cheat" to get this permission on a rooted phone ? Maybe using a technique similar to the way ClockSync does it ? I am trying to use reflexion techniques to get access to NFCExtras : mAdapter = NfcAdapter.getDefaultAdapter(this); try { Class mynfcextras = Class.forName("android.nfc.INfcAdapterExtras"); Method getnfcExtras = mAdapter.getClass().getMethod("getNfcAdapterExtrasInterface"); Object nfcExtras = getnfcExtras

ACR122u direct communication no response

南楼画角 提交于 2019-12-19 10:25:25
问题 I'm trying to access my ACR122u with java by sending direct command. The weird thing is i don't get any response and no errors.. This is my code: final static int IOCTL_SMARTCARD_ACR122_ESCAPE_COMMAND = 0x003136B0; ..... List<CardTerminal> terminals = null; TerminalFactory factory = TerminalFactory.getDefault(); terminals = factory.terminals().list(); CardTerminal terminal = terminals.get(0); Card card = terminal.connect("direct"); CardChannel channel = card.getBasicChannel(); byte[]

Read NFC tag without specific application?

放肆的年华 提交于 2019-12-19 09:48:18
问题 I was wondering if there is any way to save a string of text (URL) to an NFC tag, let us say MIFARE or NTAG203, that can be read by other devices (smartphones) without the need of any special tag reading application. I have tested several applications, e.g. Trigger for Android, and noticed that if the device reading the tag does not have the required application to read the data/instructions off the tag it still opens a URL that sends you to the Play Store to download that application. So

Cross platform Mobile development framework for NFC's

∥☆過路亽.° 提交于 2019-12-19 04:38:06
问题 I want to create an application for several mobile platforms (android, BB, iOS etc) which has the capability to use nfc peer to peer functionality. (for example, to read/write to a nfc reader/writer). I looked at mosync (because it allows us to write C/C++ code which i'm comfortable with) but their API does not specify anything about peer-to-peer nfc. It only supports read/write to/from nfc tags. So, which is the best platform that i can use to fulfill this need? (by best i mean flexible and

How to call iCarte SDK methods for scanning RFID

試著忘記壹切 提交于 2019-12-19 03:53:16
问题 I have iCarte Sdk which is used to read RFID tag values but i am not getting how to start with that sdk. i have set up my project according to the requirement of iCarte Sdk and i am able to get the hardware details using some methods provided in iCarte Sdk. But i am not getting how to initiate scanning the RFID tags. Any help would be appreciated. Thanks in advance. 来源: https://stackoverflow.com/questions/12073588/how-to-call-icarte-sdk-methods-for-scanning-rfid

How to pass Android intent to anyone but my own app?

坚强是说给别人听的谎言 提交于 2019-12-19 03:23:12
问题 I have a certain intent ( NDEF_DISCOVERED ), some of which I cannot handle correctly, so I want to redirect those to android's default nfc handler. So i take the intent, setComponent(null) , and then startActivity(intent) But.. it always comes back to my app in an infinite loop of intent throwing. Is there a way I can send off an intent to anyone but my app? Or send it to android's default nfc handler? EDIT: So I used vikram's answer to query the packagemanager for possible activities to

How does NFC mobile money transactions work?

▼魔方 西西 提交于 2019-12-18 21:53:08
问题 I know how NFC works, but how does it store money and transfer money? Is it connected to the user's bank account? If so how does that mechanism work in terms of the infrastructure? A detailed explanation would be appreciated. Thanks 回答1: NFC payment works just as any normal contactless card payment. Every card (even the "virtual" one you are using when paying with NFC) has an account it is bound to. It could be your debit account, or it could be an anonymous account used with an prepaid card.

Mifare Ultralight C Lock

☆樱花仙子☆ 提交于 2019-12-18 18:28:12
问题 I'm attempting to lock a Mifare Ultralight C tag. I want to set NDEF pages 0x04 to 0x27 to read-only. I think this can be achieved via Ndef.makeReadonly() . Additionally, I would like to set pages 0x29 to 0x2F to be password protected (for read and write) so they can only be accessed after authentication was successful. I'm struggling to understand which bytes need to set in lock bytes (page 0x28, bytes 0, 1) and if sectors 0x2A and 0x2B need to be set as well. 回答1: I'm attempting to set NDEF

Recover sector in Mifare Classic 1k with overwritten permission bits

时间秒杀一切 提交于 2019-12-18 16:50:55
问题 I have mistakenly overwritten sector 1 block 7 of one of my Mifare classic 1k tags. It was meant for testing and the 16 byte data that I wrote on block 7 is shown below: 0xaa 0xaa 0xaa 0xaa 0xbb 0xbb 0xbb 0xbb 0xcc 0xcc 0xcc 0xcc 0xdd 0xdd 0xdd 0xdd If not mistaken, by doing so, my access keys and permission bits have become as following: Key-A: 0xaa 0xaa 0xaa 0xaa 0xbb 0xbb Key-B: 0xcc 0xcc 0xdd 0xdd 0xdd 0xdd Permisssion Bits: --> 0xbb 0xbb 0xcc I have tried to use Key-A and Key-B as shown