Skip to content

[bug] APKTool 2.12.0Unable to unpack properly #747

@Fuduji95

Description

@Fuduji95

The - version of line 230 in the path of object/tiles/patchers/android.py needs to be compatible
I made the modifications directly because it was for my own use

            self.required_commands['apktool']['location'],
            '-version',
        ]), timeout=self.command_run_timeout).out.strip()

Change to

 o = delegator.run(self.list2cmdline([
            self.required_commands['apktool']['location'],
            'version',
        ]), timeout=self.command_run_timeout).out.strip()

I have also deleted the two judgments at line 403, which seem to generate two '' statements in the command, causing the instruction to error

o = delegator.run(self.list2cmdline([
            self.required_commands['apktool']['location'],
            'decode',
            '-f',
            '-r' if self.skip_resources else '',
            '--only-main-classes' if self.only_main_classes else '',
            '-o',
            self.apk_temp_directory,
            self.apk_source
        ] + ([] if fix_concurrency_to is None else ['-j', fix_concurrency_to])), timeout=self.command_run_timeout)

Change to

 o = delegator.run(self.list2cmdline([
            self.required_commands['apktool']['location'],
            'decode',
            '-f',
            '-o',
            self.apk_temp_directory,
            self.apk_source
        ] + ([] if fix_concurrency_to is None else ['-j', fix_concurrency_to])), timeout=self.command_run_timeout)

Metadata

Metadata

Assignees

No one assigned

    Labels

    freshissueDefault label for new, untriaged issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions