Skip to content
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

Use maybe_extract_from_apk for Gadget files #539

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

gergesh
Copy link
Contributor

@gergesh gergesh commented Jul 25, 2024

On Android, when apps have extractNativeLibs set to false, the
configuration and potentially script files for frida-gadget are not
extracted and cannot be read using FileUtils.

Copy link
Member

@oleavr oleavr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Sorry for the delay here.

I think it would be good to use the same library from the Vala code here, as the ElfModule API shouldn't be responsible for this.

@gergesh
Copy link
Contributor Author

gergesh commented Sep 13, 2024

I wasn't sure how to go about it without duplication of the code, care to point me in the right direction?

@gergesh gergesh force-pushed the unzip-gadget-files-android branch from be77e58 to b4c0ed4 Compare October 7, 2024 15:42
@oleavr oleavr force-pushed the unzip-gadget-files-android branch from b4c0ed4 to 7c21c4c Compare October 20, 2024 11:34
@oleavr
Copy link
Member

oleavr commented Oct 20, 2024

I wasn't sure how to go about it without duplication of the code, care to point me in the right direction?

Just pushed a rough attempt at it. Sorry it took me so long to get to this. Haven't tested the code yet, but it should go something like this.

The idea is that once (minimal) minizip-ng Vala bindings are in place, the duplication needed is so minuscule that it's acceptable to duplicate the logic.

On Android, when apps have `extractNativeLibs` set to `false`, the
configuration and potentially script files for frida-gadget are not
extracted and cannot be read from the filesystem.

Co-authored-by: Ole André Vadla Ravnås <oleavr@gmail.com>
@oleavr oleavr force-pushed the unzip-gadget-files-android branch from 7c21c4c to d6a0502 Compare October 20, 2024 14:38
@oleavr oleavr merged commit d774d0e into frida:main Oct 20, 2024
17 of 29 checks passed
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