You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the wiki and the code, it seems the patching strategy is the same for all applications and rely on loading the gadget from the main activity.
It seems however that when the APK does already include native libraries, it is easier and less error-prone to rely on lief to embed frida-gadget in a previously existing native library. See this source for instance.
Additionnally, sometimes the rebundling fails due to aapt/aapt2, which is well described in the wiki. I'm wondering whether there is a reason for aapt2 not to be used by default, or at least why not automatically falling back to aapt2 when the initial strategy fails?
Happy to have more feedbacks on this prior to coding, I can make PR to evolve the APK patching strategy if this is useful,
Thanks,
Best
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
From the wiki and the code, it seems the patching strategy is the same for all applications and rely on loading the gadget from the main activity.
It seems however that when the APK does already include native libraries, it is easier and less error-prone to rely on
lief
to embedfrida-gadget
in a previously existing native library. See this source for instance.Additionnally, sometimes the rebundling fails due to
aapt
/aapt2
, which is well described in the wiki. I'm wondering whether there is a reason foraapt2
not to be used by default, or at least why not automatically falling back toaapt2
when the initial strategy fails?Happy to have more feedbacks on this prior to coding, I can make PR to evolve the APK patching strategy if this is useful,
Thanks,
Best
Beta Was this translation helpful? Give feedback.
All reactions