Skip to content

Conversation

@radon-at-beeper
Copy link

@radon-at-beeper radon-at-beeper commented Oct 28, 2025

The previous code featured '-r' if self.skip_resources else '' as an element in the list that was passed to list2cmdline. This evaluates to a literal empty string if self.skip_resources is false, meaning a literal empty string gets included in the argument list to apktool. For obvious reasons this causes apktool to fail with a command-line syntax error.

In this PR I've corrected the logic to actually omit the -r argument when self.skip_resources is false, and include it otherwise. I also updated the logging so that if there is an error, the user is told the problematic command so that they can run it themselves.

There was some trailing whitespace adjacent to my change, so I removed it.

@IPMegladon
Copy link
Collaborator

Appologies, this is already fixed in #743, but I haven't gotten around to doing final testing on it to merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants