Hi, recently to make debug on real device I need to restart my adb server (Android Debug Bridge) manually.
To use it I need restart it with root privileges.
sudo adb kill-server
sudo adb start-serverNow I want to show you how to make it on startup your Linux OS.
1. Create file with adb name
2. Put it in /etc/init.d/ dir
3. Add folowing content:
#!/bin/sh
case "$1" in
start)
# Start daemon.
echo -n "Starting ADB: "
/opt/android-sdk-linux/platform-tools/adb start-server
;;
stop)
# Stop daemons.
echo -n "Shutting ADB: "
/opt/android-sdk-linux/platform-tools/adb kill-server
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 04. Run following commands
cd /etc/init.d/
sudo chown root:root adb
sudo update-rc.d adb defaults
sudo chmod +x adb5. reboot your Linux OS
6. Plug your Android device to USB
7. run
adb devices8. Everythink is ok If you see something like this:
List of devices attached
YOUR_DEVICE_SERIAL_NUMBER deviceEnjoy codding!

