Bug 876456 - (3) Tweak dumpsys command in adb getTopActivity; r=blassey

This commit is contained in:
Geoff Brown 2013-06-13 08:24:43 -06:00
parent a2afaa46e8
commit d39de3bdb8

View File

@ -104,8 +104,8 @@ class DroidADB(DeviceManagerADB, DroidMixin):
def getTopActivity(self):
package = None
data = self.shellCheckOutput(["dumpsys", "window", "input"])
# "dumpsys window input" produces many lines of input. The top/foreground
data = self.shellCheckOutput(["dumpsys", "window", "windows"])
# "dumpsys window windows" produces many lines of input. The top/foreground
# activity is indicated by something like:
# mFocusedApp=AppWindowToken{483e6db0 token=HistoryRecord{484dcad8 com.mozilla.SUTAgentAndroid/.SUTAgentAndroid}}
# or, on other devices: