summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-10-23 20:51:03 -0700
committerMartijn Coenen <maco@google.com>2012-10-23 20:51:03 -0700
commit5040f60c9a23a63f0e8e5029ac1d0b73ac58d7d3 (patch)
tree2dbe6317d5c50e260963abf46f2308c3fcece66d
parentb340c6cb76ce38a28d0a775dfaeb027b364fe884 (diff)
downloadpackages_apps_nfc-5040f60c9a23a63f0e8e5029ac1d0b73ac58d7d3.zip
packages_apps_nfc-5040f60c9a23a63f0e8e5029ac1d0b73ac58d7d3.tar.gz
packages_apps_nfc-5040f60c9a23a63f0e8e5029ac1d0b73ac58d7d3.tar.bz2
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
-rwxr-xr-xsrc/com/android/nfc/NfcService.java7
1 files changed, 7 insertions, 0 deletions
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 {