nfc

Recover sector in Mifare Classic 1k with overwritten permission bits

浪子不回头ぞ 提交于 2019-12-18 16:50:07
问题 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

ACR122 - Card Emulation

有些话、适合烂在心里 提交于 2019-12-18 15:36:15
问题 How can I get the NFC contactless reader ACR122U to behave as a tag (card emulation mode)? The prospectus claims that the device can do card emulation, but the SDK does not seem to provide an example or documentation for this feature. Does anybody know how to do this? Is there additional software required? Please note that my target platform is MS Windows. Thanks in advance 回答1: For "Card Emulation" or in other words, "Configure as target and wait for initiators", please refer to here: http:/

ACR122 - Card Emulation

只谈情不闲聊 提交于 2019-12-18 15:36:06
问题 How can I get the NFC contactless reader ACR122U to behave as a tag (card emulation mode)? The prospectus claims that the device can do card emulation, but the SDK does not seem to provide an example or documentation for this feature. Does anybody know how to do this? Is there additional software required? Please note that my target platform is MS Windows. Thanks in advance 回答1: For "Card Emulation" or in other words, "Configure as target and wait for initiators", please refer to here: http:/

Launching NFC when screen is Locked in Android

放肆的年华 提交于 2019-12-18 12:52:58
问题 I want to launch My Application when we taps on NFC tag even Phone is Locked same as did in Google Wallet Application . I tried in following ways : 1) Tap NFC tag to launch my application after pressing Power button - Error : 05-23 22:00:22.949: D/NfcService(32443): EnableDisableDiscoveryTask: enable = false 05-23 22:00:22.964: D/NfcService(32443): NFC-C polling OFF 05-23 22:00:22.996: D/PhoneStatusBar(273): disable: < EXPAND icons alerts TICKER system_info BACK* HOME* RECENT CLOCK* > 05-23

Writing NFC tags using a Nexus S

て烟熏妆下的殇ゞ 提交于 2019-12-18 10:56:21
问题 I have a Gingerbread 2.3.4 powered Nexus S and I recently got some writable NFC tags. So far I can read them as blank tags, but I couldn't find a way to write data to them. All my research has lead me to this article: Writing tags with Nexus S from January ( before 2.3.4 release ). How do you write NFC tags inside your application, using your Nexus S? Any pointers? 回答1: I found the Android NFC API text and dev guide a bit tricky to follow so a bit of example code might help here. This is

NDEF Message with HCE Android

那年仲夏 提交于 2019-12-18 09:34:25
问题 I wanna emulate a host card with the HCE feature from Android. For that I extend the service class HostApduService and overwrite following method: public byte[] processCommandApdu(byte[] commandApdu, Bundle extras) { if (Arrays.equals(SELECT_APDU, commandApdu)) { NdefMessage message = new NdefMessage(new NdefRecord [] {NdefRecord.createTextRecord("en", "test"}); return message.toByteArray(); } else { return UNKNOWN_CMD_SW; } } With a second device its possible to receive data from the HCE

Is there a software that can change NFC Tag's serial number?

痞子三分冷 提交于 2019-12-18 06:57:49
问题 I ordered a bunch of NFC tags from a Chinese supplier (I know, red flags) with the promise that they will serialize my tags as instructed so it will work w/ our software and avoid serial duplicates. (Our software uses the tags' serial numbers, not the content.) Now the thousands of NFC tags arrived and it seems they have disregarded the proper serialization, and worst, half of the darn thing are duplicates (completely unusuable for our purpose!) So now I'm in a hole :( So is there a software

How to check my NFC TAG ID (UID)?

妖精的绣舞 提交于 2019-12-18 05:26:07
问题 It is possible to know others NFC TAG ID when we used to the APK & TAG each phones. For example, Phone A and B try to tag. Then Phone A can know Phone B's NFC TAG ID (4 Bytes - HEX). But I wanna know how to know my NFC TAG ID on my phone. Not used other phones. If you know any other information, please give me your advice on that. 回答1: A phone does not necessarily have a fixed anti-collision identifier ("NFC Tag ID", as you call it). For instance, it could have an anti-collision identifier,

Android NFC tag received with broadcastreceiver

别来无恙 提交于 2019-12-18 04:55:10
问题 I'm trying to catch NFC tag in broadcast receiver so I wrote a simple BR that prints "asd" in the onReceive(). In the manifest xml it's desribed like that: and I receive only this and no print at all.... 01-31 16:37:18.980: ERROR/MediaPlayer(990): setAudioStream called in state 8 01-31 16:37:18.980: ERROR/MediaPlayer(990): error (-38, 0) 01-31 16:37:18.980: ERROR/MediaPlayer(990): start called in state 0 01-31 16:37:18.980: ERROR/MediaPlayer(990): error (-38, 0) 01-31 16:37:18.988: ERROR

Android NFC start service

独自空忆成欢 提交于 2019-12-18 04:46:12
问题 I'm curious if Android NFC service allows the developer to start a Service (or IntentService for that matter) when NFC tag is scanned? From Android Developers: When a device scans a tag that has NDEF data on it, but could not be mapped to a MIME or URI , the tag dispatch system tries to start an activity with the ACTION_TECH_DISCOVERED intent. It appears that only a new Activity can be launched, not Service, although it could receive the same Intent filter. 回答1: Although not the direct method