Connecting to the patched apk via the network #678
Replies: 3 comments
-
|
hey @ChillVibesMushroom , this is a common confusion with objection’s networking flags. The --network flag is for connecting to a remote frida-server running on a device (like To connect to the gadget over the network, you need two things: Make the gadget listen on a TCP port. When you patch the APK, you can provide a configuration file to the gadget. Create a Then patch using: Connect using frida directly (or objection’s gadget flag). Once the patched APK is installed and running, you can connect with:
If you don’t want to patch a config, you can also push a The error you’re seeing is literally objection shouting “I can’t find frida-server”. Ignore it and just focus on getting the gadget to listen on TCP. Let me know if you run into firewall issues on the device—sometimes the port isn’t reachable unless you |
Beta Was this translation helpful? Give feedback.
-
|
I followed the steps provided above and ran into an error where the app won't install on my phone here is what objection looks like Using latest Github gadget version: 17.15.3 |
Beta Was this translation helpful? Give feedback.
-
|
I can confirm running this command alone does patch the apk and objection is working normally objection patchapk --source AndroGoat.apk my version of objection is objection: 1.12.5 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have successfully patched the apk using
objection patchapk --source AndroGoat.apk --skip-resources --ignore-nativelibs
while connected to usb I perform a stream install onto the device and then connect to the frida gadget so the app loads
./adb install -r /home/ronin/objection/AndroGoat.objection.apk
Performing Streamed Install
Success
objection explore
but when I run
objection --network --host 192.168.1.82 explore
I get this error
Using networked device @
192.168.1.61:27042Unable to connect to the frida server: unable to connect to remote frida-server
and Im not trying to connect to the frida server Im trying to connect to the frida gadget
Beta Was this translation helpful? Give feedback.
All reactions