user37421 user37421 - 1 year ago 120
Android Question

How to restart adbd through computer terminal?

I use this command but I really cannot understand why it is working. I'm looking for a more clean way to restart adbd.

The command that I use and it actually works:

adb shell "( (su -c stop adbd &) && (su -c start adbd &) ) &"

I'm just looking for the best way to do this.

Answer Source

setprop ctl.restart adbd does that. It does require root so

adb shell su 0 setprop ctl.restart adbd
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download