android-methods-profiler icon indicating copy to clipboard operation
android-methods-profiler copied to clipboard

Stuck at waiting for application...

Open felixlix45 opened this issue 1 year ago • 5 comments

Using the latest release, got stuck when start a new trace. Need some insight

  • Android Studio is closed
  • Activity Name filled or not filled (same result)

Macbook Pro M1

felixlix45 avatar Apr 04 '23 18:04 felixlix45

Thanks for reporting! Was it an app or a plugin? Is application debuggable (or release with rooted device) ?

Grigory-Rylov avatar Apr 06 '23 08:04 Grigory-Rylov

I also have a similar but not the same situation. In my case, opening the app manually works.

Machine: 2018 Intel MBP Android App: Debuggable on a non-rooted phone YAMP: Latest 23.01.17, standalone

esafirm avatar Jun 07 '23 03:06 esafirm

Hello, are you using correct main activity name? YAMP just trying to start that activity with ADB command like 'adb shell am start -n yourpackagename/.activityname' . Please try to execute that command in terminal with your package and activity name - will activity start?

Grigory-Rylov avatar Jun 07 '23 04:06 Grigory-Rylov

Hello, are you using correct main activity name? YAMP just trying to start that activity with ADB command like 'adb shell am start -n yourpackagename/.activityname' . Please try to execute that command in terminal with your package and activity name - will activity start?

You're right, I got the wrong Activity name. Checking the log it was a SecurityExcepiton because exported=false. Maybe we can have a better error message for this?

Now the issue is shifting, the application opened but I got Cannot find process <package name> message again

Now the log shows this error:

om.github.grishberg.tracerecorder.exceptions.AppTimeoutException: <package_name> not started

esafirm avatar Jun 08 '23 06:06 esafirm

You're right, I got the wrong Activity name. Checking the log it was a SecurityExcepiton because exported=false. Maybe we can have a better error message for this?

 Good idea!

Cannot find process

Is the android studio currently running ? Android Studio holds debug port and other applications can't see debug process. You can use YAMP as the plugin. Thus YAMP will reuse AS's debug port. Or you can kill android studio and try again.

Grigory-Rylov avatar Jun 13 '23 09:06 Grigory-Rylov