I moved from Ubuntu to CentOS and I now have a problem running adb
from PHP.
I am trying to execute shell_exec("/path/to/adb devices");
and I get:
ADB server didn't ACK
failed to start daemon
error cannot connect to daemon
daemon not running. starting it now on port 5037
Of course adb
is not able to start because it is already running and listening on port 5037 and If I try to run adb devices
as root or as a regular user from the command line it returns all connected devices.
This configuration was previously working with Ubuntu.
What is the difference? Any suggestions?