Forums - Snapdragon Profiler was unable to connect to the specified activity

6 posts / 0 new
Last post
Snapdragon Profiler was unable to connect to the specified activity
wangra
Join Date: 25 Nov 22
Posts: 3
Posted: Thu, 2022-12-15 15:43

Hello,

I am using UE4 to build a Quest 2 application and trying to use Snapdragon Profiler to capture/trace. 

Whenever I try to launch the apk from Snapdragon Profiler, I get this error message:

"

Snapdragon Profiler was unable to connect to the specified activity.

Verify that the application has the debuggable attribute set.

If the debugger is unable to connect, please verify that no other applications are using the JDWP debug port (e.g. Android Studio, Android Device Monitor, etc)

"

In AndroidManifest.xml, I have added "android:debuggable="true" " in <application>, and 

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" / >
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" / >
 
Anyone has any suggestion on how to solve this problem?
 
thanks
  • Up0
  • Down0
eshaw Moderator
Join Date: 12 May 16
Location: San Diego
Posts: 142
Posted: Fri, 2022-12-16 11:18

Snapdragon Profiler also requires apps to have internet permission enabled to connect for profiling.

 

  • Up0
  • Down0
wangra
Join Date: 25 Nov 22
Posts: 3
Posted: Mon, 2022-12-19 10:27

is <uses-permission android:name="android.permission.INTERNET" / > enough or do I need to add something else?

 

here are all the permissions in the AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" / >
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" / >
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" / >
  <uses-permission android:name="com.android.vending.CHECK_LICENSE" / >
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" / >
  <uses-permission android:name="com.android.vending.BILLING" / >
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" / >
  <uses-permission android:name="com.oculus.permission.HAND_TRACKING" / >
 
By the way, is Snapdragon Profiler work with OpenXR automatically? (no Present call in OpenXR apps)
 
Thanks
  • Up0
  • Down0
eshaw Moderator
Join Date: 12 May 16
Location: San Diego
Posts: 142
Posted: Tue, 2022-12-20 14:38

Sorry, I overlooked a key fact in your initial post: that you are developing for Quest 2. Meta has developed their own profiling ecosystem for Quest 2 that will likely interfere with Snapdragon Profiler. For best results on Quest 2 I recommend using the Meta tools. You can find more information at https://developer.oculus.com/.

Eric

  • Up0
  • Down0
wangra
Join Date: 25 Nov 22
Posts: 3
Posted: Tue, 2022-12-20 18:30

Thanks for the reply

Ah, that make sense. Good to know

 

 

  • Up0
  • Down0
mc049276
Join Date: 15 Mar 23
Posts: 1
Posted: Mon, 2023-04-10 02:23

Hello , 
I am facing the similar problem - trying to get vulkan calls for settings app but it is showing that not debugable attribute .

Here settings app is the one that is preloaded in the device .what to do , please help ?

thanks & Regards ,
your Well Wisher ...

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.