@property<EOL><INDENT>def current_app(self):<DEDENT>
current_focus = self.adb_shell(CURRENT_APP_CMD)<EOL>if current_focus is None:<EOL><INDENT>return None<EOL><DEDENT>current_focus = current_focus.replace("<STR_LIT:\r>", "<STR_LIT>")<EOL>matches = WINDOW_REGEX.search(current_focus)<EOL>if matches:<EOL><INDENT>(pkg, activity) = matches.group("<STR_LIT>", "<STR_LIT>")<EOL>return {"<STR_LIT>": pkg, "<STR_LIT>": activity}<EOL><DEDENT>logging.warning("<STR_LIT>", current_focus)<EOL>return None<EOL>
Return the current app.