objection icon indicating copy to clipboard operation
objection copied to clipboard

Objection error message in non-rooted android device

Open ganesh2183 opened this issue 4 years ago • 12 comments

OS: Windows 10 Python version: 3.8.2 Frida version: 15.0.9

Patched android apk for Non-rooted android. Trying to connect to non-rooted android device using objection. Unable to connect to android device, how to solve this issue.

16278828406077073580405835093822

ganesh2183 avatar Aug 02 '21 05:08 ganesh2183

Hey, this is due to a recent change in Frida. A workaround is to find the process ID (PID) when launching the app using frida-ps -U, then use that PID and use it with objection like this; objection --gadget PID explore

hope this helps :)

nivzye avatar Aug 04 '21 15:08 nivzye

Thanks for your reply.

Once patched apk installed into non-rooted android device. When i run frida-ps -U command, I m seeing only "waiting for USB device to appear..." It is not showing any PIDs, why??

How to solve this.

ganesh2183 avatar Aug 05 '21 05:08 ganesh2183

Are you using a physical device or emulator?

nivzye avatar Aug 05 '21 07:08 nivzye

can you adb into the device? adb shell

nivzye avatar Aug 05 '21 07:08 nivzye

I m using real device and able to run adb shell command.

ganesh2183 avatar Aug 05 '21 08:08 ganesh2183

Hi, any update on this issue.

ganesh2183 avatar Aug 10 '21 05:08 ganesh2183

@ganesh2183 I'll suggest you try and get just the vanilla frida command working and connected to your app first.

leonjza avatar Aug 10 '21 06:08 leonjza

What is vanilla Frida command to check it is working.

Pls need your help

ganesh2183 avatar Aug 11 '21 12:08 ganesh2183

@ganesh2183 I'll suggest you try and get just the vanilla frida command working and connected to your app first.

@leonjza Tried Frida command, it is working as expected with Android emulator. With frida-ps -Uia command it list all process running in emulator.

But when try with non rooted android device (real device) , we are getting the above error message as 'device not found'.

Please help me to solve this.

ganesh2183 avatar Sep 29 '21 15:09 ganesh2183

@leonjza Could you help to resolve this issue.

ganesh2183 avatar Oct 04 '21 03:10 ganesh2183

Sorry, I don't really know what is wrong. If frida-ps is not working for you on a real device, then objection probably wont either.

The best I can do now is to tell you that this is the function call that is of interest in case you want to spend some time debugging.

leonjza avatar Oct 04 '21 04:10 leonjza

Upgrade frida to the latest version Upgrade frida tools Patch the APK with the latest frida gadget Once installed -> open the APK -> frida-ps -U (get the PID) -> Use the PID to open the APK (objection --gadget "PID" explore)

Not sure why I'm not able to open it through the package name. but this surely helped me.

Give a heads up if that works for you too

sky281998 avatar Oct 19 '21 10:10 sky281998