<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extract_secrets_from_android_rooted(adb_path='adb'):
 """Extract Steam Authenticator secrets from a rooted Android device Prerequisite for this to work: - rooted android device - `adb binary <https://developer.android.com/studio/command-line/adb.html>`_ - device in debug mode, connected and paired .. note:: If you know how to make this work, without requiring the device to be rooted, please open a issue on github. Thanks :param adb_path: path to adb binary :type adb_path: str :raises: When there is any problem :return: all secrets from the device, steamid as key :rtype: dict """

    data = subprocess.check_output([
        adb_path, 'shell', 'su', '-c',
        "'cat /data/data/com.valvesoftware.android.steam.community/files/Steamguard*'"
        ])

    # When adb daemon is not running, `adb` will print a couple of lines before our data.
    # The data doesn't have new lines and its always on the last line.
    data = data.decode('utf-8').split('\n')[-1]

    if data[0] != "{":
        raise RuntimeError("Got invalid data: %s" % repr(data))

    return {int(x['steamid']): x
            for x in map(json.loads, data.replace("}{", '}|||||{').split('|||||'))}