summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-09-21 11:04:32 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-09-21 11:04:32 -0700
commit7314bbedd6b1964f2082133f4c5dedc48cb8f986 (patch)
tree55cfb0dc55b781a3b9745f0a31389e99a1aa1453
parent5cb4232d98a8359b38d657d6855f0badfec6f021 (diff)
parent04b8291cd90635741c1a93cd19024cf07fe0dca8 (diff)
downloadpackages_apps_nfc-7314bbedd6b1964f2082133f4c5dedc48cb8f986.zip
packages_apps_nfc-7314bbedd6b1964f2082133f4c5dedc48cb8f986.tar.gz
packages_apps_nfc-7314bbedd6b1964f2082133f4c5dedc48cb8f986.tar.bz2
Merge "Don't hold the routing wakelock longer than a minute." into jb-mr1-dev
-rwxr-xr-xsrc/com/android/nfc/NfcService.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index e8fc9e4..ca1713d 100755
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -1420,7 +1420,7 @@ public class NfcService extends Application implements DeviceHostListener {
synchronized (this) {
if (!mWatchDogCanceled) {
// Trigger watch-dog
- Log.e(TAG, "Watch dog triggered");
+ Log.e(TAG, "--- NFC controller stuck while applying routing ---");
mDeviceHost.doAbort();
}
}
@@ -1840,7 +1840,11 @@ public class NfcService extends Application implements DeviceHostListener {
}
mScreenState = params[0].intValue();
- mRoutingWakeLock.acquire();
+ // HACK: We've seen applying the routing configuration
+ // getting stuck. The operation should normally easily
+ // complete within a minute, so don't hold the wakelock
+ // any longer than that.
+ mRoutingWakeLock.acquire(60000);
try {
applyRouting(false);
} finally {