Re-enable dynamic UICC idle timeout switching.
Bug: 8048494
Change-Id: I093b285cc8fa289ef2ba02f5e301fe312cad7e72
diff --git a/nci/jni/SecureElement.cpp b/nci/jni/SecureElement.cpp
index 1c5a6de..0448b60 100755
--- a/nci/jni/SecureElement.cpp
+++ b/nci/jni/SecureElement.cpp
@@ -686,6 +686,9 @@
// Disable RF discovery completely while the DH is connected
android::startRfDiscovery(false);
+ // Disable UICC idle timeout while the DH is connected
+ android::setUiccIdleTimeout (false);
+
mNewSourceGate = 0;
if (gGatePipe == -1)
@@ -869,11 +872,14 @@
mIsPiping = false;
+ // Re-enable UICC low-power mode
+ android::setUiccIdleTimeout (true);
// Re-enable RF discovery
// Note that it only effactuates the current configuration,
// so if polling/listening were configured OFF (forex because
// the screen was off), they will stay OFF with this call.
android::startRfDiscovery(true);
+
return true;
}