diff --git a/app/src/main/java/io/appium/uiautomator2/model/XPathFinder.java b/app/src/main/java/io/appium/uiautomator2/model/XPathFinder.java
index <HASH>..<HASH> 100644
--- a/app/src/main/java/io/appium/uiautomator2/model/XPathFinder.java
+++ b/app/src/main/java/io/appium/uiautomator2/model/XPathFinder.java
@@ -231,7 +231,7 @@ public class XPathFinder implements Finder {
 
   public static AccessibilityNodeInfo getRootAccessibilityNode() throws UiAutomator2Exception {
     final long timeoutMillis = 10000;
-    Device.waitForIdle(timeoutMillis);
+    Device.waitForIdle();
 
     long end = SystemClock.uptimeMillis() + timeoutMillis;
     while (true) {
Shouln't use hardcoded timeout for `waitForIdle()`. (#<I>)