So I’ve had success with profiling an android game before (on Gear VR), but for some unknown reason I am unable to do so now. Some information on the setup:
-
I’m running Unity 5.3.4f1 (pro license).
-
I’ve opened the tcpip port with adb (adb tcpip 5555)
-
Connected to it (adb connect [ip]:5555)
-
Port forwarded (adb forward tcp:54999 localabstract:Unity-[package identifier])
-
Selected the right ‘Active Profiler’ (AndroidPlayer@127.0.0.1:54999)
-
Have the ‘Record’ selected.
-
Build is a development build (and tried with and without auto connect)
-
Firewall disabled
-
Same subnet on the network
-
Android SDK is on 23.0.3 (I’ve read/heard from multiple sources that 24 is broken with Unity).
I can reach the phone with ping just fine. I’ve tried deleting the android manifest file to make sure nothing is in there that could interfere.
But nothing is coming through. No message that it can’t connect or freeze while it tries to connect. It simply accepts the active profiler on the local port just fine, without doing anything after that.
The editor log file doesn’t mention anything related.
Connecting the profiler to the opened port ([ip]:5555) results in a message that it can’t connect.
Is the profiler perhaps broken in 5.3.4f1 ? Updating Unity at this time in the project is going to be quite difficult as various graphics-related things in the game are breaking.
Is there anything else that I can try in order to get the profiler to work?