def get_properties(self, get_running_apps=True, lazy=False):
if get_running_apps:<EOL><INDENT>output = self.adb_shell(SCREEN_ON_CMD + (SUCCESS1 if lazy else SUCCESS1_FAILURE0) + "<STR_LIT>" +<EOL>AWAKE_CMD + (SUCCESS1 if lazy else SUCCESS1_FAILURE0) + "<STR_LIT>" +<EOL>WAKE_LOCK_SIZE_CMD + "<STR_LIT>" +<EOL>CURRENT_APP_CMD + "<STR_LIT>" +<EOL>RUNNING_APPS_CMD)<EOL><DEDENT>else:<EOL><INDENT>output = self.adb_shell(SCREEN_ON_CMD + (SUCCESS1 if lazy else SUCCESS1_FAILURE0) + "<STR_LIT>" +<EOL>AWAKE_CMD + (SUCCESS1 if lazy else SUCCESS1_FAILURE0) + "<STR_LIT>" +<EOL>WAKE_LOCK_SIZE_CMD + "<STR_LIT>" +<EOL>CURRENT_APP_CMD)<EOL><DEDENT>if output is None:<EOL><INDENT>return None, None, None, None, None<EOL><DEDENT>if not output:<EOL><INDENT>return False, False, -<NUM_LIT:1>, None, None<EOL><DEDENT>screen_on = output[<NUM_LIT:0>] == '<STR_LIT:1>'<EOL>if len(output) < <NUM_LIT:2>:<EOL><INDENT>return screen_on, False, -<NUM_LIT:1>, None, None<EOL><DEDENT>awake = output[<NUM_LIT:1>] == '<STR_LIT:1>'<EOL>lines = output.strip().splitlines()<EOL>if len(lines[<NUM_LIT:0>]) < <NUM_LIT:3>:<EOL><INDENT>return screen_on, awake, -<NUM_LIT:1>, None, None<EOL><DEDENT>wake_lock_size = int(lines[<NUM_LIT:0>].split("<STR_LIT:=>")[<NUM_LIT:1>].strip())<EOL>if len(lines) < <NUM_LIT:2>:<EOL><INDENT>return screen_on, awake, wake_lock_size, None, None<EOL><DEDENT>matches = WINDOW_REGEX.search(lines[<NUM_LIT:1>])<EOL>if matches:<EOL><INDENT>(pkg, activity) = matches.group("<STR_LIT>", "<STR_LIT>")<EOL>current_app = {"<STR_LIT>": pkg, "<STR_LIT>": activity}<EOL><DEDENT>else:<EOL><INDENT>current_app = None<EOL><DEDENT>if not get_running_apps or len(lines) < <NUM_LIT:3>:<EOL><INDENT>return screen_on, awake, wake_lock_size, current_app, None<EOL><DEDENT>running_apps = [line.strip().rsplit('<STR_LIT:U+0020>', <NUM_LIT:1>)[-<NUM_LIT:1>] for line in lines[<NUM_LIT:2>:] if line.strip()]<EOL>return screen_on, awake, wake_lock_size, current_app, running_apps<EOL>
Get the ``screen_on``, ``awake``, ``wake_lock_size``, ``current_app``, and ``running_apps`` properties.