Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to App. Have you connected the device? #21

Open
Jnchi opened this issue Jul 18, 2019 · 6 comments
Open

Can't connect to App. Have you connected the device? #21

Jnchi opened this issue Jul 18, 2019 · 6 comments

Comments

@Jnchi
Copy link

Jnchi commented Jul 18, 2019

frida-ps -U
 PID  Name
----  --------------------------------------------------------
2510  Camera
2661  Files
2662  Filza
2666  Photos
1637  ScreenshotServicesService
2660  AppName :: <-- I want this one
2123  User Authentication
1663  AppPredictionWidget
 708  AppleIDAuthAgent
2250  AssetCacheLocatorService
 628  BlueTool
[ . . . TRUNCATED . . . ]

:: Real app name has been redacted
fridump.py -v -U AppName
Can't connect to App. Have you connected the device?
DEBUG:timeout was reached

fridump.py -v -U ReportCrash
Can't connect to App. Have you connected the device?
DEBUG:ambiguous name; it matches: ReportCrash (pid: 2507), ReportCrash (pid: 2287)

frida-trace -U 2660
Failed to attach: timeout was reached

iPhone: iPhone 6s Plus
Model: A1634
iOS: 11.2.6
Electra: 1.3.2

See also: frida/frida-python#144, frida/frida-core#163

@Jnchi
Copy link
Author

Jnchi commented Jul 18, 2019

try:
    if USB:
        session = frida.get_usb_device().attach(APP_NAME)

Source: https://github.com/Nightbringer21/fridump/blob/master/fridump.py#L71

@Nightbringer21
Copy link
Owner

Can you provide a bit more information regarding the app that you are trying to attach to?

Primarily, does the app have any spaces in the name. If yes, you might need to enclose it within quotes.
E.g. fridump.py -v -U "App Name"

Second, I can see that frida-trace is not able to connect to the application as well. Are you sure that frida-server is running on the device?

@Jnchi
Copy link
Author

Jnchi commented Jul 24, 2019

Yes, the actual app name is a single word, e.g., "AppName". Also, frida-server was running fine on the device.

I was using Windows 10 on a laptop, but I tried from a MacBook instead, and I no longer had the issue. Feel free to close this.

@stirante
Copy link

stirante commented Nov 9, 2019

I know it's a bit old issue, but I found a workaround for windows here frida/frida-python#88

Just put 1 as a parameter for get_usb_device() and maybe base it on enumerate_devices()

@poldenais
Copy link

Can you provide a bit more information regarding the app that you are trying to attach to?

Primarily, does the app have any spaces in the name. If yes, you might need to enclose it within quotes.
E.g. fridump.py -v -U "App Name"

Second, I can see that frida-trace is not able to connect to the application as well. Are you sure that frida-server is running on the device?

@Nightbringer21 if an app name has two spaces in it does it matter. Like "App Test Name"?

I'm getting fridump: error: unrecognized arguments: Test Name”

it's like it doesn't like the second space?

@tonyarris
Copy link

I was getting the same error using a lightning cable. I switched to a classic USB cable and it ran fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants