Closed declan554 closed 4 years ago
Exception: Unable to find smali to patch!
This is the important part of the error. objection tries to automatically determine a suitable place to patch the target APK so that the Frida gadget can be loaded, usually in the class for the launchable activity. That logic is here. There are many reasons why it could fail, but in most cases you can just specify a different class to target and it should launch ok. The patchapk
sub command takes the --target-class
flag (ref), where you can specify a fully qualified class to use instead of the launchable activity parsed from the apps manifest.
@leonjza
but in most cases you can just specify a different class to target and it should launch ok.
How am I supposed to find out which class to load?
How am I supposed to find out which class to load?
You can use a decompiler to look for classes.
You can use a decompiler to look for classes.
What class am I looking for exactly, if the Android manifest's main Activity isn't the one?
I am trying to patch a apk that has been packed with DexProtector to run Dynamic analysis on the apk. I am getting the bellow error run I run the command. I am able to decompile it using Apktool manually.