Forums - start via CLI

2 posts / 0 new
Last post
start via CLI
koen.brants
Join Date: 26 Apr 23
Posts: 1
Posted: Fri, 2023-05-26 07:05

Is it possible to run the SDP via CLI ? 
My snapdragon board is connected to a linux machine - monitorless. 
I would like to install the SDP, and run it via the terminal.

  • Up0
  • Down0
eshaw Moderator
Join Date: 12 May 16
Location: San Diego
Posts: 142
Posted: Fri, 2023-05-26 08:16

SDP does not support a CLI mode. However, you may be able to take advantage of ADB's client/server architechture to use Profiler in your configuration.

On your headless Linux machine, run the adb server in nodaemon mode:

adb kill-server

adb -a -P 5037 nodaemon server

Then, on your non-headless PC (assuming Windows), open a terminal and set an environment variable to point adb to the server:

set ADB_SERVER_SOCKET=tcp:<remote-host>:5037

Where <remote-host> is the name/ip of the Linux machine.

Now run Snapdragon Profiler from the same terminal, and Profiler should be able to find and connect to the device attached to your Linux machine. Note that for this to work you must have the same version of adb installed on both PCs.

  • 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.