Reputation: 435
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.
Upvotes: 3
Views: 9961
Reputation: 31706
setprop ctl.restart adbd
does that. It does require root
so
adb shell su 0 setprop ctl.restart adbd
Upvotes: 6