From 5040f60c9a23a63f0e8e5029ac1d0b73ac58d7d3 Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Tue, 23 Oct 2012 20:51:03 -0700 Subject: Delay sending EE-wipe APDUs. Work around an issue where sending the wipe APDUs at the same time as the SE sends its HCI configuration to the NFCC can cause the persistent HCI state to become incorrect. Bug: 7387638 Change-Id: I11a73e3ad7875c5b1d755efde0a7a803427b7468 --- src/com/android/nfc/NfcService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java index c7b0bba..caa2db0 100755 --- a/src/com/android/nfc/NfcService.java +++ b/src/com/android/nfc/NfcService.java @@ -659,6 +659,13 @@ public class NfcService implements DeviceHostListener { return; } + + // TODO: remove this hack + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + } + try { mEeWakeLock.acquire(); try { -- cgit v1.1