Skip to content

Concurrency control foor apktool #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CDuPlooy
Copy link
Contributor

@CDuPlooy CDuPlooy commented Apr 27, 2025

Sorry don't have a public test application for this, but did test on my side. If you have an APK that is particularly large (or has a weird dependency tree) you can run out of memory with patchapk since apktool(2) will try to use multiple threads. The solution I came across was to instruct it to be single threaded using -j 1

This PR adds that functionality:

objection patch_apk -s flappy.bird.apk -j 1

By default it will still use whatever apktool(2) uses for -j, but if you add the flag it'll use your int. Sorry about the dangling closed PR, needed a good git refresher :)

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.

1 participant