Skip to content

Update patch-apk.py#19

Open
Syth-1 wants to merge 2 commits into
TheDauntless:masterfrom
Syth-1:patch-1
Open

Update patch-apk.py#19
Syth-1 wants to merge 2 commits into
TheDauntless:masterfrom
Syth-1:patch-1

Conversation

@Syth-1

@Syth-1 Syth-1 commented Jun 18, 2026

Copy link
Copy Markdown

fix: fixes a bug reading apktool from windows path leads to an error not found, added execute in shell with input '\n' to exit out of the apktool.bat wrapper, ensure we only read first line if available else give appropriate error.

Syth-1 and others added 2 commits June 18, 2026 01:25
fix: fixes a bug reading apktool from windows path leads to an error not found, added execute in shell with input '\n' to exit out of the apktool.bat wrapper, ensure we only read first line if available else give appropriate error.
@TheDauntless

Copy link
Copy Markdown
Owner

Hi @Syth-1 !

This actually breaks the script on Linux, because you can't have shell=True and give a list of arguments on linux. The length check will also never be true because .split will return an array with one element (an empty string) which is >0.

Can you try my fix to see if it works on Windows?

@Syth-1

Syth-1 commented Jun 22, 2026

Copy link
Copy Markdown
Author

hi, thank you -- new changes worked perfectly on windows! forgot need to also do the same with sign_with_apksigner too as thats still throwing an error (made the changes locally, forgot to include it part of my patch) 🫠

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