diff options
author | Martijn Coenen <maco@google.com> | 2012-10-12 15:06:36 -0700 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-10-12 15:10:01 -0700 |
commit | 81aa9898af2f99506cb025e9d8e37252d80c42fa (patch) | |
tree | 37171cee55fa4dd7f4da95bd2097ebae439690ba /nci/jni | |
parent | 59f43aefee220afd41baa97ce2043017c171be73 (diff) | |
download | packages_apps_nfc-81aa9898af2f99506cb025e9d8e37252d80c42fa.zip packages_apps_nfc-81aa9898af2f99506cb025e9d8e37252d80c42fa.tar.gz packages_apps_nfc-81aa9898af2f99506cb025e9d8e37252d80c42fa.tar.bz2 |
Don't hold a timed wakelock.
We used to acquire a timed wakelock when either resuming
or suspending. We don't want to take a timed wakelock
when suspending, since we want to suspend asap, but also
don't want to underlock the wakelock.
Instead of taking a timed wakelock, just abort
the process in case the NFC controller hangs.
Bug: 7341879
Change-Id: Ibd2f468264f60a39db3cb271a6f05c50dfb559bf
Diffstat (limited to 'nci/jni')
-rwxr-xr-x | nci/jni/NativeNfcManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp index 81bb6b2..814f49b 100755 --- a/nci/jni/NativeNfcManager.cpp +++ b/nci/jni/NativeNfcManager.cpp @@ -1385,7 +1385,8 @@ static jboolean nfcManager_doActivateLlcp(JNIEnv *e, jobject o) *******************************************************************************/ static void nfcManager_doAbort(JNIEnv *e, jobject o) { - ALOGD("%s", __FUNCTION__); + ALOGE("%s: abort()", __FUNCTION__); + abort(); } |