Forums - The device ADB address was forwarded twice, and the SnapdragonProfiler could not correctly return data

1 post / 0 new
The device ADB address was forwarded twice, and the SnapdragonProfiler could not correctly return data
97cool
Join Date: 9 Aug 22
Posts: 1
Posted: Wed, 2022-09-07 00:47
Due to the working environment, I need to forward the device ADB address twice, the SnapdragonProfiler can establish a connection, but cannot send back data correctly.
 
The Working On panel in the lower right corner is always in Receiving state.
 
If the ADB address is not re-forwarded, and the device is directly connected to the computer, everything will work fine.
 
Specifically, my detailed steps are as follows:
=============
- Turn on the remote debugging service on the phone
     - adb -s device tcpip 5555
- Use other port forwarding services to forward port 5555 of the device. Here, nginx is used as an example. The Nginx configuration is as follows:
````nginx
  stream {
      server {
          listen 4006;
          proxy_connect_timeout 5s;
          proxy_timeout 20s;
          proxy_pass Mobile_IP_address:5555;
      }
  }
````
- Restart nginx service `nginx -s reload`
- Connect the phone to the computer through the forwarding address `adb connect Computer_IP_address:4006` (make sure the connection is successful here)
- Start SnapdragonProfiler to start scraping data
  • Up0
  • Down0

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.