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