summaryrefslogtreecommitdiffstats
path: root/jni
diff options
context:
space:
mode:
authorSunil Jogi <sunil.jogi@nxp.com>2012-04-10 12:43:49 -0700
committerMartijn Coenen <maco@google.com>2012-04-20 12:14:29 -0700
commit16c9bd97838d7004f39269290b8a3c147d90d1c7 (patch)
tree87da85ef4abe72d0f8f3c9357a728d7d4fbe1f7c /jni
parent9cf867ea8bc3d21d9ecb550c9b0e654f6b3fd9e1 (diff)
downloadpackages_apps_nfc-16c9bd97838d7004f39269290b8a3c147d90d1c7.zip
packages_apps_nfc-16c9bd97838d7004f39269290b8a3c147d90d1c7.tar.gz
packages_apps_nfc-16c9bd97838d7004f39269290b8a3c147d90d1c7.tar.bz2
Added delay before NFC system recovery
Added delay before NFC system recovery if SE is in wired mode to complete possible pending transaction. Change-Id: I74f04e6d66342b94184083141c5d62341bdf209b
Diffstat (limited to 'jni')
-rw-r--r--jni/com_android_nfc.cpp1
-rw-r--r--jni/com_android_nfc_NativeNfcManager.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/jni/com_android_nfc.cpp b/jni/com_android_nfc.cpp
index fdfd656..d794d6e 100644
--- a/jni/com_android_nfc.cpp
+++ b/jni/com_android_nfc.cpp
@@ -68,6 +68,7 @@ JNIEnv *nfc_get_env()
JNIEnv *e;
if (vm->GetEnv((void **)&e, JNI_VERSION_1_6) != JNI_OK) {
ALOGE("Current thread is not attached to VM");
+ phLibNfc_Mgt_Recovery();
abort();
}
return e;
diff --git a/jni/com_android_nfc_NativeNfcManager.cpp b/jni/com_android_nfc_NativeNfcManager.cpp
index 298b087..f616919 100644
--- a/jni/com_android_nfc_NativeNfcManager.cpp
+++ b/jni/com_android_nfc_NativeNfcManager.cpp
@@ -608,6 +608,7 @@ void emergency_recovery(struct nfc_jni_native_data *nat) {
sleep(t);
}
}
+ phLibNfc_Mgt_Recovery();
abort(); // force a noisy crash
}