Skip to content

Incorrect ARB indices for Recovery ZIPs #2

@IgorEisberg

Description

@IgorEisberg

From your source code:

def main():
    """
    check anti-rollback index in xbl file
    """
    file_type = check_file()
    makedirs("tmp", exist_ok=True)
    file = argv[1]
    if file_type == 'zip':
        print('Checking ARB from Recovery ROM')
        extract_zip(file)
        **check_file()**
    elif file_type == 'tgz':
        print('Checking ARB from Fastboot ROM')
        extract_tar(file)
        check_flash_script()
    else:
        print("Something went wrong!")
    rmtree("tmp/")
  1. You sure about that line? Shouldn't it be check_xbl(), which isn't used anywhere in the script?
  2. Even if replaced with check_xbl(), the returned value is incorrect. Returns false indexes for known "anti: 4" ROMs: 3 for whyred and 1 for dipper. Only indicates that the check_xbl() looks for the wrong thing.
  3. Besides xbl.* (xbl.elf and xbl.img) there's also sbl1.mbn on sakura (known "anti: 4" device as well), and if modified check_xbl() to read that too, returns: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions