8000 Support for changes to AndroidManifest.xml · Issue #30 · ksg97031/frida-gadget · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support for changes to AndroidManifest.xml #30
Open
@gradyl16

Description

@gradyl16

Motivation

Some applications don't ship with any native libraries. In this case, the android manifest will have a line something like:

<application android:extractNativeLibs="false" ...>

You may be able to patch the application properly in all other respects, but if this is retained, you will receive something like the following error on installation:

adb: failed to finalize session
Failure [INSTALL_FAILED_INVALID_APK: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]

A simple fix would be to change the aforementioned flag to true. However, if you're having issues rebuilding resources, then you generally have to skip the resource decoding during compilation (i.e. with the --no-res flag). This requires one to manually decode the AndroidManifest.xml, make the change, reencode it, then recompile.

Request

I'm hoping you can include a feature (perhaps another cmd line flag) that allows a user of frida-gadget to specify either just a yes/no for whether they would like to modify this part of the manifest, or just one that automatically checks the value of this attribute and modifies it accordingly (since you need it set to true to install the patched application regardless).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0