Closed dvalter closed 4 years ago
Could you try using apktool
to manually decode the patched APK objection produces -> modify the manifest as suggested -> repackaging again with apktool
and checking if it works? This should be a relatively simple check to add to the patcher though.
@dvalter I've tried to replicate your error, but with my app it succeeds, and runs on an AVD.
<?xml version="1.0" encoding="utf-8" standalone="no"?>
Can you possibly send us a copy of your full error message and maybe your manifest file to help us in replicating the error you are seeing?
@leonjza it's exactly what I tried and it worked for me. @StingraySA I managed to replicate the same behavior on a basic template from Android Studio. There're my apk's. app-debug.apk.gz app-debug.objection.apk.gz
PR #353 just landed, which will fix this in the next release! 🎉
Thank you for a great tool and a quick response to this issue. I tested the APK I originally had this problem with, and now code from master patches it correctly.
@leonjza I know this ticket is closed, but is there a way to include libfrida-gadget.so file without compression in the first place ? Modifying AndroidManifest.xml is time consuming. Probably editing apktool.yml works ?
Describe the bug Android apps with
android:extractNativeLibs=false
won't work after patchingTo Reproduce Steps to reproduce the behavior:
Expected behavior App will be installed
Evidence / Logs / Screenshots In logcat:
E NativeLibraryHelper: Library 'libfrida-gadget.so' is compressed - will not be able to open it directly from apk.
In adb install output:Environment (please complete the following information):
Possible fix Remove extractNativeLibs flag from the manifest during patching